/loot

Cheats / op 2Java 26.3

Drops or gives the loot of a loot table, a mined block or a killed entity. Its basic form is /loot give <players> fish <loot_table> <pos>; it has 40 syntax forms and 9 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
40
Arguments
9

/loot syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/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> 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> kill <target>
/loot replace entity <entities> <slot> <count> loot <loot_table>

/loot examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/loot give @s loot minecraft:chests/ancient_city
Gives you one roll of the ancient city chest loot.
/loot spawn ~ ~ ~ loot minecraft:entities/wither_skeleton
Drops what a wither skeleton would drop, without killing one.

/loot arguments

What each argument expects, with the limits the game enforces.

/loot arguments
ArgumentExpectsLimits
<players>Target selector or player name (@s, @p, @a, @e, @r)players only · one or more
<loot_table>Loot table ID—
<pos>Block coordinates (x y z, ~ relative, ^ local)—
<tool>Item ID with optional [components]—
<target>Target selector or player name (@s, @p, @a, @e, @r)one target
<targetPos>Block coordinates (x y z, ~ relative, ^ local)—
<slot>Slot name (weapon.mainhand, container.5…)—
<count>Whole numberat least 0
<entities>Target selector or player name (@s, @p, @a, @e, @r)one or more

Other commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Drops or gives the loot of a loot table, a mined block or a killed entity. It has 40 syntax forms and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/loot FAQ (Java 26.3)

What does /loot do in Minecraft?

Drops or gives the loot of a loot table, a mined block or a killed entity.

What is the syntax of /loot?

The basic form is /loot give <players> fish <loot_table> <pos>. All forms are listed above.

What is an example of /loot?

/loot give @s loot minecraft:chests/ancient_city — Gives you one roll of the ancient city chest loot.

Do you need cheats for /loot?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).