Uses modern Minecraft item component syntax (1.20.5+). On older versions these need the legacy NBT tag format instead.

How to Use the Knowledge Book Generator

  1. Pick a target selector (defaults to @p, the nearest player).
  2. Type the recipe ID you want to unlock, e.g. minecraft:diamond_sword.
  3. Copy the generated /give command.

Syntax Reference

A knowledge book carries a recipes item component – a list of recipe IDs that get unlocked the moment the book is opened:

/give @p minecraft:knowledge_book[recipes=["minecraft:diamond_sword"]]

The list accepts multiple recipes at once, comma-separated inside the brackets: recipes=["minecraft:diamond_sword","minecraft:diamond_pickaxe"]. Recipe IDs generally match the output item’s ID, though a handful of items (like recipes with multiple variants) use a distinct recipe name – check the recipe’s actual advancement/unlock ID if a plain item name doesn’t unlock it.

Frequently Asked Questions

Is the Knowledge Book obtainable in survival at all?

No – there’s no natural survival source. It’s a creative-mode/command-only item, normally reached through /give or the creative inventory, intended for map makers and admins who want to hand a player a specific recipe unlock without them needing to find it or meet a discovery condition first.

What happens when a player opens the book?

Every recipe ID in its recipes list gets added to that player’s unlocked recipe book immediately, with a short unlock toast/animation, and the book itself is then consumed (it disappears from the inventory after use).

Do unlocked recipes still require the ingredients to craft?

Yes – unlocking only makes the recipe appear in the crafting table’s recipe book UI and lets it auto-fill from inventory; the player still needs the actual ingredients to craft the item. It doesn’t grant materials.

Can I unlock a recipe the player normally never discovers naturally?

Yes – this is one of the main uses of the tool. Some recipes are hidden until a related advancement or “unlock” condition triggers; a knowledge book bypasses that condition entirely and force-unlocks it regardless of progress.

Related Tools