Open PaxJaromeMalues opened 1 year ago
Oh, one more, the recognition of custom items like from CustomItems, Custom Recipes or ItemsAdder by their ingame name would be sick. This would for example make it possible to restrict anyone but the baker from cafting Bread items or flour (if added).
Description of new idea or improvement on existing one
This is not thought to replace limitedItems! Its thought as a parallel feature using the same mechanics but in a different way. As This is using already in place functionality, maybe the whole feature also takes less time to implement, if considered.
Using the same mechanics to prohibiting the use of an item by
limitedItems
, implement a blacklist (probably at the end of a config) for items by their ingame designation.Detailed information
If an item is named in the blacklist for example
DIAMOND_PICKAXE
:DIAMOND_PICKAXE
matches entries in blacklist ANDlimitedItems
: only allow variations ofDIAMOND_PICKAXE
fromlimitedItems
but deny usage/crafting all others as per blacklist. As this resembles a full blacklist, these items conditions should also meetDIAMOND_PICKAXE
with any sort of lore or enchant (you could say the function is to ignore anything besides the stringDIAMOND_PICKAXE
which identifies the item towards the minecraft servers item database)Config Example