Hello, I'm working on a custom mod pack, but I'm getting a crash because create is trying to show a recipe in it's automated crafting section, the fix is to add _manual_only to the end of the recipe id, normally I would remove it and re add it but it's a custom recipe made by a mod so I can't re-add it, is there any way to edit the recipe ID with kubejs, or if anyone has another solution that's good too
#Append existing recipe ID
1 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I can't re-add it
why exactly tho?
The mod is ender storage, and it uses a custom recipe type called ReColourRecipe which isn't meant to be viewed but create show it causing a crash
than use #1099032808405598228 message
[Quote ➤](#1099032808405598228 message) you could try
ServerEvents.recipes(event => {
event.forEachRecipe([{mod:'refinedstorage', type: 'minecraft:crafting_shapeless'},{mod:'refinedstorage', type: 'minecraft:crafting_shaped'}], recipe => {
recipe.stage('refinedstorage').id(recipe.getId() + '_manual_only')
})
})
Thank you, I'll try that
I had to change some things but I got it to work, the main thing i had to fix was enderstorage:recolour_recipe doesnt have the getID function so i had to manualy do it and my code definitly isnt perfect but if anyone wants a quick fix just add this to your recipe event:
recipe.id('enderstorage:recolour_ender_chest_manual_only')
})
event.forEachRecipe([{mod: 'enderstorage', type: 'enderstorage:recolour_recipe', output: 'enderstorage:ender_tank'}], recipe => {
recipe.id('enderstorage:recolour_ender_tank_manual_only')
})
event.forEachRecipe([{mod: 'enderstorage', type: 'enderstorage:recolour_recipe', output: 'enderstorage:ender_pouch'}], recipe => {
recipe.id('enderstorage:recolour_ender_pouch_manual_only')
})```
??codeblock
You can write your code in a codeblock by typing it between the codeblock delimiters:
```js :arrow_left:
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
``` :arrow_left:
As an example, :arrow_up: will look like this:
onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})