Enchanted Book Give Command Generator — Any Level (Java Edition)
Uses modern Minecraft item component syntax (1.20.5+). On older versions these need the legacy NBT tag format instead.
How to Use the Enchanted Book Generator
- Pick a target selector (defaults to
@p, the nearest player). - Choose an enchantment from the dropdown.
- Set the level (this generator allows any positive integer, not just the vanilla max).
- Copy the generated
/givecommand.
Syntax Reference
An enchanted book carries a stored_enchantments item component – an object mapping enchantment ID to level:
/give @p minecraft:enchanted_book[stored_enchantments={"minecraft:sharpness":5}]
Multiple enchantments can be stored on the same book by adding more key/value pairs, comma-separated: stored_enchantments={"minecraft:sharpness":5,"minecraft:unbreaking":3}. Levels aren’t clamped by the command itself, so "minecraft:sharpness":10 is valid syntax even though survival enchanting tables cap Sharpness at level 5 – the generator will happily output levels beyond the normal cap if you set one.
Frequently Asked Questions
How do enchanted books normally get their enchantment?
They’re a possible output of fishing, dungeon/stronghold/village chest loot, or trading with librarian villagers, and can also be produced by enchanting a book at an enchanting table – each source rolls a random enchantment and level within that enchantment’s normal range, rather than letting you choose exactly.
What happens when you apply an enchanted book to an item at an anvil?
The chosen enchantment transfers onto the target item (if compatible – e.g. you can’t put Sharpness on a pickaxe) and the book is consumed, costing XP levels based on the enchantment’s rarity and level. Levels above the survival-legal max may be rejected or capped by anvil logic depending on the server/version, so extremely high levels from this generator are best used as a direct /give of the finished gear instead of anvil-combining.
Can incompatible enchantments (like Sharpness and Silk Touch) be stored on the same book?
Via /give, yes – the command doesn’t enforce vanilla’s normal incompatibility rules, so a book (or even a tool) can carry combinations that would never occur from natural enchanting or anvil combining. Applying such a book at an anvil in survival, though, may still be blocked by the game’s compatibility checks depending on version.
Do enchanted books stack in an inventory?
No – like most items with distinct data, an enchanted book only stacks with another book carrying the exact same enchantment and level; different levels or enchantments occupy separate inventory slots.
Related Tools
- Armor Give Command – combine enchantments with armor trims on the same piece.
- Give Command Generator – the full item builder, including all 16 special-item tabs.
- Enchant Command Generator – enchant an item a player already holds without giving a new one.