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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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

Try it in the Studio All enchantment fields explained →