With this small API you can create vanilla (Datapack-Like) Enchantments that work like vanilla Enchantments.
Some features are missing but the main part already works.
For more information see: Minecraft Wiki:Adding custom Enchantments
With the EnchantmentModifier-Class you can now use the Methods:
- setEnchantmentDefinition(Enchantment, EnchantmentBuilder)
(Replaces only valid Fields from the EnchantmentBuilder to the existing Enchantment)
and
- setMaximumLevel(Enchantment, int)
(Replaces the maximum level of the existing Enchantment
Some features are missing but the main part already works.
For more information see: Minecraft Wiki:Adding custom Enchantments
With the EnchantmentModifier-Class you can now use the Methods:
- setEnchantmentDefinition(Enchantment, EnchantmentBuilder)
(Replaces only valid Fields from the EnchantmentBuilder to the existing Enchantment)
and
- setMaximumLevel(Enchantment, int)
(Replaces the maximum level of the existing Enchantment
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Vanilla Custom Enchanting API is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 354 times (via Spigot). Download it and open it directly in the game.