Home›Java›Mods›CustomEnchants - Your Own Enchantments
CustomEnchants - Your Own Enchantments
ModsJava

CustomEnchants - Your Own Enchantments

Java mod listed for Minecraft 1.21–26.x. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Questions, bugs or ideas? Join our Discord: discord.gg/VeNKPKnNVD​

CustomEnchants
A custom enchantment engine for Paper 1.21.x and 26.x - free, with everything in it.​

[HR][/HR]

What it is

Write an enchantment in YAML, give it a trigger and a few effects, and it works everywhere a vanilla one does:
on the item, in the lore, in an anvil, through your own enchanting table, as a book, and through an API other
plugins can use.

31 enchantments are included for swords, axes, tools, armour, bows, tridents and fishing rods - and every one of
them is just an example written in the same YAML you get to edit. Nothing is hardcoded.

[HR][/HR]

Features


[HR][/HR]

Writing an enchantment

Drop a file into plugins/CustomEnchants/enchants/. Anything in that folder is loaded, so your own
file sits next to the shipped ones and survives an update.

Code (Text):

enchants:
  lifesteal:
    name: '<red>Lifesteal'
    rarity: rare
    max-level: 5
    targets: [SWORD, AXE]
    incompatible: [vampirism]
    description:
      - '<gray>Heals you for <red>%value%%<gray> of the damage you deal.'
    value: '5 * level'
    triggers:
      on-hit:
        chance: '30 + 8 * level'
        cooldown: 2s
        conditions:
          - 'health < 90%'
        effects:
          - type: heal
            amount: 'damage * 0.05 * level'
          - type: particle
            particle: heart
            count: 3
            at: self
 
Numbers can be expressions using + - * /, brackets, min max abs floor ceil round sqrt
and the variables level, damage, health, health_percent,
victim_health, food, exp_level, y, random.
They are compiled once when the file is read, so nothing is parsed while the server runs.

[HR][/HR]

Commands and permissions


customenchants.limit.<number> and customenchants.limit.unlimited raise how many
enchantments a player's items may carry.

[HR][/HR]

Dependencies

None are required. The plugin runs on a plain Paper server with nothing else installed.

Optional, only if you want the matching feature:

[HR][/HR]

Requirements


[HR][/HR]

Tested

102 unit tests on the logic, plus an in-server test suite of 219 checks that runs on Paper 1.21.1, 1.21.11 and
26.2, and a real client test with a bot for the parts only a player can exercise.

[HR][/HR]

Support

Found a bug or have an idea? Join our Discord: discord.gg/VeNKPKnNVD
If you like CustomEnchants, a review helps a lot!

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

CustomEnchants - Your Own Enchantments is a free Minecraft Java mod. Compatible with Minecraft 1.21, 26.1, 26.2, 26.3. Available via Spigot. Download it and open it directly in the game.

Explore more