/loot Command in Minecraft Bedrock Edition

Generate and Drop Loot Table Items

Bedrock EditionItems & InventoryPermission: Game DirectorsCheats: YesJava version →

The /loot command in Minecraft Bedrock Edition drops items from a chosen loot table directly into the world or into an inventory. You can generate items from a specific loot table path, simulate killing an entity, or simulate mining a block at specific coordinates.

Map makers and server admins use this command to reward players with randomized chest loot, refill containers automatically, or test custom loot drops using the tool currently held in a hand.

Syntax (20 forms)

  1. /loot spawn <position: x y z> loot <loot_table: string> [<tool>|mainhand|offhand: Tool]

    Spawn loot into hand

  2. /loot spawn <position: x y z> kill <entity: target> [<tool>|mainhand|offhand: Tool]

    Spawn loot from position, kill entity with tool

  3. /loot spawn <position: x y z> mine <TargetBlockPosition: x y z> [<tool>|mainhand|offhand: Tool]

    Give loot to player, looting with tool

  4. /loot give <players: target> loot <loot_table: string> [<tool>|mainhand|offhand: Tool]

    Give loot to player, killing entity using tool

  5. /loot give <players: target> kill <entity: target> [<tool>|mainhand|offhand: Tool]

    Give loot to player, mining a block using tool

  6. /loot give <players: target> mine <TargetBlockPosition: x y z> [<tool>|mainhand|offhand: Tool]

    Insert loot from position, looting with tool

  7. /loot insert <position: x y z> loot <loot_table: string> [<tool>|mainhand|offhand: Tool]

    Insert loot from position, killing entity with tool

  8. /loot insert <position: x y z> kill <entity: target> [<tool>|mainhand|offhand: Tool]

    Insert loot from position, mining a block with tool

  9. /loot insert <position: x y z> mine <TargetBlockPosition: x y z> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, count, looting with tool

  10. /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> <count: int> loot <loot_table: string> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, looting with tool

  11. /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> loot <loot_table: string> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, count, killing entity with tool

  12. /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> <count: int> kill <entity: target> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, killing entity with tool

  13. /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> kill <entity: target> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, count, mining a block with tool

  14. /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> <count: int> mine <TargetBlockPosition: x y z> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, mining a block with tool

  15. /loot replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> mine <TargetBlockPosition: x y z> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, count, looting with a tool

  16. /loot replace block <position: x y z> slot.container <slotId: int> <count: int> loot <loot_table: string> [<tool>|mainhand|offhand: Tool]

    Replace loot, slot, looting with `tool`

  17. /loot replace block <position: x y z> slot.container <slotId: int> loot <loot_table: string> [<tool>|mainhand|offhand: Tool]

    Replace loot slot, count, killing `entity` with a tool

  18. /loot replace block <position: x y z> slot.container <slotId: int> <count: int> kill <entity: target> [<tool>|mainhand|offhand: Tool]

    Replace loot from block, killing `entity` with tool

  19. /loot replace block <position: x y z> slot.container <slotId: int> kill <entity: target> [<tool>|mainhand|offhand: Tool]

    Replace loot slot, count, mining a block with a tool

  20. /loot replace block <position: x y z> slot.container <slotId: int> <count: int> mine <TargetBlockPosition: x y z> [<tool>|mainhand|offhand: Tool]

    Replace loot from block, mining a block with tool.

Arguments

ArgumentTypeWhat it means
<tool>|mainhand|offhandToolSpecifies the hand holding the tool
countintAn integer that defines the total number of inventory or container slots to fill.
entitytargetSpecifies the target entity that either receives the items or acts as the source of the killed entity loot.
loot_tablestringThe string file path to the loot table you want to generate items from.
playerstargetA target selector or player name specifying who will receive the generated loot.
position: x y zpositionThe x, y, and z coordinates where loot is spawned in the world or where a target container block is located.
slotIdintAn integer that chooses the specific starting slot number inside an entity or block inventory.
slotTypeEntityEquipmentSlotThe specific equipment or inventory slot category on an entity to replace items in.
TargetBlockPosition: x y zpositionThe x, y, and z coordinates of the block to simulate mining for drops.

Examples

Tips

Common mistakes

Bedrock vs Java

In Minecraft Java Edition, the /loot command includes a fish source option (such as /loot give <players> fish <loot_table> <pos> [tool|mainhand|offhand]) to simulate fishing at a specific position, which is not part of the Bedrock Edition syntax.

See /loot in Java Edition →

FAQ

Who has permission to use the /loot command?

You must have cheats enabled in your world and hold the Game Directors permission level to run the /loot command.

Does /loot kill actually kill the targeted mob?

No, the kill argument only reads the target entity to calculate what loot it would drop and leaves the entity unharmed.

What is the difference between /loot insert and /loot replace block?

The insert option places generated loot into available space inside a container, while replace block overwrites specific slot numbers that you choose with slotId and count.

Related commands

/clear/enchant/give/recipe/replaceitem