News
Game
Guides
Downloads
Versions
/loot
COMMANDS ITEMS & INVENTORY CHEATS · LEVEL 2 4 SUBCOMMANDS Added in 1.14 or earlier

/loot command in Minecraft

/loot rolls a loot table and sends the result to players, a container, specific slots or the ground. The loot can come from a table ID, from a mob's drops, from breaking a block with a given tool, or from fishing, without anything actually dying or breaking.

Syntax

/loot give <players> (fish|kill|loot|mine)
/loot insert <targetPos> (fish|kill|loot|mine)
/loot replace (block|entity)
/loot spawn <targetPos> (fish|kill|loot|mine)
All 70 forms
  • /loot give <players> fish <loot_table> <pos>
  • /loot give <players> fish <loot_table> <pos> mainhand
  • /loot give <players> fish <loot_table> <pos> offhand
  • /loot give <players> fish <loot_table> <pos> <tool>
  • /loot give <players> kill <target>
  • /loot give <players> loot <loot_table>
  • /loot give <players> mine <pos>
  • /loot give <players> mine <pos> mainhand
  • /loot give <players> mine <pos> offhand
  • /loot give <players> mine <pos> <tool>
  • /loot insert <targetPos> fish <loot_table> <pos>
  • /loot insert <targetPos> fish <loot_table> <pos> mainhand
  • /loot insert <targetPos> fish <loot_table> <pos> offhand
  • /loot insert <targetPos> fish <loot_table> <pos> <tool>
  • /loot insert <targetPos> kill <target>
  • /loot insert <targetPos> loot <loot_table>
  • /loot insert <targetPos> mine <pos>
  • /loot insert <targetPos> mine <pos> mainhand
  • /loot insert <targetPos> mine <pos> offhand
  • /loot insert <targetPos> mine <pos> <tool>
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos>
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos> mainhand
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos> offhand
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos> <tool>
  • /loot replace block <targetPos> <slot> <count> kill <target>
  • /loot replace block <targetPos> <slot> <count> loot <loot_table>
  • /loot replace block <targetPos> <slot> <count> mine <pos>
  • /loot replace block <targetPos> <slot> <count> mine <pos> mainhand
  • /loot replace block <targetPos> <slot> <count> mine <pos> offhand
  • /loot replace block <targetPos> <slot> <count> mine <pos> <tool>
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos>
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos> mainhand
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos> offhand
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos> <tool>
  • /loot replace block <targetPos> <slot> kill <target>
  • /loot replace block <targetPos> <slot> loot <loot_table>
  • /loot replace block <targetPos> <slot> mine <pos>
  • /loot replace block <targetPos> <slot> mine <pos> mainhand
  • /loot replace block <targetPos> <slot> mine <pos> offhand
  • /loot replace block <targetPos> <slot> mine <pos> <tool>
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos>
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos> mainhand
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos> offhand
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos> <tool>
  • /loot replace entity <entities> <slot> <count> kill <target>
  • /loot replace entity <entities> <slot> <count> loot <loot_table>
  • /loot replace entity <entities> <slot> <count> mine <pos>
  • /loot replace entity <entities> <slot> <count> mine <pos> mainhand
  • /loot replace entity <entities> <slot> <count> mine <pos> offhand
  • /loot replace entity <entities> <slot> <count> mine <pos> <tool>
  • /loot replace entity <entities> <slot> fish <loot_table> <pos>
  • /loot replace entity <entities> <slot> fish <loot_table> <pos> mainhand
  • /loot replace entity <entities> <slot> fish <loot_table> <pos> offhand
  • /loot replace entity <entities> <slot> fish <loot_table> <pos> <tool>
  • /loot replace entity <entities> <slot> kill <target>
  • /loot replace entity <entities> <slot> loot <loot_table>
  • /loot replace entity <entities> <slot> mine <pos>
  • /loot replace entity <entities> <slot> mine <pos> mainhand
  • /loot replace entity <entities> <slot> mine <pos> offhand
  • /loot replace entity <entities> <slot> mine <pos> <tool>
  • /loot spawn <targetPos> fish <loot_table> <pos>
  • /loot spawn <targetPos> fish <loot_table> <pos> mainhand
  • /loot spawn <targetPos> fish <loot_table> <pos> offhand
  • /loot spawn <targetPos> fish <loot_table> <pos> <tool>
  • /loot spawn <targetPos> kill <target>
  • /loot spawn <targetPos> loot <loot_table>
  • /loot spawn <targetPos> mine <pos>
  • /loot spawn <targetPos> mine <pos> mainhand
  • /loot spawn <targetPos> mine <pos> offhand
  • /loot spawn <targetPos> mine <pos> <tool>
