#create recipe ID

70 messages · Page 1 of 1 (latest)

dark cradle
#

I'm trying to make a sequenced recipe for Create mod with the KubeJS Create addon, but the syntax given on the wiki only results in the game telling me it can't tell what the sequenced recipe is

I'll add the code block in question in the first comment

radiant siloBOT
#

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

dark cradle
#
        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)```
left dagger
#

it's event.recipes.createSequencedAssembly

#

not event.createSequencedAssembly

dark cradle
#

Ohhhhhh ok thanks!

radiant siloBOT
#

Ticket re-opened!

dark cradle
#

Now it's saying that "recipes" is not defined

sonic hound
#

??code

sleek auroraBOT
# sonic hound ??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.

dark cradle
# sonic hound ??code
        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)```
left dagger
#

are you missing the event listener?

sonic hound
#

that's possible

left dagger
#
ServerEvents.recipes(event => {
  //code here
})
sonic hound
#
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

dark cradle
#

maybe? this is the only instance in the whole code that has that issue, shaped and shapeless recipes are working just fine

sonic hound
#

there

left dagger
#

yeah

#

line 9 and 10

sonic hound
#

ofc it i-

#

it's not really

left dagger
#

why

sonic hound
#

there

#

should be correct now

left dagger
#

because your only using e for event xd

#

just kidding

sonic hound
#

.withChance takes a float and not a number between 1-100

dark cradle
#

ah

sonic hound
#

this happens a lot

left dagger
#

it can take a number bigger than 1 actually

#

but it just works as count

dark cradle
#

now it's saying that "e" is not defined

left dagger
#

yeah you need to change that to event

#

or change all other where currently event is written and change that to e

dark cradle
#

ah i see

#

it says there were no reloading errors, but the recipe doesn't appear in JEI

sleek auroraBOT
#

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.

dark cradle
sleek auroraBOT
#

Paste version of message.txt from @dark cradle

sonic hound
#

create:crushed_copper is not a valid item

dark cradle
#

oh yeah, it's create:crushed_raw_copper huh

#

the recipe still doesn't appear

sleek auroraBOT
#

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.

left dagger
#

or run /kubejs warnings

sonic hound
#

just send the log

dark cradle
sleek auroraBOT
#

Paste version of message.txt from @dark cradle

sonic hound
#

create:copper_ingot also seems to not be a valid item

dark cradle
#

hmm

#

oh

#

it's a vanilla item lol

sonic hound
#

so not from create heh

dark cradle
sleek auroraBOT
#

Paste version of message.txt from @dark cradle

sonic hound
#

the transitional item is invalid

dark cradle
#

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

sonic hound
#

did you restart the game?

dark cradle
#

yes

#

wait

#

I might have had it saved as the wrong file type

#

yay, it works now!

#

thanks yall