KubeJS (Old)

KubeJS (Old)

3M Downloads

replace a recipe from ProjectE

Er5force opened this issue ยท 3 comments

commented

This is my first time coding in java and I don't have a lot of experience in it either.
I would like to remove the recipe from the philosopher's stone and then create a new recipe for it but it doesn't work.

That's my code :

onEvent('recipes', event => { event.remove({output: 'projecte:philosophers_stone'}) })

{
"type": "minecraft:crafting_shaped",
"pattern": [
"nGn",
"GDG",
"nGn"
],
"key": {
"n": {
"item": "minecraft:netherite_ingot"
},
"G": {
"item": "minecraft:glowstone_dust"
},
"D": {
"item": "minecraft:diamond"
}
},
"result": {
"item": "minecraft:projecte:philosophers_stone",
"count": 1
}
}

commented

sorry for the code i don't know how to format it

commented

The discord is probably a better place to get help for this than the issue tracker.

Before asking there however, I would recommend checking the wiki, especially the recipe page, for learning the basics of using KubeJS to edit recipes.
https://mods.latvian.dev/books/kubejs/page/recipeeventjs

As for formatting as code, put ``` around it to (both in GH and Discord)

commented

I took my code from there but it didn't want to work.

thanks for all anyway !