/loot give
/loot give <players> (fish|kill|loot|mine)
ArgumentExpectsWhat it does
playersPlayer selectorone or severalPlayers who receive the loot in their inventory: @p, @a, @s or a player name.
loot_tableLoot tableLoot table ID, for example minecraft:chests/simple_dungeon or minecraft:gameplay/fishing.
posBlock coordinates (x y z)Block position used by mine or fish, as x y z or ~ ~-1 ~ for the block under you.
tooloptionalItem with componentsTool used for the roll: mainhand, offhand, or an item ID such as minecraft:diamond_pickaxe.
targetEntity selectoroneSingle entity whose drops are rolled with kill, for example @e[type=minecraft:zombie,limit=1,sort=nearest].
All 10 forms
  • /loot give <players> fish <loot_table> <pos>
  • /loot give <players> fish <loot_table> <pos> mainhand
  • /loot give <players> fish <loot_table> <pos> offhand
  • /loot give <players> fish <loot_table> <pos> <tool>
  • /loot give <players> kill <target>
  • /loot give <players> loot <loot_table>
  • /loot give <players> mine <pos>
  • /loot give <players> mine <pos> mainhand
  • /loot give <players> mine <pos> offhand
  • /loot give <players> mine <pos> <tool>
/loot insert
/loot insert <targetPos> (fish|kill|loot|mine)
ArgumentExpectsWhat it does
targetPosBlock coordinates (x y z)Coordinates of the container that receives the loot, such as a chest at ~ ~-1 ~.
loot_tableLoot tableLoot table ID, for example minecraft:chests/simple_dungeon or minecraft:gameplay/fishing.
posBlock coordinates (x y z)Block position used by mine or fish, as x y z or ~ ~-1 ~ for the block under you.
tooloptionalItem with componentsTool used for the roll: mainhand, offhand, or an item ID such as minecraft:diamond_pickaxe.
targetEntity selectoroneSingle entity whose drops are rolled with kill, for example @e[type=minecraft:zombie,limit=1,sort=nearest].
All 10 forms
  • /loot insert <targetPos> fish <loot_table> <pos>
  • /loot insert <targetPos> fish <loot_table> <pos> mainhand
  • /loot insert <targetPos> fish <loot_table> <pos> offhand
  • /loot insert <targetPos> fish <loot_table> <pos> <tool>
  • /loot insert <targetPos> kill <target>
  • /loot insert <targetPos> loot <loot_table>
  • /loot insert <targetPos> mine <pos>
  • /loot insert <targetPos> mine <pos> mainhand
  • /loot insert <targetPos> mine <pos> offhand
  • /loot insert <targetPos> mine <pos> <tool>
/loot replace
/loot replace (block|entity)
ArgumentExpectsWhat it does
targetPosBlock coordinates (x y z)Position of the destination: a container block for insert or replace, or the drop point for spawn.
slotSlotFirst slot written by replace, for example container.0 or weapon.mainhand.
countWhole numberat least 0Number of consecutive slots that replace may fill, starting from the first slot.
loot_tableLoot tableLoot table ID, for example minecraft:chests/simple_dungeon or minecraft:gameplay/fishing.
posBlock coordinates (x y z)Block position used by mine or fish, as x y z or ~ ~-1 ~ for the block under you.
tooloptionalItem with componentsTool used for the roll: mainhand, offhand, or an item ID such as minecraft:diamond_pickaxe.
targetEntity selectoroneSingle entity whose drops are rolled with kill, for example @e[type=minecraft:zombie,limit=1,sort=nearest].
entitiesEntity selectorone or severalEntities whose slots receive the loot with replace entity, such as @s or @a.
All 40 forms
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos>
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos> mainhand
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos> offhand
  • /loot replace block <targetPos> <slot> <count> fish <loot_table> <pos> <tool>
  • /loot replace block <targetPos> <slot> <count> kill <target>
  • /loot replace block <targetPos> <slot> <count> loot <loot_table>
  • /loot replace block <targetPos> <slot> <count> mine <pos>
  • /loot replace block <targetPos> <slot> <count> mine <pos> mainhand
  • /loot replace block <targetPos> <slot> <count> mine <pos> offhand
  • /loot replace block <targetPos> <slot> <count> mine <pos> <tool>
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos>
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos> mainhand
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos> offhand
  • /loot replace block <targetPos> <slot> fish <loot_table> <pos> <tool>
  • /loot replace block <targetPos> <slot> kill <target>
  • /loot replace block <targetPos> <slot> loot <loot_table>
  • /loot replace block <targetPos> <slot> mine <pos>
  • /loot replace block <targetPos> <slot> mine <pos> mainhand
  • /loot replace block <targetPos> <slot> mine <pos> offhand
  • /loot replace block <targetPos> <slot> mine <pos> <tool>
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos>
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos> mainhand
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos> offhand
  • /loot replace entity <entities> <slot> <count> fish <loot_table> <pos> <tool>
  • /loot replace entity <entities> <slot> <count> kill <target>
  • /loot replace entity <entities> <slot> <count> loot <loot_table>
  • /loot replace entity <entities> <slot> <count> mine <pos>
  • /loot replace entity <entities> <slot> <count> mine <pos> mainhand
  • /loot replace entity <entities> <slot> <count> mine <pos> offhand
  • /loot replace entity <entities> <slot> <count> mine <pos> <tool>
  • /loot replace entity <entities> <slot> fish <loot_table> <pos>
  • /loot replace entity <entities> <slot> fish <loot_table> <pos> mainhand
  • /loot replace entity <entities> <slot> fish <loot_table> <pos> offhand
  • /loot replace entity <entities> <slot> fish <loot_table> <pos> <tool>
  • /loot replace entity <entities> <slot> kill <target>
  • /loot replace entity <entities> <slot> loot <loot_table>
  • /loot replace entity <entities> <slot> mine <pos>
  • /loot replace entity <entities> <slot> mine <pos> mainhand
  • /loot replace entity <entities> <slot> mine <pos> offhand
  • /loot replace entity <entities> <slot> mine <pos> <tool>
