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.
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
- Seven triggers: on-hit, on-kill, on-damaged, on-break, on-fish, on-shoot, on-tick.
- Eighteen effect types: damage, heal, potion, drop, multiply-drops, smelt, telekinesis, money, command,
particle, lightning, sound, exp, ignite, velocity, message, feed, repair. - Chances, cooldowns and conditions per trigger, written the way you would say them:
chance: '20 + 5 * level', cooldown: 2s,
conditions: ['health < 50%', 'time == night']. - Rarities with their own colour, weight, cost and book chances - from common to mythic.
- Your own enchanting table: put an item in, get offers rolled by rarity, pay with levels, experience
points or money. - Books and scrolls: a book can fail, a failure can destroy the item, a white scroll saves it, and a
black scroll takes an enchantment back off as a book. - Armour set bonuses: an enchantment on enough worn pieces runs extra effects.
- Anvils and grindstones are handled: enchantments merge in an anvil exactly like vanilla ones, and a
grindstone can keep them, strip them, or hand them back as books. - A public API with cancellable events, and your own effect types can be registered from another plugin.
- One jar for Paper 1.21.x and 26.x. The enchantments live in the item's own data, never in the server's
enchantment registry, so an item keeps them across both.
[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
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
- /ce list - the menu with every enchantment (customenchants.use)
- /ce info <id> - what one enchantment does (customenchants.use)
- /ce table - open the enchanting table (customenchants.table)
- /ce book <id> [level], /ce give <player> <id> [level] [amount],
/ce scroll <white|black> [player] [amount] (customenchants.give) - /ce apply <id> [level], /ce remove <id>, /ce clear,
/ce reload, /ce debug (customenchants.admin)
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:
- Vault - the money effect and
paying for enchantments with money. - PlaceholderAPI - placeholders inside
command effects, and the %customenchants_...% placeholders. - WorldGuard - regions where custom enchantments do not fire.
[HR][/HR]
Requirements
- Paper (or a Paper fork) 1.21.x or 26.x - one jar for both. Spigot is not supported.
- Java 21 on 1.21.x, Java 25 on 26.x.
[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!
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21, 26.1, 26.2
- 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.
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.