1. Wiki
  2. /Commands
  3. //loot

/loot

Put commands in your add-on as functions: GodCraft writes and packs them for you.Get GodCraft

/loot: Drops items from a loot table, a mob's drops or a block's drops into the world or an inventory.

Syntax

<angle brackets> are required, [square brackets] optional. /loot has 21 forms:

/loot <target: targetspawn> <position: position_float> <source: sourceloot> <loot_table: id> [<tool>|mainhand|offhand: tool]
/loot <target: targetspawn> <position: position_float> <source: sourcekill> <entity: selection> [<tool>|mainhand|offhand: tool]
/loot <target: targetspawn> <position: position_float> <source: sourcemine> <TargetBlockPosition: position_float> [<tool>|mainhand|offhand: tool]
/loot <target: targetgive> <players: selection> <source: sourceloot> <loot_table: id> [<tool>|mainhand|offhand: tool]
/loot <target: targetgive> <players: selection> <source: sourcekill> <entity: selection> [<tool>|mainhand|offhand: tool]
/loot <target: targetgive> <players: selection> <source: sourcemine> <TargetBlockPosition: position_float> [<tool>|mainhand|offhand: tool]
/loot <target: targetinsert> <position: position_float> <source: sourceloot> <loot_table: id> [<tool>|mainhand|offhand: tool]
/loot <target: targetinsert> <position: position_float> <source: sourcekill> <entity: selection> [<tool>|mainhand|offhand: tool]
/loot <target: targetinsert> <position: position_float> <source: sourcemine> <TargetBlockPosition: position_float> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <entity: targetentity> <entity: selection> <slotType: entityequipmentslot> <slotId: int> <count: int> <source: sourceloot> <loot_table: id> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <entity: targetentity> <entity: selection> <slotType: entityequipmentslot> <slotId: int> <source: sourceloot> <loot_table: id> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <entity: targetentity> <entity: selection> <slotType: entityequipmentslot> <slotId: int> <count: int> <source: sourcekill> <entity: selection> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <entity: targetentity> <entity: selection> <slotType: entityequipmentslot> <slotId: int> <source: sourcekill> <entity: selection> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <entity: targetentity> <entity: selection> <slotType: entityequipmentslot> <slotId: int> <count: int> <source: sourcemine> <TargetBlockPosition: position_float> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <entity: targetentity> <entity: selection> <slotType: entityequipmentslot> <slotId: int> <source: sourcemine> <TargetBlockPosition: position_float> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <block: targetblock> <position: position_float> <slotType: blockequipmentslot> <slotId: int> <count: int> <source: sourceloot> <loot_table: id> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <block: targetblock> <position: position_float> <slotType: blockequipmentslot> <slotId: int> <source: sourceloot> <loot_table: id> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <block: targetblock> <position: position_float> <slotType: blockequipmentslot> <slotId: int> <count: int> <source: sourcekill> <entity: selection> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <block: targetblock> <position: position_float> <slotType: blockequipmentslot> <slotId: int> <source: sourcekill> <entity: selection> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <block: targetblock> <position: position_float> <slotType: blockequipmentslot> <slotId: int> <count: int> <source: sourcemine> <TargetBlockPosition: position_float> [<tool>|mainhand|offhand: tool]
/loot <target: targetreplace> <block: targetblock> <position: position_float> <slotType: blockequipmentslot> <slotId: int> <source: sourcemine> <TargetBlockPosition: position_float> [<tool>|mainhand|offhand: tool]

Commands: Commands

We use cookies to improve your experience and analyse site traffic. Learn more