See Also:
WolfyScript/CustomCrafting#89
WolfyScript/CustomCrafting#67
The functional cooking recipes make it possible to manipulate the way in which cooking recipes are matched.
That way the ingredient check can be customized to for example only compare single NBT tags, or even check the block, world, etc.
Resulting in massive customization of cooking recipes.
Cons:
This will inject plugin dependent code directly into Minecraft Recipe Registry, that might break if the owning plugin crashes or is disabled in any other way!
We need to make sure the recipes are unregistered the moment that occurs! But is there a way to detect if a plugin crashed?
The current implementation is still very experimental! It might be changed completely anytime!
Edit: This should be implemented into Spigot directly! I might do a pull request for that soon-ish. Not sure yet how I would handle custom code from plugins...
Edit 20/09/22: Implemented a prototype into Spigot using Events (Haven't made a PR yet). Still quite limited and possibly weird behaviour, as it requires placeholder recipes registered in Minecraft.
See Also: WolfyScript/CustomCrafting#89 WolfyScript/CustomCrafting#67
The functional cooking recipes make it possible to manipulate the way in which cooking recipes are matched.
That way the ingredient check can be customized to for example only compare single NBT tags, or even check the block, world, etc. Resulting in massive customization of cooking recipes.
Cons:
The current implementation is still very experimental! It might be changed completely anytime!
Edit: This should be implemented into Spigot directly! I might do a pull request for that soon-ish. Not sure yet how I would handle custom code from plugins... Edit 20/09/22: Implemented a prototype into Spigot using Events (Haven't made a PR yet). Still quite limited and possibly weird behaviour, as it requires placeholder recipes registered in Minecraft.