Minecraft:Commands/loot: Difference between revisions
More actions
→Syntax: added "mine" source for Bedrock |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
* 2 {{only|java|short=1}} | * 2 {{only|java|short=1}} | ||
* 1 {{only|bedrock|short=1}} | * 1 {{only|bedrock|short=1}} | ||
|others= | |others=Cheats only{{only|bedrock|short=1}} | ||
}} | }} | ||
Drops the given | Drops the given loot table into the specified inventory or into the world. | ||
==Syntax== | ==Syntax== | ||
| Line 29: | Line 29: | ||
::<code><''SOURCE''></code> is: | ::<code><''SOURCE''></code> is: | ||
::: <code>fish <loot_table> <pos> [<tool>|mainhand|offhand]</code> | ::: <code>fish <loot_table> <pos> [<tool>|mainhand|offhand]</code> | ||
:::: Simulates | :::: Simulates fishing with a specified tool at a specified position. | ||
::: <code>loot <loot_table></code> | ::: <code>loot <loot_table></code> | ||
:::: Invokes a | :::: Invokes a loot table directly. | ||
::: <code>kill <target></code> | ::: <code>kill <target></code> | ||
:::: Simulates killing a specified entity. | :::: Simulates killing a specified entity. | ||
| Line 37: | Line 37: | ||
:::: Simulates mining a block at a specified position with a specified tool. | :::: Simulates mining a block at a specified position with a specified tool. | ||
: | ::Loot context provided by each <code><''SOURCE''></code> is: | ||
:::{|class="wikitable collapsible collapsed | :::{|class="wikitable collapsible collapsed | ||
! <''SOURCE''> !! Supplied loot context parameters | ! <''SOURCE''> !! Supplied loot context parameters | ||
| Line 43: | Line 43: | ||
| fish | | fish | ||
| | | | ||
* '''{{ | * '''{{MC/Cd|this}} entity:''' (If the executor is an entity) The command executor entity. | ||
* '''Origin:''' The center of the block at the specified position. | * '''Origin:''' The center of the block at the specified position. | ||
* '''Tool:''' The specified item. | * '''Tool:''' The specified item. | ||
| Line 49: | Line 49: | ||
| kill | | kill | ||
| | | | ||
* '''{{ | * '''{{MC/Cd|this}} entity:''' The specified entity. | ||
* '''Origin:''' The command execution position. | * '''Origin:''' The command execution position. | ||
* '''Damage source:''' The <code>magic</code> | * '''Damage source:''' The <code>magic</code> damage type | ||
* '''{{ | * '''{{MC/Cd|attacker}} entity:''' (If the executor is an entity) The command executor entity. | ||
* '''{{ | * '''{{MC/Cd|direct_attacker}} entity:''' (If the executor is an entity) The command executor entity. | ||
* '''{{ | * '''{{MC/Cd|attacking_player}} entity:''' (If the executor is a player) The command executor player. | ||
|- | |- | ||
| loot | | loot | ||
| | | | ||
* '''{{ | * '''{{MC/Cd|this}} entity:''' (If the executor is an entity) The command executor entity. | ||
* '''Origin:''' The command execution position. | * '''Origin:''' The command execution position. | ||
|- | |- | ||
| mine | | mine | ||
| | | | ||
* '''{{ | * '''{{MC/Cd|this}} entity:''' (If the executor is an entity) The command executor entity. | ||
* '''Origin:''' The center of the block at the specified position. | * '''Origin:''' The center of the block at the specified position. | ||
* '''Tool:''' The specified item. | * '''Tool:''' The specified item. | ||
| Line 91: | Line 91: | ||
:::: Simulates killing a specified entity with a specified tool. | :::: Simulates killing a specified entity with a specified tool. | ||
:::<code>loot <loot_table: string> ["<tool>|mainhand|offhand": string]</code> | :::<code>loot <loot_table: string> ["<tool>|mainhand|offhand": string]</code> | ||
:::: Invokes a | :::: Invokes a loot table with a specified tool. | ||
:::<code>mine <TargetBlockPosition: x y z> ["<tool>|mainhand|offhand": string]</code> | :::<code>mine <TargetBlockPosition: x y z> ["<tool>|mainhand|offhand": string]</code> | ||
:::: Simulates mining the block at the designated position with a specified tool. | :::: Simulates mining the block at the designated position with a specified tool. | ||
==Arguments== | ==Arguments== | ||
{{ | {{MC/El|je|short=1}}: {{MC/Argument|loot_table|loot_table}} | ||
{{ | {{MC/El|be|short=1}}: {{MC/Argument|loot_table: string|basic_string|be=1}} | ||
:Specifies which loot table to use. | :Specifies which loot table to use. | ||
:{{ | :{{MC/In|java}}, {{lcfirst:{{MC/Arg desc|je=loot_table}}}} | ||
:{{ | :{{MC/In|bedrock}}, {{lcfirst:{{MC/Arg desc|be=string}}}} And it refers to a loot table with the path of "loot_tables/<code>loot_table: string</code>.json". | ||
{{ | {{MC/El|je|short=1}}: {{MC/Argument|tool|item_stack}} | ||
:Specifies a tool to simulatively mine or fish. | :Specifies a tool to simulatively mine or fish. | ||
:{{ | :{{MC/Arg desc|je=item_stack}} | ||
{{ | {{MC/El|be|short=1}}: {{argument|be=1|"<tool>{{!}}mainhand{{!}}offhand": string|basic_string}} | ||
:Specifies a tool to be used to simulatively kill or loot. | :Specifies a tool to be used to simulatively kill or loot. | ||
:{{ | :{{MC/Arg desc|be=string}} Can be <code>mainhand</code> and <code>offhand</code>, otherwise it represents an item id. | ||
{{ | {{MC/Argument|target|entity|entity: target|CommandSelector<Actor>}} (in <code>kill</code> source) | ||
: Specifies one entity to kill simulatively. | : Specifies one entity to kill simulatively. | ||
:{{ | :{{MC/Arg desc|je=entity|amount=single|type=entities|actor}} | ||
{{ | {{MC/Argument|players|entity|player: target|CommandSelector<Player>}} | ||
:Specifies one or more players to give. | :Specifies one or more players to give. | ||
:{{ | :{{MC/Arg desc|je=entity|amount=multiple|type=players|be=CommandSelector<Player>}} | ||
{{ | {{MC/El|je|short=1}}: {{MC/Argument|pos|block_pos}} and {{MC/Argument|targetPos|block_pos}} (in <code>replace block</code> and <code>insert</code> mode)<br> | ||
{{ | {{MC/El|be|short=1}}: {{MC/Argument|be=1|position: x y z|CommandPositionFloat}} (in <code>replace block</code> and <code>insert</code> mode) | ||
:Specifies the position of a block. | :Specifies the position of a block. | ||
:{{ | :{{MC/In|java}}: {{lcfirst:{{MC/Arg desc|je=block_pos}}}} | ||
:{{ | :{{MC/In|bedrock}}: {{lcfirst:{{MC/Arg desc|be=CommandPositionFloat}}}} | ||
{{ | {{MC/Argument|targetPos|block_pos|position: x y z|CommandPositionFloat}} (in <code>spawn</code> mode) | ||
:Specifies the location where item entities drop. | :Specifies the location where item entities drop. | ||
:{{ | :{{MC/Arg desc|je=vec3|be=CommandPositionFloat}} | ||
{{ | {{MC/Argument|entities|entity|entity: target|CommandSelector<Actor>}} | ||
:Specifies one or more entities to modify. | :Specifies one or more entities to modify. | ||
:{{ | :{{MC/Arg desc|je=entity|amount=multiple|type=entities|be=actor}} | ||
{{ | {{MC/Argument|count|integer|count: int|int}} | ||
:Specifies the number of consecutive slots to be cleared. | :Specifies the number of consecutive slots to be cleared. | ||
:{{ | :{{MC/Arg desc|je=integer|min=0|be=int}} | ||
{{ | {{MC/El|je|short=1}}: {{MC/Argument|slot|item_slot}}<br> | ||
{{ | {{MC/El|be|short=1}}: {{MC/Argument|be=1|slotType: EntityEquipmentSlot|enum}}, <code>slot.container</code>, and {{MC/Argument|be=1|slotId: int|int}} | ||
:Specifies the inventory slot to be modified. | :Specifies the inventory slot to be modified. | ||
:{{ | :{{MC/Arg desc|je=item_slot|be=enum}} | ||
==Result== | ==Result== | ||
| Line 167: | Line 167: | ||
==Output== | ==Output== | ||
{{Output table}} | {{MC/Output table}} | ||
{{Output table|edition=je|On fail|0|0|0}} | {{MC/Output table|edition=je|On fail|0|0|0}} | ||
{{Output table|cmd=/loot spawn ...|On success|1|1|the number of item stacks got from loot}} | {{MC/Output table|cmd=/loot spawn ...|On success|1|1|the number of item stacks got from loot}} | ||
{{Output table|cmd=/loot give ...|On success|1|1|the total number of item stacks successfully allocated to each player}} | {{MC/Output table|cmd=/loot give ...|On success|1|1|the total number of item stacks successfully allocated to each player}} | ||
{{Output table|cmd=/loot insert ...|On success|1|1|the number of item stacks successfully distributed to the container}} | {{MC/Output table|cmd=/loot insert ...|On success|1|1|the number of item stacks successfully distributed to the container}} | ||
{{Output table|cmd=/loot replace block ...|On success|1|1|the number of item stacks successfully distributed to the container}} | {{MC/Output table|cmd=/loot replace block ...|On success|1|1|the number of item stacks successfully distributed to the container}} | ||
{{Output table|On error|0|unchanged|unchanged}} | {{MC/Output table|On error|0|unchanged|unchanged}} | ||
{{Output table|cmd=/loot replace entity ...|On success|1|1|the total number of item stacks successfully allocated to each entity}} | {{MC/Output table|cmd=/loot replace entity ...|On success|1|1|the total number of item stacks successfully allocated to each entity}} | ||
{{Output table|On error|0|unchanged|unchanged}} | {{MC/Output table|On error|0|unchanged|unchanged}} | ||
{{Output table|edition=be|cmd=|On fail|0}} | {{MC/Output table|edition=be|cmd=|On fail|0}} | ||
{{Output table|cmd=loot give ...|On success|{{ | {{Output table|cmd=loot give ...|On success|{{MC/Needs testing}}}} | ||
{{Output table|cmd=loot spawn ...<br>loot insert ...|On success|1}} | {{MC/Output table|cmd=loot spawn ...<br>loot insert ...|On success|1}} | ||
{{Output table|cmd=-{}-/loot replace entity ... <slotId: int> <''SOURCE''>|On success|When zero item stack is got, outputs 1.<br>Otherwise, outputs the number of targeted entities that have the specified slot}} | {{Output table|cmd=-{}-/loot replace entity ... <slotId: int> <''SOURCE''>|On success|When zero item stack is got, outputs 1.<br>Otherwise, outputs the number of targeted entities that have the specified slot}} | ||
{{Output table|cmd=-{}-/loot replace entity ... <slotId: int> <count: int> <''SOURCE''>|On success|When zero item stack is got, outputs 1.<br>Otherwise, outputs the number of targeted entities that have all the specified consecutive slots}} | {{Output table|cmd=-{}-/loot replace entity ... <slotId: int> <count: int> <''SOURCE''>|On success|When zero item stack is got, outputs 1.<br>Otherwise, outputs the number of targeted entities that have all the specified consecutive slots}} | ||
{{Output table}} | {{MC/Output table}} | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.14|dev=18w43a|Added {{ | |{{HistoryLine||1.14|dev=18w43a|Added {{MC/Cmd|drop|link=none}}.}} | ||
|{{HistoryLine|||dev=18w45a|Renamed {{ | |{{HistoryLine|||dev=18w45a|Renamed {{MC/Cmd|drop|link=none}} to {{MC/Cmd|loot|link=none}}. | ||
|{{ | |{{MC/Cmd|loot|link=none}} got reworked.}} | ||
|{{HistoryLine||1.20.5|dev=24w12a|{{ | |{{HistoryLine||1.20.5|dev=24w12a|{{MC/Cmd|loot|link=none}} now also accepts an inline SNBT-formatted loot table definition for the {{MC/Argument|loot_table|loot_table}} argument.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.18|dev=beta 1.18.0.21|Added {{ | |{{HistoryLine||1.18|dev=beta 1.18.0.21|Added {{MC/Cmd|loot spawn ... loot ...|link=none}}.}} | ||
|{{HistoryLine||1.18|dev=beta 1.18.0.22|Removed {{ | |{{HistoryLine||1.18|dev=beta 1.18.0.22|Removed {{MC/Cmd|loot|link=none}}.}} | ||
|{{HistoryLine||1.18.10|dev=beta 1.18.10.21|Re-added {{ | |{{HistoryLine||1.18.10|dev=beta 1.18.10.21|Re-added {{MC/Cmd|loot|link=none}}.}} | ||
|{{HistoryLine||1.18.10|dev=beta 1.18.10.24|Added {{ | |{{HistoryLine||1.18.10|dev=beta 1.18.10.24|Added {{MC/Cmd|loot spawn ... kill ...|link=none}}}} | ||
|{{HistoryLine||1.18.30|dev=beta 1.18.20.21|Added {{ | |{{HistoryLine||1.18.30|dev=beta 1.18.20.21|Added {{MC/Cmd|loot give ...|link=none}}}} | ||
|{{HistoryLine|||dev=beta 1.18.30.20|Added {{ | |{{HistoryLine|||dev=beta 1.18.30.20|Added {{MC/Cmd|loot insert ...|link=none}}}} | ||
|{{HistoryLine||1.19.0|dev=beta 1.19.0.30|Added {{ | |{{HistoryLine||1.19.0|dev=beta 1.19.0.30|Added {{MC/Cmd|loot replace entity ...|link=none}}}} | ||
|{{HistoryLine||1.19.40|dev=Preview 1.19.40.20|Added {{ | |{{HistoryLine||1.19.40|dev=Preview 1.19.40.20|Added {{MC/Cmd|loot replace block ...|link=none}}}} | ||
}} | }} | ||
== See also== | == See also== | ||
*{{ | *{{MC/Cmd|give}} — give specific items to players without specifying a loot table | ||
*{{ | *{{MC/Cmd|item}}{{only|je}} — modify specific item slots of entities or container | ||
*{{ | *{{MC/Cmd|replaceitem}}{{only|be}} — modify specific item slots of entities or container | ||
== External links == | == External links == | ||
| Line 217: | Line 217: | ||
== Navigation == | == Navigation == | ||
{{Navbox commands}} | {{MC/Navbox commands}} | ||
de:Befehl/loot | |||
es:Comandos/loot | |||
ja:コマンド/loot | |||
ko:명령어/loot | |||
pt:Comandos/loot | |||
ru:Команды консоли/loot | |||
uk:Команди консолі/loot | |||
zh:命令/loot | |||
Latest revision as of 20:12, 9 April 2026
Drops the given loot table into the specified inventory or into the world.
Syntax
- Java Edition
loot <TARGET> <SOURCE>- In which:
<TARGET>is:give <players>- Distributes items to players, ignoring empty item stacks.
insert <targetPos>- Distributes items to a container block, ignoring empty item stacks.
spawn <targetPos>- Spawns item entities. Empty item stacks are also spawned, but disappear instantly.
replace block <targetPos> <slot>replace entity <entities> <slot>- Replaces item stacks into some consecutive Minecraft:slots in order. An empty item stack generated by the <SOURCE> clears a slot.
replace block <targetPos> <slot> <count>replace entity <entities> <slot> <count>- Clears some consecutive Minecraft:slots, and then places item stacks into them in order. Empty item stacks are also placed. If the number of item stacks generated by the <SOURCE> exceeds the specified slot number, excess item stacks are ignored.
<SOURCE>is:fish <loot_table> <pos> [<tool>|mainhand|offhand]- Simulates fishing with a specified tool at a specified position.
loot <loot_table>- Invokes a loot table directly.
kill <target>- Simulates killing a specified entity.
mine <pos> [<tool>|mainhand|offhand]- Simulates mining a block at a specified position with a specified tool.
- Loot context provided by each
<SOURCE>is:
- Loot context provided by each
<SOURCE> Supplied loot context parameters fish - REDIRECT Template:Code
Template:Redr entity: (If the executor is an entity) The command executor entity.
- Origin: The center of the block at the specified position.
- Tool: The specified item.
kill - REDIRECT Template:Code
Template:Redr entity: The specified entity.
- Origin: The command execution position.
- Damage source: The
magicdamage type
- REDIRECT Template:Code
Template:Redr entity: (If the executor is an entity) The command executor entity.
- REDIRECT Template:Code
Template:Redr entity: (If the executor is an entity) The command executor entity.
- REDIRECT Template:Code
Template:Redr entity: (If the executor is a player) The command executor player.
loot - REDIRECT Template:Code
Template:Redr entity: (If the executor is an entity) The command executor entity.
- Origin: The command execution position.
mine - REDIRECT Template:Code
Template:Redr entity: (If the executor is an entity) The command executor entity.
- Origin: The center of the block at the specified position.
- Tool: The specified item.
- Block state: The specified block.
- Block entity: (If the block is a block entity.) Block entity data of the block.
- Bedrock Edition
loot <TARGET> <SOURCE>- In which:
<TARGET>is:give <player: target>- Gives items to players, ignoring empty item stacks.
insert <position: x y z>- Distributes items to a container block, ignoring empty item stacks.
spawn <position: x y z>- Spawns item entities, ignoring empty item stacks.
replace block <position: x y z> slot.container <slotId: int>replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int>- Replaces item stacks into some consecutive Minecraft:slots in order. An empty item stack generated by the <SOURCE> clears a slot.
replace block <position: x y z> slot.container <slotId: int> [count: int]replace entity <entity: target> <slotType: EntityEquipmentSlot> <slotId: int> [count: int]- Clears some consecutive Minecraft:slots, and then places item stacks into them in order. Empty item stacks are also placed. If the number of item stacks generated by the <SOURCE> exceeds the specified slot number, excess item stacks are ignored. An entity or a container must have all the specified consecutive slots in order to clear and place items in it.
<SOURCE>is:kill <entity: target> ["<tool>|mainhand|offhand": string]- Simulates killing a specified entity with a specified tool.
loot <loot_table: string> ["<tool>|mainhand|offhand": string]- Invokes a loot table with a specified tool.
mine <TargetBlockPosition: x y z> ["<tool>|mainhand|offhand": string]- Simulates mining the block at the designated position with a specified tool.
Arguments
- REDIRECT Template:Edition
Template:Rcat: <loot_table>: loot_table
- REDIRECT Template:Edition
Template:Rcat: loot_table: string: basic_string
- Specifies which loot table to use.
- in Template:Editions, {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|loot_table}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- in Template:Editions, {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|string}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} And it refers to a loot table with the path of "loot_tables/
loot_table: string.json".
- REDIRECT Template:Edition
Template:Rcat: <tool>: item_stack
- Specifies a tool to simulatively mine or fish.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|item_stack}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Edition
Template:Rcat: Template:Argument
- Specifies a tool to be used to simulatively kill or loot.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|string}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}} Can be
mainhandandoffhand, otherwise it represents an item id.
Template:El: <target>: entity
Template:El: entity: target: CommandSelector<Actor> (in kill source)
- Specifies one entity to kill simulatively.
- {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Template:El: <players>: entity
Template:El: player: target: CommandSelector<Player>
- Specifies one or more players to give.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|entity}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Edition
Template:Rcat: <pos>: block_pos and <targetPos>: block_pos (in replace block and insert mode)
- REDIRECT Template:Edition
Template:Rcat: position: x y z: CommandPositionFloat (in replace block and insert mode)
- Specifies the position of a block.
- in Template:Editions: {{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|block_pos}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- in Template:Editions: {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|vec3}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Template:El: <targetPos>: block_pos
Template:El: position: x y z: CommandPositionFloat (in spawn mode)
- Specifies the location where item entities drop.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|vec3}}{{#vardefine:be-arg|vec3}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Template:El: <entities>: entity
Template:El: entity: target: CommandSelector<Actor>
- Specifies one or more entities to modify.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|entity}}{{#vardefine:be-arg|entity}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Template:El: <count>: integer
Template:El: count: int: int
- Specifies the number of consecutive slots to be cleared.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|integer}}{{#vardefine:be-arg|integer}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
- REDIRECT Template:Edition
Template:Rcat: <slot>: item_slot
- REDIRECT Template:Edition
Template:Rcat: slotType: EntityEquipmentSlot: enum, slot.container, and slotId: int: int
- Specifies the inventory slot to be modified.
- {{#vardefine:onlyje|Template:IN,}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|item_slot}}{{#vardefine:be-arg|{{#var:je-arg}}}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|0}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the number of item stacks got from loot}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/loot spawn ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the total number of item stacks successfully allocated to each player}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/loot give ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the number of item stacks successfully distributed to the container}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/loot insert ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the number of item stacks successfully distributed to the container}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/loot replace block ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On error}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|unchanged}}{{#vardefine:output3-{{#var:output-table-lines}}|unchanged}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the total number of item stacks successfully allocated to each entity}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/loot replace entity ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On error}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|unchanged}}{{#vardefine:output3-{{#var:output-table-lines}}|unchanged}}{{#vardefine:command-row-{{#var:commands-num}}|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On fail}}{{#vardefine:output1-{{#var:output-table-lines}}|0}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|Any}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|be}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}}
Template:Output table
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|N/A}}{{#vardefine:output3-{{#var:output-table-lines}}|N/A}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|loot spawn ...}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}
Template:Output table
Template:Output table
loot insert ...
{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}
History
Java Edition
Bedrock Edition
See also
- REDIRECT Template:Command
Template:Redr — give specific items to players without specifying a loot table
- REDIRECT Template:Command
Template:RedrTemplate:Only — modify specific item slots of entities or container
- REDIRECT Template:Command
Template:RedrTemplate:Only — modify specific item slots of entities or container
External links
de:Befehl/loot es:Comandos/loot ja:コマンド/loot ko:명령어/loot pt:Comandos/loot ru:Команды консоли/loot uk:Команди консолі/loot zh:命令/loot