HomeJavaModsBetter Enchant Commands

Better Enchant Commands

Override /enchant, /give, and friends with extended enchantment levels, simplified syntax, presets, and an audited confirmation/undo workflow for Minecraft 1.21.x.

Vanilla /enchant refuses non-integer levels and caps out where the enchantment says so. Vanilla /give needs verbose component syntax for enchanted items. Better Enchant Commands replaces the two core commands and adds a handful of workflow helpers, all gated behind op level 2 and backed by a structured audit log.

Features

/enchant — enchant beyond vanilla limits

Drop-in replacement for vanilla /enchant. Apply any enchantment to the item in a player's hand at levels 1–255.

/enchant list prints the enchantments on the held item of the player running the command.

/give — inline enchantment syntax

Drop-in replacement for vanilla /give. Works exactly like normal when used without enchantments. Append an optional enchantments: block for instant enchanted items:

The minecraft: namespace is optional — sharpness:255 works. No JSON, no brackets, no quotes. Tab completion filters candidates to enchantments actually compatible with the chosen item.

/enchantpreset — save and replay enchantment bundles

Names are validated (1–64 chars, A–Z, a–z, 0–9, _, -). Skipped empty-hand targets are reported in the output.

/unenchant, /enchantinfo, /enchantlist

Cleanup and inspection helpers:

/repair — mended gear in one command

Hands out a copy of any item with Mending (and Unbreaking III where compatible) pre-applied. The reflective compat lookup is cached per session so repeat invocations are fast.

/enchants — bulk operations, undo, and config

Operations over confirmation_threshold targets require a short-lived token — no more accidental "enchanted the entire server" incidents. Undo is a bounded per-operator deque (default 8 entries).

Design highlights

Why Better Enchant Commands?

Requirements

Permissions

All commands require operator level 2, matching vanilla /enchant and /give.

Technical notes

Better Enchant Commands writes directly to the DataComponents.ENCHANTMENTS component on item stacks, bypassing vanilla's level validation but enforcing its own bounds (1–255). Enchantments are stored exactly like vanilla ones — no custom data, no compatibility issues with other mods reading your items.

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.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more