How to Make an Enchantment in Minecraft (Mod Maker guide)
Learn how to create a custom Enchantment that adds special abilities to items using 9Minecraft Mod Maker right in your web browser without any installation.
Open the Studio and a Workspace
Open 9Minecraft Mod Maker in your web browser. Since the studio runs completely online, you do not need to download or install anything.
Create a new workspace or open an existing one. Make sure your project uses one of the supported versions: NeoForge 26.1.2, NeoForge 1.21.1, Data pack 26.1, or Data pack 1.21.1.
Add the Enchantment Element
Inside your workspace, click the green plus button to add a new mod element.
Look under the Data-driven content group and select Enchantment. An enchantment is a modifier that adds special abilities to items when applied.
Set the Name, Level, and Rarity
Find the Enchantment name field and type the name of the enchantment as you want it used in-game. Next, set the Max enchantment level to define the maximal level your enchantment supports.
Fill in the Enchantment weight field to define how common the enchantment is. A smaller value makes it appear less commonly. Common enchantments usually have a weight of 10, less common 5, rare 2, and very rare 1.
Choose Eligible Items and Slots
Use the Items that can be enchanted with this enchantment field to specify which items can receive it in the enchanting table or by other means. You can specify this as a list of items or as a single tag.
Next, configure the Supported slots field. This parameter defines the slot types that match with your enchantment type.
Configure Protection and Costs
Set the Damage reduction modifier. This value will be multiplied with the level of the enchantment that the item currently has to get the amount of damage your enchantment will protect. For example, PROTECTION has a value of 1, so for the first level, it protects the player from 1 damage because 1 times 1 equals 1.
Set the Enchantment anvil cost to define the cost it takes in the anvil. This parameter is multiplied by the level of the enchantment and only works in Minecraft versions 1.20.6 and above.
Set Incompatibilities and Special Properties
Use the Enchantments this enchantment can't coexist with on the same item field to define incompatible enchantments. If an item has any of these, your enchantment cannot be applied to it, and vice versa. You can use a list of items or a single tag (a tag will only work correctly on Minecraft 1.21 and newer versions).
Check the Is this enchantment curse option if you want your enchantment to be bad. Curse enchantments have a red name and cannot be removed from items.
Choose How Players Find It
Decide how players will obtain your enchantment in the world. Check Generate in loot tables if you want it to generate in loot tables, and check Villager trade if you want it to be sold as a villager trade.
You can also check Is this enchantment treasure enchantment. A treasure enchantment cannot be obtained in the enchanting table and can only be found in loot tables, similar to MENDING or SOUL SPEED.
Test and Export Your Mod
Once all your fields are filled out, save your element. Click the Build & run button to test your new enchantment directly.
When you are happy with how your enchantment works on your chosen items, export your finished project to use in Minecraft.
Tips
- Use an Enchantment weight of 10 for common enchantments, 5 for less common, 2 for rare, and 1 for very rare.
- If you check Is this enchantment treasure enchantment, remember to also check Generate in loot tables or Villager trade so players have a way to find it without the enchanting table.
- Using a tag in the Enchantments this enchantment can't coexist with on the same item field will only work correctly on Minecraft 1.21 and newer versions.
- Remember that the Enchantment anvil cost field only works in Minecraft versions 1.20.6 and above.