Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
EnchantGiver 1.1.0 release | 31.38 KB | Jun 10, 2021 | 1.17 | 609 | ![]() |
Enchant Giver 1.0.3 release | 18.52 KB | Feb 2, 2021 | 1.16.5 | 3,382 | ![]() |
EnchantHelper 1.0.2 release | 14.95 KB | Jan 12, 2021 | 1.16.4 | 321 | ![]() |
EnchantHelper 1.0.1 release | 139.40 KB | Jan 10, 2021 | 1.16.4 | 30 | ![]() |
Enchant Helper 1.0.0 release | 139.18 KB | Jan 7, 2021 | 1.16.4 | 15 | ![]() |
Description
EnchantGiver
EnchantGiver adds the ability to permanently give enchantments to items.
These work from the moment the item is obtained, without being able to remove them via grindstone.
This also means you can enchant the item normally, even though it has pre-defined enchantments.
This works on any item (modded or vanilla) with any set of enchantments (modded or vanilla).
This mod should work server side only.
The level of the enchantments can also be higher than the vanilla allowed ones (goes up to 2147483647).
To add enchantments to all items of the same type (eg. all iron pickaxes) while ingame, hold the item in your hand and run
/enchantgiver add_enchant modname:enchantname level
and to add it to just one item run
/enchantgiver add_nbt modname:enchantname level
To remove enchants, for item groups, use
/enchantgiver remove_enchant modname:enchantname
and for individual items use
/enchantgiver remove_nbt modname:enchantname
To remove all the enchants (individual and group enchants) from an item, use
/enchantgiver clear
To add enchantments to items manually, you can do it by going inside config/enchant_helper/ and reading the readme.yaml
After that, you can reload the values ingame by restarting the game or running /enchantgiver reload
To add group-enchants via code, you do so by calling
wraith.enchant_giver.EnchantsList#addEnchants(Identifier itemID, HashMap<Identifier, Integer> enchants, boolean replace)
for multiple enchants, or for individual enchants:
wraith.enchant_giver.EnchantsList#addEnchants(Identifier itemID, Identifier enchantID, int level, boolean replace)
To add enchants to individual items instead of groups, for multiple enchants use:
wraith.enchant_giver.EnchantsList#addNBTEnchants(ItemStack stack, HashMap<String, Integer> enchants)
and for single enchants use:
wraith.enchant_giver.EnchantsList#addNBTEnchants(ItemStack stack, String enchant, int level)
Recommended mods:
Numerus Romani
Add a comment