#Recipe: remove and swap an ingredient with another ingredient?
16 messages · Page 1 of 1 (latest)
You can find a wiki page on how to update to KubeJS 6 here:
there is event.replaceInput() event
You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.
Oh perfect! So then is this all I need to do:
file location: C:\Users\Greg\Twitch\Minecraft\Instances\1.19.2Temp\kubejs\server_scripts\RecipeAlterations.js
ServerEvents.recipes(event => {
event.replaceInput(
{ input: 'cyclic:charm_venom' },
'cyclic:apple_bone',
'earthmobsmod_bone_spider_eye'
)
})```
Does anyone know?
This code did not work..
you are using output item in input filter
and i suggest using recipe id instead of item. { id: 'recipe id' }
like this?
ServerEvents.recipes(event => {
event.replaceInput(
{ id: 'cyclic:charm_venom' },
'cyclic:apple_bone',
'earthmobsmod_bone_spider_eye'
)
})```
ye
then instead of using replace input create normal recipe and give it its original id
even.shaped().id(here goes id)
@proper marten Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!