#create recipe ID
70 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Item.of('immersive_aircraft:engine').withChance(70),
Item.of('create:crushed_copper').withChance(10),
Item.of('create:copper_sheet').withChance(10),
Item.of('3x create:copper_ingot').withChance(10),
Item.of('immersive_aircraft:boiler').withChance(10)
],
'immersive_aircraft:boiler', [
recipes.createDeploying('kubejs:incomplete_advanced_engine', ['kubejs:incomplete_advanced_engine', 'create_dd:reinforcement_plating']),
recipes.createDeploying('kubejs:incomplete_advanced_engine', ['kubejs:incomplete_advanced_engine', 'create:steam_engine'])
]).transitionalItem('kubejs:incomplete_advanced_engine').loops(3)```
Ohhhhhh ok thanks!
Ticket re-opened!
Now it's saying that "recipes" is not defined
??code
🗒️**Send the code!**🗒️
You may have an issue with a KubeJS script and you explain it to the best of your ability yet without the actual code in question we have very little to go off of in trying to assist you.
Item.of('immersive_aircraft:engine').withChance(70),
Item.of('create:crushed_copper').withChance(10),
Item.of('create:copper_sheet').withChance(10),
Item.of('3x create:copper_ingot').withChance(10),
Item.of('immersive_aircraft:boiler').withChance(10)
],
'immersive_aircraft:boiler', [
recipes.createDeploying('kubejs:incomplete_advanced_engine', ['kubejs:incomplete_advanced_engine', 'create_dd:reinforcement_plating']),
recipes.createDeploying('kubejs:incomplete_advanced_engine', ['kubejs:incomplete_advanced_engine', 'create:steam_engine'])
]).transitionalItem('kubejs:incomplete_advanced_engine').loops(3)```
are you missing the event listener?
ServerEvents.recipes(event => {
//code here
})
ServerEvents.recipes(e => {
e.recipes.createSequencedAssembly([
Item.of('immersive_aircraft:engine').withChance(.7),
Item.of('create:crushed_copper').withChance(.1),
Item.of('create:copper_sheet').withChance(.1),
Item.of('3x create:copper_ingot').withChance(.1),
Item.of('immersive_aircraft:boiler').withChance(.1)
],
'immersive_aircraft:boiler', [
e.recipes.createDeploying('kubejs:incomplete_advanced_engine', ['kubejs:incomplete_advanced_engine', 'create_dd:reinforcement_plating']),
e.recipes.createDeploying('kubejs:incomplete_advanced_engine', ['kubejs:incomplete_advanced_engine', 'create:steam_engine'])
]).transitionalItem('kubejs:incomplete_advanced_engine').loops(3)
})
oh wait
maybe? this is the only instance in the whole code that has that issue, shaped and shapeless recipes are working just fine
I have that
there
this is correct
why
.withChance takes a float and not a number between 1-100
ah
this happens a lot
now it's saying that "e" is not defined
yeah you need to change that to event
or change all other where currently event is written and change that to e
ah i see
it says there were no reloading errors, but the recipe doesn't appear in JEI
You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.
Paste version of message.txt from @dark cradle
create:crushed_copper is not a valid item
You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or below it will be called server.txt.
Please send it if asked, as it contains helpful information.
or run /kubejs warnings
just send the log
Paste version of message.txt from @dark cradle
create:copper_ingot also seems to not be a valid item
so not from create 
Paste version of message.txt from @dark cradle
the transitional item is invalid
I wrote a separate code to make one
here, I'll paste it
e.create('incomplete_advanced_engine', 'create:sequenced_assembly')
.displayName('Incomplete Advanced Engine')
}) ```
and the texture file is the same name, in the kubejs textures folder
did you restart the game?
