/

/loot

op 2Items

/loot rolls a loot table and puts the result somewhere. It is the clean way to hand out randomised rewards, simulate a block drop with a specific tool, or fill a chest with real dungeon loot.

Command1 to fix
18
/loot give @p loot
  • Loot table is required.
Press C to copy
Nearest player
@p

Who or what the command applies to

Loot table is required.

Examples

  • Drop chest loot
    /loot spawn ~ ~ ~ loot minecraft:chests/simple_dungeon
  • Simulate mining
    /loot give @s mine ~ ~-1 ~ diamond_pickaxe

Common questions about /loot

What is the difference between insert and give?

give puts items into player inventories; insert puts them into the container at a block position. spawn drops them as item entities instead.

Can I test what a Silk Touch or Fortune pickaxe would drop?

Yes — use the mine source and pass the tool, components and all. The loot table is evaluated exactly as if that tool broke the block.