Hello,
I need a plugin that checks an item's lore for a predefined keyword, and if the keyword is found, block a list of predefined enchantments from being applied to the item. The lore should be checked only for content and disregard the color to prevent issues. This would be done in a config.yml file, which should look something similar to:
1:
keyword: "word 1"
blocked-enchants:
- SHARPNESS
- FIRE_ASPECT
//if the item has a lore that is "word 1", prevent SHARPNESS and FIRE_ASPECT from being applied to it.
2:
keyword: "secondWord"
blocked-enchants:
- FLAME
//if the item has a lore that is "secondWord", prevent FLAME from being applied to it.
I currently have a plugin that blocks all modifications to an item (name, enchants, etc.) by preventing the item from being placed into an anvil or enchantment table if it has a predefined lore. The method does not work for me because it unconditionally blocks all enchantments.
The plugin is being commissioned to make lore-based custom enchantments mutually-exclusive with vanilla enchantments. For example, if the custom enchantment (lore) "Ice Aspect" exists, the plugin should prevent Fire Aspect from being enchanted onto the item.
If you are interested or have any questions, please let me know via my Discord at T-34#1470. Please leave a comment here before adding me, and I prefer a portfolio of some sort. Thanks for reading!
If you've seen a similar request from me before, I am re-posting it because my previous description was bad, which led to some miscommunication with freelancers.
I need a plugin that checks an item's lore for a predefined keyword, and if the keyword is found, block a list of predefined enchantments from being applied to the item. The lore should be checked only for content and disregard the color to prevent issues. This would be done in a config.yml file, which should look something similar to:
1:
keyword: "word 1"
blocked-enchants:
- SHARPNESS
- FIRE_ASPECT
//if the item has a lore that is "word 1", prevent SHARPNESS and FIRE_ASPECT from being applied to it.
2:
keyword: "secondWord"
blocked-enchants:
- FLAME
//if the item has a lore that is "secondWord", prevent FLAME from being applied to it.
I currently have a plugin that blocks all modifications to an item (name, enchants, etc.) by preventing the item from being placed into an anvil or enchantment table if it has a predefined lore. The method does not work for me because it unconditionally blocks all enchantments.
The plugin is being commissioned to make lore-based custom enchantments mutually-exclusive with vanilla enchantments. For example, if the custom enchantment (lore) "Ice Aspect" exists, the plugin should prevent Fire Aspect from being enchanted onto the item.
If you are interested or have any questions, please let me know via my Discord at T-34#1470. Please leave a comment here before adding me, and I prefer a portfolio of some sort. Thanks for reading!
If you've seen a similar request from me before, I am re-posting it because my previous description was bad, which led to some miscommunication with freelancers.
Last edited:
