ItemsJavaBedrock

/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.

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>.

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.