Item frame

Minecraft Item Command Generator

The /item command replaces or modifies a single inventory slot without touching the rest of the inventory, which is what makes it the tool of choice for maps and datapacks. Choose the target slot, the source item or loot table, and the generator writes the replace or modify form for your version.

  • Slot targeting for players, entities and block containers
  • Replace from an item stack, another slot, or a loot table
  • Item modifiers applied through /item modify

FAQ

What is the difference between /item and /give?

/give always drops the item into the first free inventory slot; /item replace targets one exact slot (a hotbar slot, an armor slot, or a container slot) without touching the rest of the inventory, which is what maps and datapacks need for precise setups.

How do I put an item directly into a container slot?

Choose a block target and the container slot index, then the source item. /item replace block <x> <y> <z> container.<n> writes the stack into that exact chest, barrel or hopper slot.

How do I copy an item from a loot table into a slot?

Pick a loot-table source instead of an item stack. /item replace ... from loot <table> rolls the table and places the result, which is how you hand out randomized rewards without pre-building the item.

Does /item work on Bedrock?

No. /item is a Java-only command; Bedrock uses replaceitem for slots and has no direct loot-table source. The generator marks the command as Java Edition only.