#What am I doing wrong?

13 messages · Page 1 of 1 (latest)

austere sonnet
#

I keep getting a error message whenever I join a world but I don't know why.

here is the code I'm using (I have chipped as a variable because I might use it later):

let MC = (id) => `minecraft:${id}`;
let C = (id) => `create:${id}`;
let CH = (id) => `chipped:${id}`; 

// Usage is like so:
onEvent('recipes', event => {
    event.remove({id:'create:filling/redstone'});

    // Flower dye recipes
    event.recipes.create.createPressing([MC('white_dye')], [MC('lily_of_the_valley')]).id('mycreate:wd1');
    event.recipes.create.createPressing([MC('light_gray_dye')], [MC('azure_bluet')]).id('mycreate:lgd1');
    event.recipes.create.createPressing([MC('light_gray_dye')], [MC('oxeye_daisy')]).id('mycreate:lgd2');
    event.recipes.create.createPressing([MC('light_gray_dye')], [MC('white_tulip')]).id('mycreate:lgd3');
    event.recipes.create.createPressing([MC('black_dye')], [MC('wither_rose')]).id('mycreate:bd1');
    event.recipes.create.createPressing([MC('black_dye')], [MC('ink_sac')]).id('mycreate:bd2');
    event.recipes.create.createPressing([MC('red_dye')], [MC('poppy')]).id('mycreate:rd1');
    event.recipes.create.createPressing([MC('red_dye')], [MC('rose_bush')]).id('mycreate:rd2');

    event.recipes.create.createMixing([MC('red_sand')], [MC('sand'), MC('red_dye')]).id('mycreate:red_sand');

    event.recipes.create.createMixing([MC('netherrack')], [MC('red_sand'), MC('cobblestone')]).heated().id('mycreate:netherrack1');

    event.recipes.create.createFilling([MC('redstone')], [C('cinder_flour'), Fluid.of(MC('lava'), 250)]).id('mycreate:sp_redstone');
});
mystic ginkgoBOT
#

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

sage aurora
#

its either event.recipes.create.pressing or event.recipes.createPressing, not both

distant lanternBOT
#

KubeJS Create is an addon that will allow you to use KJS scripts with Create more easily.

sage aurora
#

you also dont need MC() just leave the strings

austere sonnet
#

do I still leave it if its a modde item?

sage aurora
#

yeah cuz you need the namespace

#

if you dont have a namespace, it defaults to minecraft:

austere sonnet
#

so it recognises 'cinder_flour' as a create item and 'redstone' as a minecraft item?

sage aurora
#

no, i said you need it for mods

austere sonnet
#

ohh just not for minecraft

sage aurora
#

yas PinkYAYA

austere sonnet
#

ok thanks