/loot spawn
/loot spawn <targetPos> (fish|kill|loot|mine)
ArgumentExpectsWhat it does
targetPosPosition (x y z)Point where the items drop as entities, decimals allowed, for example ~ ~1 ~.
loot_tableLoot tableLoot table ID, for example minecraft:chests/simple_dungeon or minecraft:gameplay/fishing.
posBlock coordinates (x y z)Block position used by mine or fish, as x y z or ~ ~-1 ~ for the block under you.
tooloptionalItem with componentsTool used for the roll: mainhand, offhand, or an item ID such as minecraft:diamond_pickaxe.
targetEntity selectoroneSingle entity whose drops are rolled with kill, for example @e[type=minecraft:zombie,limit=1,sort=nearest].
All 10 forms
  • /loot spawn <targetPos> fish <loot_table> <pos>
  • /loot spawn <targetPos> fish <loot_table> <pos> mainhand
  • /loot spawn <targetPos> fish <loot_table> <pos> offhand
  • /loot spawn <targetPos> fish <loot_table> <pos> <tool>
  • /loot spawn <targetPos> kill <target>
  • /loot spawn <targetPos> loot <loot_table>
  • /loot spawn <targetPos> mine <pos>
  • /loot spawn <targetPos> mine <pos> mainhand
  • /loot spawn <targetPos> mine <pos> offhand
  • /loot spawn <targetPos> mine <pos> <tool>

Examples

Dungeon chest loot for a player

/loot give @p loot minecraft:chests/simple_dungeon

The nearest player receives one roll of the dungeon chest table.

Java 26.3

Zombie drops without the kill

/loot spawn ~ ~1 ~ kill @e[type=minecraft:zombie,limit=1,sort=nearest]

Drops the loot of the nearest zombie above you while the zombie stays alive.

Java 26.3

Fill a chest with End loot

/loot insert ~ ~-1 ~ loot minecraft:chests/end_city_treasure

Adds one roll of the End City treasure table to the container under you.

Java 26.3

Preview a block drop

/loot give @s mine ~ ~-1 ~ mainhand

Shows what the block under you would drop with your held tool, without breaking it.

Java 26.3

Simulate a fishing catch

/loot give @s fish minecraft:gameplay/fishing ~ ~ ~ mainhand

Rolls the fishing table at your position, using the rod in your main hand.

Java 26.3

Write loot into chosen slots

/loot replace block ~ ~-1 ~ container.0 3 loot minecraft:chests/buried_treasure

Puts the buried treasure loot into the first three slots of the container under you.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

Four sources

  • loot reads a table directly, such as minecraft:chests/simple_dungeon.
  • kill rolls the drops of an entity. The entity stays alive.
  • mine simulates breaking the block at a position with a tool, so Silk Touch or Fortune on that tool change the result. The block stays in place.
  • fish rolls a fishing table at a position, with a tool.

Four destinations

give fills inventories, insert adds the items to a container such as a Chest or a Barrel, spawn drops them as item entities at a position, and replace writes them into slots, starting at slot and covering count slots.

Tips

Table IDs follow the folders of the game data: chests/, entities/, blocks/ and gameplay/. Every run is random, so the same command gives different items. Structure chests have their own tables, for example chests/ancient_city for the Ancient City. For one fixed item, /give or /item is simpler.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/loot: FAQ

Does /loot kill kill the mob?

No. It only rolls the loot table of that entity and sends the items to the destination. The mob is not hurt.

Where do I find loot table IDs?

They mirror the loot_table folder of the game data, for example minecraft:chests/simple_dungeon or minecraft:entities/zombie. Data packs can add their own.

How do I use /loot?

Type it in the chat with cheats on: /loot give <players> (fish|kill|loot|mine).

Who can use /loot?

Cheats on, or operator level 2.

Related commands