Commands/loot

Drops the given loot table into the specified inventory or into the world.

Syntax

 * Java Edition
 * In which:
 * is:
 * Gives items to players, ignoring empty item stacks.
 * Distributes items to a container block.
 * Spawns item entities.
 * Distributes items to a container block.
 * Distributes items to entities.
 * Spawns item entities.
 * Distributes items to a container block.
 * Distributes items to entities.
 * Distributes items to a container block.
 * Distributes items to entities.
 * Distributes items to entities.


 * is:


 * Bedrock Edition
 * In which:
 * is:
 * Gives items to players, ignoring empty item stacks.
 * Distributes items to a container block, ignoring empty item stacks.
 * Spawns item entities, ignoring empty item stacks.
 * Distributes items to a container block.
 * Distributes items to entities.
 * Spawns item entities, ignoring empty item stacks.
 * Distributes items to a container block.
 * Distributes items to entities.
 * Distributes items to a container block.
 * Distributes items to entities.
 * Distributes items to entities.


 * is:

Arguments

 * Specifies which loot table to use.
 * $$, And it refers to a loot table with the path of "loot_tables/ .json".
 * Specifies which loot table to use.
 * $$, And it refers to a loot table with the path of "loot_tables/ .json".
 * $$, And it refers to a loot table with the path of "loot_tables/ .json".


 * Specifies a tool to mine or fish.
 * Specifies a tool to mine or fish.


 * Specifies a tool to be used to kill or loot.
 * Can be  and , otherwise it represents an item id.
 * Can be  and , otherwise it represents an item id.

(in  source)
 * Specifies one entity to kill simulatively.


 * Specifies one or more players to give.


 * and (in   and   mode)
 * (in  mode)
 * Specifies the position of a block.

(in  mode)
 * Specifies the location where item drops.


 * Specifies one or more entities to modify.


 * Specifies the number of consecutive slots to be filled.


 * ,  and
 * Specifies the inventory slot to be modified. Valid values depend on what is being modified. See Slot for details.
 * Specifies the inventory slot to be modified. Valid values depend on what is being modified. See Slot for details.

History
Befehl/loot 命令/loot