
Suggestion: Enchantments control
Guinaro opened this issue ยท 1 comments
Suggestion: Control enchantments (across Enchantment table and Anvil)
- A way to prevent an item to be enchanted (by enchantment table/anvil).
- A way to prevent specific enchantments to be applied to an item.
- A way to limit the levels in a certain range of a specific enchantment to apply to an item.
- A way to limit the levels in a certain range of all possible enchantments to apply to an item
- A way to disable an enchantment to ever be used
- A way to limit the levels in a certain range for an enchantment across all items.
- Reflect those changes in JEI/JEI Resources, ...
Part of this is already possible via the Anvil remove mechanic.
- mods.rockycore.Enchantments.preventEnchanting();
- mods.rockycore.Enchantments.preventEnchantingWith(,"enchantmentname");
- mods.rockycore.Enchantments.limitEnchantingToRange(,"enchantmentname", level min, level max);
- mods.rockycore.Enchantments.limitEnchantingAllToRange(, level min, level max);
- mods.rockycore.Enchantments.disableEnchantment("enchantmentname");
- mods.rockycore.Enchantments.limitEnchantmentRange("enchantmentname", level min, level max);
Enchantmentname could also be enchantmentid ofcourse.
Possibly checks need to be made if the levels exist (or need to be made?).
Guinaro
I had previously thought about seeing what I could do with the Enchantment Table but I've yet to find the time to do so. I will likely keep the functionality completely divided as it is in CraftTweaker and RockyCore already and make a separate mods.rockycore.EnchantmentTable
package and add what's needed but not currently possible to mods.rockycore.Anvil
.