/loot
Rolls a loot table (or a block's/entity's drops, or a fishing context) and delivers the result: drop it on the ground (spawn), put it in a container (insert), give it to players (give), or overwrite an inventory slot (replace). Lets you preview and distribute loot exactly as the game would.
What is /loot used for?
What /loot is for
Rolls a loot table (or a block's or entity's drops) and delivers the result — drop it, insert it into a container, give it to players, or replace a slot.
When to use /loot
Preview exactly what a mob or chest would drop, hand out randomized rewards, or simulate mining and fishing loot in a datapack.
Syntax
Parameters
- target
- destination
- give <players>, insert <pos>, spawn <pos>, or replace …
- source
- literal
- loot <table>, kill <entity>, mine <pos> [tool], or fish <table> <pos>.
Command builder
Fill in the options below to generate a ready-to-paste /loot command.
give <players>, insert <pos>, spawn <pos>, or replace …
loot <table>, kill <entity>, mine <pos> [tool], or fish <table> <pos>.
Examples
Give yourself a roll of End City treasure.
Drop the items a nearby cow would on death.
Permission level
/loot requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.