#How to add recipes without removing the existing ones

18 messages · Page 1 of 1 (latest)

crisp vortexBOT
#

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

odd kayak
#

Just… don’t remove the first one?

#

Removing a recipe and adding a new one are two different actions

#
onEvent("recipes", event => {
    event.shaped("modid:some_item", [
"ABA",
"BBB",
"ABA"
], {A: "modid:item1", B: "modid:item2"})
})
#

I love coding on my phone

#

The ABA BBB ABA part is the pattern

#

I mean kjs wiki is pretty clear about recipes

wheat zenithBOT
#

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

odd kayak
#

That’s the 1.19 syntax

#

Mods pls add commands for legacy kjs

zenith belfry
#

for legacy, you just have to select the legacy book on the wiki

#

legacy isnt supported, thats the idea

odd kayak
#

Wait even 1.18?

zenith belfry
#

i guess 1.18 is, but even then everything from the normal links is functional, its just the event itself that differs

#

but ye the focus is on KJS6 now

#

as long as you add actual item IDs instead of the placeholders

odd kayak
#

Yeah

#

Replace the ids