Commands/loot

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

Syntax



 * Spawns item entities.
 * Distributes items to entities.
 * Distributes items to a container block.
 * Gives items to players, ignoring empty item stacks.
 * Distributes items to a container block.
 * Distributes items to a container block.
 * Gives items to players, ignoring empty item stacks.
 * Distributes items to a container block.
 * Gives items to players, ignoring empty item stacks.
 * Distributes items to a container block.
 * Distributes items to a container block.



Arguments

 * Specifies which loot table to use.
 * Specifies which loot table to use.

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

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


 * Specifies one or more entities to modify.
 * Specifies one or more entities to modify.


 * Specifies one or more players to give.
 * Specifies one or more players to give.


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


 * Specifies one entity to kill simulatively.
 * Specifies one entity to kill simulatively.


 * Specifies the number of consecutive slots to be filled. If the target is a block,  cannot exceed the greatest slot number.
 * Specifies the number of consecutive slots to be filled. If the target is a block,  cannot exceed the greatest slot number.


 * Specifies the inventory slot to be modified. Valid values depend on whether a block or an entity is being modified.


 * For blocks, must be  where  is replaced with a number specifying the slot.
 * Chests, dispensers, droppers, hoppers, and trapped chests are numbered 0 for the top-left slot and then increase first horizontally, then vertically (so, for example, a chest's top row slots are numbered 0 to 8 from left to right). Double chests and double trapped chests are treated as two single container blocks.
 * A brewing stand's bottom slots are numbered 0 to 2 from left to right, its top slot is 3 and the fuel slot is 4.
 * A furnace's slots are numbered 0 for the input slot, 1 for the fuel slot, and 2 for the output slot.
 * Other blocks which hold items but don't have inventory GUIs (flower pots and jukeboxes) can be changed only with.


 * For entities, must be one of the following, where  is replaced with a number specifying the slot:
 * {| class="wikitable" data-description="Slot information"

!Slot !Slot Numbers !Restrictions
 * rowspan=6|armor stands, mobs, and players only (though not all mobs show or make use of the items)
 * align="center"|0–53
 * players, item frames (slot 0), and minecarts only
 * align="center"|0–26
 * rowspan=3|players only
 * align="center"|0–8
 * align="center"|0–26
 * horses, donkeys, and mules only; item must be a saddle
 * donkeys, and mules only; item must be a chest
 * horses and llamas only; item must be a type of horse armor (if a horse) or a carpet (if a llama)
 * align="center"|0–14
 * donkeys and mules with chests only
 * align="center"|0–7
 * villagers only
 * }
 * align="center"|0–53
 * players, item frames (slot 0), and minecarts only
 * align="center"|0–26
 * rowspan=3|players only
 * align="center"|0–8
 * align="center"|0–26
 * horses, donkeys, and mules only; item must be a saddle
 * donkeys, and mules only; item must be a chest
 * horses and llamas only; item must be a type of horse armor (if a horse) or a carpet (if a llama)
 * align="center"|0–14
 * donkeys and mules with chests only
 * align="center"|0–7
 * villagers only
 * }
 * align="center"|0–8
 * align="center"|0–26
 * horses, donkeys, and mules only; item must be a saddle
 * donkeys, and mules only; item must be a chest
 * horses and llamas only; item must be a type of horse armor (if a horse) or a carpet (if a llama)
 * align="center"|0–14
 * donkeys and mules with chests only
 * align="center"|0–7
 * villagers only
 * }
 * donkeys, and mules only; item must be a chest
 * horses and llamas only; item must be a type of horse armor (if a horse) or a carpet (if a llama)
 * align="center"|0–14
 * donkeys and mules with chests only
 * align="center"|0–7
 * villagers only
 * }
 * align="center"|0–14
 * donkeys and mules with chests only
 * align="center"|0–7
 * villagers only
 * }
 * align="center"|0–7
 * villagers only
 * }

History
Befehl/loot 命令/loot