#Recipe: remove and swap an ingredient with another ingredient?

16 messages · Page 1 of 1 (latest)

clever groveBOT
#

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

zenith ploverBOT
#

You can find a wiki page on how to update to KubeJS 6 here:

timber finch
#

there is event.replaceInput() event

zenith ploverBOT
#

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.

proper marten
# timber finch there is event.replaceInput() event

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'    
      )
})```
proper marten
#

Does anyone know?

proper marten
#

This code did not work..

timber finch
#

you are using output item in input filter

#

and i suggest using recipe id instead of item. { id: 'recipe id' }

proper marten
timber finch
#

ye

proper marten
#

That just removed the recipe entirely..

timber finch
#

then instead of using replace input create normal recipe and give it its original id

#

even.shaped().id(here goes id)

clever groveBOT
#

@proper marten Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!