#KubeJS Create

64 messages · Page 1 of 1 (latest)

sonic mirage
#

I want to make ATM star with KubeJS Create but there is an error that i cant notice

onEvent('recipes', event => {
evernt.recipes.createMechanicalCrafting('atmadditions:atm_star', [
' A ',
' AJA ',
'AAAJFJAAA',
'AJJCDEJJA',
' ANBIHMA ',
' AKGLA ',
' AJJAJJA ',
'AJJA AJJA',
'AAA AAA'
], {
A: 'allthemodium:unobtainium_allthemodium_alloy_block',
B: 'atmadditions:nexium_emitter',
C: 'atmadditions:dragon_soul',
D: 'atmadditions:withers_compass',
E: 'atmadditions:pulsating_black_hole',
F: 'atmadditions:oblivion_shard',
G: 'atmadditions:improbable_probability_device',
H: 'atmadditions:dimensional_seed',
I: 'kubejs:patrick_star',
J: 'allthecompressed:nether_star_block',
K: 'atmadditions:philosophers_fuel',
L: 'mysticalagradditions:creative_essence',
M: 'kubejs:rune_of_sins',
N: 'kubejs:mass_of_wills'
})
})

upbeat finchBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

jagged brook
#

are you not using a code editor?

sonic mirage
#

no

jagged brook
#

...why...?

#

it literally tells you what the problem is

rotund tundraBOT
#

If you're working with KubeJS scripts, configuration files, or similar things, we generally recommend using an actual IDE rather than just Notepad and its various siblings. In a lot of cases, it can help you with finding errors in your code faster and also gives you neat features like syntax highlighting, automatic formatting, et cetera! We recommend Visual Studio Code, since it's lightweight(-ish) and works very well with JavaScript files out-of-the-box.

jagged brook
#

evernt

#

your logs also say that

#

i guarantee you have errors

sonic mirage
#

kk

#

found it😅

jagged brook
#

:P

sonic mirage
#

what is that now

rotund tundraBOT
#

Please send your server.txt log file.
You can find it here: minecraft/logs/kubejs/server.txt

jagged brook
#

dont use the chat

sonic mirage
rotund tundraBOT
#

Paste version of server.txt from @sonic mirage

sonic mirage
#

[15:09:14] [WARN ] Failed to parse recipe 'imersiveengineering:atmstarshard/atm_star_shard[immersiveengineering:crusher]'! Falling back to vanilla: java.lang.NullPointerException: Unknown recipe type: immersiveengineering:crusher
[15:09:14] [WARN ] Failed to parse recipe imersiveengineering:atmstarshard/atm_star_shard[immersiveengineering:crusher]: com.google.gson.JsonSyntaxException: Invalid or unsupported recipe type 'immersiveengineering:crusher'

#

those two lines

jagged brook
#

Unknown recipe type: immersiveengineering:crusher

#

key 'I' is not a valid ingredient

sonic mirage
#

now i see

#

somehow old code didnt get changet with new one that i changet

#

changed

#

still same even i changed the code with other items

#

ingredient

jagged brook
#

send the log again

sonic mirage
rotund tundraBOT
#

Paste version of server.txt from @sonic mirage

sonic mirage
#

i did it

#

no errors

#

it works

#

i wont end this chat

#

i now need to make mod that new item so called Patrick Star

#

@jagged brook any ideas?

rotund tundraBOT
#

You can make custom items with KubeJS, and the wiki has a page on them!

sonic mirage
#

do you know where to get .png of patrick star item that ATM modpack use

jagged brook
#

i do but its ARR, which means its illegal to redistribute it without permission

sonic mirage
#

oh

#

why they didnt add patrick star but everything else did when they were making ATM Additions

jagged brook
#

because it was added a long time ago, and changing the item IDs would mean people would lose those items when they update

sonic mirage
#

where i can get or ask for permission

#

github curseforge

#

?

#

from ATM Team

#

of course

jagged brook
#

github or their discord

#

anywhere where you can get in touch with them basically

sonic mirage
#

kk

sonic mirage
#

can be KubeJS be used for recipes with Powah??

jagged brook
#

it can be used for any recipes

rotund tundraBOT
#

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!

jagged brook
#

custom recipe section

sonic mirage
#

oh

#

how to make custom item block roperties

#

can it be done

jagged brook
#

yes, but i dont know how

sonic mirage
#

hey

#

i got problems again

#

so i puted all working kubejs files from testing modpack to my personal modpack and there is more errors

rotund tundraBOT
#

Paste version of latest.log from @sonic mirage