KubeJS-Mods / KubeJS

https://kubejs.com
GNU Lesser General Public License v3.0
307 stars 90 forks source link

remove/add/change recipes in non ServerEvents.recipes and an recipes.disable/enable functio #850

Open cyberpunkbln opened 3 months ago

cyberpunkbln commented 3 months ago

Describe the feature

Hello, as an example i want to add an recipe from an early deleted recipe when i hook the ItemEvents.crafted event. Access to recipes in other events.

ItemEvents.crafted ('minecraft:stick', event =>
{
    event.RecipeManager.addRecipe ....
});

And the ability to deactivate and reactivated recipes and not only build new or modifying out with minecraft:air and so on.

I want to activated recipes based on specia item or play events. Or with the AdvancementJS based on her events,

thx

Additional info

No response