#Code doesn't work but I have no errors

24 messages · Page 1 of 1 (latest)

mint solstice
#
let C = (id) => `create:${id}`;

ServerEvents.recipes(e =>{

    e.remove('create:crushing/netherrack')
    
    e.recipes.createSplashing([
        'wet_cinder_flour'
    ], [C('cinder_flour')])
})```
hardy oasisBOT
#

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

amber flume
#
ServerEvents.recipes(e => {
    e.remove('create:crushing/netherrack')
    e.recipes.createSplashing(['create:wet_cinder_flour'], ['create:cinder_flour'])
})
mint solstice
#

I tried to copy the format from the wiki

#

guess that wasnt a good idea

mint solstice
# amber flume ```js ServerEvents.recipes(e => { e.remove('create:crushing/netherrack') ...

still no error but nothing works, the crushing recipe shows in JEI but the output does not

let C = (id) => `create:${id}`;

ServerEvents.recipes(e => {
    e.remove('create:crushing/netherrack')
    e.recipes.createCrushing([
        '3x cinder_flour',
        Item.of('2x cinder_flour').withChance(0.75), Item.of('cinder_flour').withChance(0.25)
    ], 'netherrack')

    e.recipes.createSplashing(['create:wet_cinder_flour'], ['create:cinder_flour'])
    
    e.recipes.createMixing(['wet_netherrack'], ['wet_cinder_flour', 'cobblestone'])
})```
#

dont ask about the cinder flour thing

dire mantle
#

u are not writting well any id

mint solstice
#

oh

civic rose
#

you need JEIEvents to remove item from jei

tranquil totem
#

The Output of the crushing recipe doesn't Show cause yourl forgot the Mod namespace

#

So add create: Infront of every Item that's from create. In this Case only the cinder flour

mint solstice
dire mantle
#

its part of id, so, inside

mint solstice
#

k

dire mantle
#

the item id: 'modid:itemId'

mint solstice
#
Item.of('create:cinder_flour').withChance(0.25)```?
dire mantle
#

right

mint solstice
#

would that work

dire mantle
#

and if u create an item with kubejs and dont put anything apart of the item id, use kubejs:itemid

mint solstice