Minecraft /loot command

Java EditionBedrock EditionSince Java 1.14 (18w43a) / Bedrock 1.18.10

Quick answer: Generates loot table drops and gives, inserts or spawns them where you choose. Syntax: loot <give|insert|spawn|replace> ... <fish|loot|kill|mine> ...

/loot rolls any loot table - mob drops, chest loot, fishing, block drops - and sends the result to a player, a container, the world, or an item slot. Sources include kill (an entity's drops), loot (a named loot table), fish (fishing loot at a spot) and mine (what a block would drop). It powers custom chests, random rewards and data pack loot.

Syntax

EditionSyntax
Javaloot <give|insert|spawn|replace> ... <fish|loot|kill|mine> ...
Bedrockloot spawn <position: x y z> <kill <entity: target>|loot <loot_table: string>> [<tool>|mainhand|offhand]

Targets / arguments: Players, containers, world positions or item slots. Requires: Cheats enabled / operator level 2 (Java), 1 (Bedrock).

Examples

/loot give @s kill @e[type=cow,limit=1]

Java: roll a cow's drops into your inventory

/loot spawn ~ ~ ~ loot minecraft:chests/buried_treasure

Java: drop buried treasure loot on the ground

/loot spawn 100 64 100 kill @e[type=zombie,limit=1]

Bedrock: spawn a zombie's drops at coordinates

Tips

Related commands

/give/item/clear