
EnchantGiver
The EnchantGiver mod opens up completely new possibilities for working with enchantments in Minecraft. It allows you to permanently fix enchantments on items, with these enchantments activating immediately upon obtaining the item and cannot be removed using a grindstone.
Main Features
One of the key features is the ability to additionally enchant items in the usual way, even if they already have predefined enchantments. The system works with absolutely all types of items - both standard from vanilla game and those added by other mods, supporting any combinations of enchantments.
The level of enchantments can significantly exceed the standard game limits, reaching the value of 2147483647. The mod is designed to work exclusively on the server side, making it an ideal solution for multiplayer worlds.
Commands for Working with Enchantments
Adding Enchantments
To apply enchantments to all items of the same type (for example, all iron pickaxes), execute the command while holding the desired item in your hand:
/enchantgiver add_enchant modname:enchantname level
To add an enchantment to a specific individual item, use:
/enchantgiver add_nbt modname:enchantname level
Removing Enchantments
Removing group enchantments:
/enchantgiver remove_enchant modname:enchantname
Removing enchantments from individual items:
/enchantgiver remove_nbt modname:enchantname
Complete clearing of all enchantments from an item (both group and individual):
/enchantgiver clear
Advanced Features
Manual Configuration
For fine-tuning enchantments through configuration files, go to the config/enchant_helper/
folder and study the readme.yaml
file. After making changes, update the settings in the game by restarting the world or executing the command:
/enchantgiver reload
Programmatic Addition
For developers, methods for programmatically adding enchantments are available:
Group Enchantments:
Multiple enchantments:
wraith.enchant_giver.EnchantsList#addEnchants(Identifier itemID, HashMap<Identifier, Integer> enchants, boolean replace)
Single enchantments:
wraith.enchant_giver.EnchantsList#addEnchants(Identifier itemID, Identifier enchantID, int level, boolean replace)
Individual Enchantments:
Multiple enchantments:
wraith.enchant_giver.EnchantsList#addNBTEnchants(ItemStack stack, HashMap<String, Integer> enchants)
Single enchantments:
wraith.enchant_giver.EnchantsList#addNBTEnchants(ItemStack stack, String enchant, int level)