<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2600%3A1700%3A71E0%3A3100%3ABDD7%3A7839%3A18B5%3A6B90</id>
	<title>SAS Gaming Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2600%3A1700%3A71E0%3A3100%3ABDD7%3A7839%3A18B5%3A6B90"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/wiki/Special:Contributions/2600:1700:71E0:3100:BDD7:7839:18B5:6B90"/>
	<updated>2026-04-09T16:26:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/loot&amp;diff=49726</id>
		<title>Minecraft:Commands/loot</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/loot&amp;diff=49726"/>
		<updated>2025-12-29T22:21:48Z</updated>

		<summary type="html">&lt;p&gt;2600:1700:71E0:3100:BDD7:7839:18B5:6B90: /* Syntax */ added &amp;quot;mine&amp;quot; source for Bedrock&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox command&lt;br /&gt;
|name=loot&lt;br /&gt;
|oplevel=&lt;br /&gt;
* 2 {{only|java|short=1}}&lt;br /&gt;
* 1 {{only|bedrock|short=1}}&lt;br /&gt;
|others=[[Minecraft:Cheats]] only{{only|bedrock|short=1}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Drops the given [[Minecraft:loot table]] into the specified inventory or into the world.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
* &#039;&#039;&#039;Java Edition&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;loot &amp;lt;&#039;&#039;TARGET&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::In which:&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;&#039;&#039;TARGET&#039;&#039;&amp;gt;&amp;lt;/code&amp;gt; is:&lt;br /&gt;
::: &amp;lt;code&amp;gt;give &amp;lt;players&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Distributes items to players, ignoring empty item stacks.&lt;br /&gt;
::: &amp;lt;code&amp;gt;insert &amp;lt;targetPos&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Distributes items to a container block, ignoring empty item stacks.&lt;br /&gt;
::: &amp;lt;code&amp;gt;spawn &amp;lt;targetPos&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Spawns item entities. Empty item stacks are also spawned, but disappear instantly.&lt;br /&gt;
::: &amp;lt;code&amp;gt;replace block &amp;lt;targetPos&amp;gt; &amp;lt;slot&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: &amp;lt;code&amp;gt;replace entity &amp;lt;entities&amp;gt; &amp;lt;slot&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Replaces item stacks into some consecutive [[Minecraft:slot]]s in order. An empty item stack generated by the &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt; clears a slot.&lt;br /&gt;
::: &amp;lt;code&amp;gt;replace block &amp;lt;targetPos&amp;gt; &amp;lt;slot&amp;gt; &amp;lt;count&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::: &amp;lt;code&amp;gt;replace entity &amp;lt;entities&amp;gt; &amp;lt;slot&amp;gt; &amp;lt;count&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Clears some consecutive [[Minecraft:slot]]s, and then places item stacks into them in order. Empty item stacks are also placed. If the number of item stacks generated by the &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt; exceeds the specified slot number, excess item stacks are ignored.&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;/code&amp;gt; is:&lt;br /&gt;
::: &amp;lt;code&amp;gt;fish &amp;lt;loot_table&amp;gt; &amp;lt;pos&amp;gt; [&amp;lt;tool&amp;gt;|mainhand|offhand]&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Simulates [[Minecraft:fishing]] with a specified tool at a specified position.&lt;br /&gt;
::: &amp;lt;code&amp;gt;loot &amp;lt;loot_table&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Invokes a [[Minecraft:loot table]] directly.&lt;br /&gt;
::: &amp;lt;code&amp;gt;kill &amp;lt;target&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Simulates killing a specified entity.&lt;br /&gt;
::: &amp;lt;code&amp;gt;mine &amp;lt;pos&amp;gt; [&amp;lt;tool&amp;gt;|mainhand|offhand]&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Simulates mining a block at a specified position with a specified tool.&lt;br /&gt;
&lt;br /&gt;
::[[Minecraft:Loot context]] provided by each &amp;lt;code&amp;gt;&amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;/code&amp;gt; is:&lt;br /&gt;
:::{|class=&amp;quot;wikitable collapsible collapsed&lt;br /&gt;
! &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt; !!  Supplied loot context parameters&lt;br /&gt;
|-&lt;br /&gt;
| fish&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;{{cd|this}} entity:&#039;&#039;&#039; (If the executor is an entity) The command executor entity.&lt;br /&gt;
* &#039;&#039;&#039;Origin:&#039;&#039;&#039; The center of the block at the specified position.&lt;br /&gt;
* &#039;&#039;&#039;Tool:&#039;&#039;&#039; The specified item.&lt;br /&gt;
|-&lt;br /&gt;
| kill&lt;br /&gt;
| &lt;br /&gt;
* &#039;&#039;&#039;{{cd|this}} entity:&#039;&#039;&#039; The specified entity.&lt;br /&gt;
* &#039;&#039;&#039;Origin:&#039;&#039;&#039; The command execution position.&lt;br /&gt;
* &#039;&#039;&#039;Damage source:&#039;&#039;&#039; The &amp;lt;code&amp;gt;magic&amp;lt;/code&amp;gt; [[Minecraft:damage type]]&lt;br /&gt;
* &#039;&#039;&#039;{{cd|attacker}} entity:&#039;&#039;&#039; (If the executor is an entity) The command executor entity.&lt;br /&gt;
* &#039;&#039;&#039;{{cd|direct_attacker}} entity:&#039;&#039;&#039; (If the executor is an entity) The command executor entity.&lt;br /&gt;
* &#039;&#039;&#039;{{cd|attacking_player}} entity:&#039;&#039;&#039; (If the executor is a player) The command executor player.&lt;br /&gt;
|-&lt;br /&gt;
| loot&lt;br /&gt;
|&lt;br /&gt;
* &#039;&#039;&#039;{{cd|this}} entity:&#039;&#039;&#039; (If the executor is an entity) The command executor entity.&lt;br /&gt;
* &#039;&#039;&#039;Origin:&#039;&#039;&#039; The command execution position.&lt;br /&gt;
|-&lt;br /&gt;
| mine&lt;br /&gt;
|&lt;br /&gt;
* &#039;&#039;&#039;{{cd|this}} entity:&#039;&#039;&#039; (If the executor is an entity) The command executor entity.&lt;br /&gt;
* &#039;&#039;&#039;Origin:&#039;&#039;&#039; The center of the block at the specified position.&lt;br /&gt;
* &#039;&#039;&#039;Tool:&#039;&#039;&#039; The specified item.&lt;br /&gt;
* &#039;&#039;&#039;Block state:&#039;&#039;&#039; The specified block.&lt;br /&gt;
* &#039;&#039;&#039;Block entity:&#039;&#039;&#039; (If the block is a block entity.) Block entity data of the block.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Bedrock Edition&#039;&#039;&#039;&lt;br /&gt;
: &amp;lt;code&amp;gt;loot &amp;lt;&#039;&#039;TARGET&#039;&#039;&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
::In which:&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;&#039;&#039;TARGET&#039;&#039;&amp;gt;&amp;lt;/code&amp;gt; is:&lt;br /&gt;
::: &amp;lt;code&amp;gt;give &amp;lt;player: target&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Gives items to players, ignoring empty item stacks.&lt;br /&gt;
::: &amp;lt;code&amp;gt;insert &amp;lt;position: x y z&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Distributes items to a container block, ignoring empty item stacks.&lt;br /&gt;
::: &amp;lt;code&amp;gt;spawn &amp;lt;position: x y z&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Spawns item entities, ignoring empty item stacks.&lt;br /&gt;
::: &amp;lt;code&amp;gt;replace block &amp;lt;position: x y z&amp;gt; slot.container &amp;lt;slotId: int&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::&amp;lt;code&amp;gt;replace entity &amp;lt;entity: target&amp;gt; &amp;lt;slotType: EntityEquipmentSlot&amp;gt; &amp;lt;slotId: int&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Replaces item stacks into some consecutive [[Minecraft:slot]]s in order. An empty item stack generated by the &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt; clears a slot.&lt;br /&gt;
::: &amp;lt;code&amp;gt;replace block &amp;lt;position: x y z&amp;gt; slot.container &amp;lt;slotId: int&amp;gt; [count: int]&amp;lt;/code&amp;gt;&lt;br /&gt;
:::&amp;lt;code&amp;gt;replace entity &amp;lt;entity: target&amp;gt; &amp;lt;slotType: EntityEquipmentSlot&amp;gt; &amp;lt;slotId: int&amp;gt; [count: int]&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Clears some consecutive [[Minecraft:slot]]s, and then places item stacks into them in order. Empty item stacks are also placed. If the number of item stacks generated by the &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt; 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.&lt;br /&gt;
&lt;br /&gt;
::&amp;lt;code&amp;gt;&amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;/code&amp;gt; is:&lt;br /&gt;
:::&amp;lt;code&amp;gt;kill &amp;lt;entity: target&amp;gt; [&amp;quot;&amp;lt;tool&amp;gt;|mainhand|offhand&amp;quot;: string]&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Simulates killing a specified entity with a specified tool.&lt;br /&gt;
:::&amp;lt;code&amp;gt;loot &amp;lt;loot_table: string&amp;gt; [&amp;quot;&amp;lt;tool&amp;gt;|mainhand|offhand&amp;quot;: string]&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Invokes a [[Minecraft:loot table]] with a specified tool.&lt;br /&gt;
:::&amp;lt;code&amp;gt;mine &amp;lt;TargetBlockPosition: x y z&amp;gt; [&amp;quot;&amp;lt;tool&amp;gt;|mainhand|offhand&amp;quot;: string]&amp;lt;/code&amp;gt;&lt;br /&gt;
:::: Simulates mining the block at the designated position with a specified tool.&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
{{el|je|short=1}}: {{argument|loot_table|loot_table}}&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|loot_table: string|basic_string|be=1}}  &lt;br /&gt;
:Specifies which loot table to use.&lt;br /&gt;
:{{IN|java}}, {{lcfirst:{{arg desc|je=loot_table}}}}&lt;br /&gt;
:{{IN|bedrock}}, {{lcfirst:{{arg desc|be=string}}}} And it refers to a loot table with the path of &amp;quot;loot_tables/&amp;lt;code&amp;gt;loot_table: string&amp;lt;/code&amp;gt;.json&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|tool|item_stack}} &lt;br /&gt;
:Specifies a tool to simulatively mine or fish.&lt;br /&gt;
:{{arg desc|je=item_stack}}&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|&amp;quot;&amp;lt;tool&amp;gt;{{!}}mainhand{{!}}offhand&amp;quot;: string|basic_string}} &lt;br /&gt;
:Specifies a tool to be used to simulatively kill or loot.&lt;br /&gt;
:{{arg desc|be=string}} Can be &amp;lt;code&amp;gt;mainhand&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;offhand&amp;lt;/code&amp;gt;, otherwise it represents an item id.&lt;br /&gt;
&lt;br /&gt;
{{argument|target|entity|entity: target|CommandSelector&amp;lt;Actor&amp;gt;}} (in &amp;lt;code&amp;gt;kill&amp;lt;/code&amp;gt; source)&lt;br /&gt;
: Specifies one entity to kill simulatively.&lt;br /&gt;
:{{arg desc|je=entity|amount=single|type=entities|actor}}&lt;br /&gt;
&lt;br /&gt;
{{argument|players|entity|player: target|CommandSelector&amp;lt;Player&amp;gt;}} &lt;br /&gt;
:Specifies one or more players to give.&lt;br /&gt;
:{{arg desc|je=entity|amount=multiple|type=players|be=CommandSelector&amp;lt;Player&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|pos|block_pos}} and {{argument|targetPos|block_pos}} (in &amp;lt;code&amp;gt;replace block&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;insert&amp;lt;/code&amp;gt; mode)&amp;lt;br&amp;gt;&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|position: x y z|CommandPositionFloat}} (in &amp;lt;code&amp;gt;replace block&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;insert&amp;lt;/code&amp;gt; mode) &lt;br /&gt;
:Specifies the position of a block.&lt;br /&gt;
:{{IN|java}}: {{lcfirst:{{arg desc|je=block_pos}}}}&lt;br /&gt;
:{{IN|bedrock}}: {{lcfirst:{{arg desc|be=CommandPositionFloat}}}}&lt;br /&gt;
&lt;br /&gt;
{{argument|targetPos|block_pos|position: x y z|CommandPositionFloat}} (in &amp;lt;code&amp;gt;spawn&amp;lt;/code&amp;gt; mode) &lt;br /&gt;
:Specifies the location where item entities drop.&lt;br /&gt;
:{{arg desc|je=vec3|be=CommandPositionFloat}}&lt;br /&gt;
&lt;br /&gt;
{{argument|entities|entity|entity: target|CommandSelector&amp;lt;Actor&amp;gt;}} &lt;br /&gt;
:Specifies one or more entities to modify.&lt;br /&gt;
:{{arg desc|je=entity|amount=multiple|type=entities|be=actor}}&lt;br /&gt;
&lt;br /&gt;
{{argument|count|integer|count: int|int}} &lt;br /&gt;
:Specifies the number of consecutive slots to be cleared.&lt;br /&gt;
:{{arg desc|je=integer|min=0|be=int}}&lt;br /&gt;
&lt;br /&gt;
{{el|je|short=1}}: {{argument|slot|item_slot}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|slotType: EntityEquipmentSlot|enum}}, &amp;lt;code&amp;gt;slot.container&amp;lt;/code&amp;gt;, and {{argument|be=1|slotId: int|int}}  &lt;br /&gt;
:Specifies the inventory slot to be modified.&lt;br /&gt;
:{{arg desc|je=item_slot|be=enum}}&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
&lt;br /&gt;
{{Result table}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}&lt;br /&gt;
{{Result table|cmd=/... fish ...&amp;lt;br&amp;gt;/... mine ...|&amp;lt;code&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;position: x y z&amp;lt;/code&amp;gt; is unloaded or out of the world.|fail|fail}}&lt;br /&gt;
{{Result table|cmd=/... mainhand&amp;lt;br&amp;gt;/... offhand|The executor is not a living entity.||N/A}}&lt;br /&gt;
{{Result table|The executor is not an entity.||fail}}&lt;br /&gt;
{{Result table|cmd=/... kill ...|&amp;lt;code&amp;gt;&amp;lt;target&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;entity: target&amp;lt;/code&amp;gt; fails to resolve to a single entity (named player must be online).}}&lt;br /&gt;
{{Result table|The target is not a living entity.||N/A}}&lt;br /&gt;
{{Result table|The target has no loot table.|N/A|fail}}&lt;br /&gt;
{{Result table|cmd=/... loot ...|The &amp;lt;code&amp;gt;loot_table: string&amp;lt;/code&amp;gt; is not a valid loot table.&amp;lt;!--unparseable in java because the argument is not specified correctly--&amp;gt;}}&lt;br /&gt;
{{Result table|cmd=/loot replace entity ...|&amp;lt;code&amp;gt;&amp;lt;entities&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;entity: target&amp;lt;/code&amp;gt; fails to resolve to one or more entities (named player must be online).|fail}}&lt;br /&gt;
{{Result table|cmd=/loot replace entity &amp;lt;entities&amp;gt; &amp;lt;slot&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;br&amp;gt;/loot replace entity ... &amp;lt;slotId: int&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;|One or more item stacks are got, and all the targeted entities do not have the specified slot.|success}}&lt;br /&gt;
{{Result table|cmd=-{}-/loot replace entity &amp;lt;entities&amp;gt; &amp;lt;slot&amp;gt; &amp;lt;count&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;br&amp;gt;/loot replace entity ... &amp;lt;slotId: int&amp;gt; &amp;lt;count: int&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;|One or more item stacks are got, and all the targeted entities do not have all the specified consecutive slots.}}&lt;br /&gt;
{{Result table|cmd=/loot give ...|&amp;lt;code&amp;gt;&amp;lt;players&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;player: target&amp;lt;/code&amp;gt; fails to resolve to one or more online players.|fail}}&lt;br /&gt;
{{Result table|cmd=/loot insert ...&amp;lt;br&amp;gt;/loot replace block ...|&amp;lt;code&amp;gt;&amp;lt;targetPos&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;position: x y z&amp;lt;/code&amp;gt; is unloaded or out of the world.}}&lt;br /&gt;
{{Result table|The block at &amp;lt;code&amp;gt;&amp;lt;targetPos&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;position: x y z&amp;lt;/code&amp;gt; is not a container.}}&lt;br /&gt;
{{Result table|cmd=/loot replace block ...|The block does not have the specified slot.}}&lt;br /&gt;
{{Result table|cmd=/loot replace block &amp;lt;targetPos&amp;gt; &amp;lt;slot&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;br&amp;gt;/loot replace block ... &amp;lt;slotId: int&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;|The number of item stacks got from the source plus the &amp;lt;code&amp;gt;&amp;lt;slot&amp;gt;&amp;lt;/code&amp;gt; id is bigger than the number of all slots in the specified container.|exception|success}}&lt;br /&gt;
{{Result table|cmd=/loot replace block &amp;lt;targetPos&amp;gt; &amp;lt;slot&amp;gt; &amp;lt;count&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;&amp;lt;br&amp;gt;/loot replace block ... &amp;lt;slotId: int&amp;gt; &amp;lt;count: int&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;|The &amp;lt;code&amp;gt;&amp;lt;count&amp;gt;&amp;lt;/code&amp;gt; plus the &amp;lt;code&amp;gt;&amp;lt;slot&amp;gt;&amp;lt;/code&amp;gt; id is bigger than the number of all slots in the specified container.||fail}}&lt;br /&gt;
{{Result table|cmd=|success}}&lt;br /&gt;
{{Result table}}&lt;br /&gt;
&lt;br /&gt;
==Output==&lt;br /&gt;
&lt;br /&gt;
{{Output table}}&lt;br /&gt;
{{Output table|edition=je|On fail|0|0|0}}&lt;br /&gt;
{{Output table|cmd=/loot spawn ...|On success|1|1|the number of item stacks got from loot}}&lt;br /&gt;
{{Output table|cmd=/loot give ...|On success|1|1|the total number of item stacks successfully allocated to each player}}&lt;br /&gt;
{{Output table|cmd=/loot insert ...|On success|1|1|the number of item stacks successfully distributed to the container}}&lt;br /&gt;
{{Output table|cmd=/loot replace block ...|On success|1|1|the number of item stacks successfully distributed to the container}}&lt;br /&gt;
{{Output table|On error|0|unchanged|unchanged}}&lt;br /&gt;
{{Output table|cmd=/loot replace entity ...|On success|1|1|the total number of item stacks successfully allocated to each entity}}&lt;br /&gt;
{{Output table|On error|0|unchanged|unchanged}}&lt;br /&gt;
{{Output table|edition=be|cmd=|On fail|0}}&lt;br /&gt;
{{Output table|cmd=loot give ...|On success|{{needs testing}}}}&lt;br /&gt;
{{Output table|cmd=loot spawn ...&amp;lt;br&amp;gt;loot insert ...|On success|1}}&lt;br /&gt;
{{Output table|cmd=-{}-/loot replace entity ... &amp;lt;slotId: int&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;|On success|When zero item stack is got, outputs 1.&amp;lt;br&amp;gt;Otherwise, outputs the number of targeted entities that have the specified slot}}&lt;br /&gt;
{{Output table|cmd=-{}-/loot replace entity ... &amp;lt;slotId: int&amp;gt; &amp;lt;count: int&amp;gt; &amp;lt;&#039;&#039;SOURCE&#039;&#039;&amp;gt;|On success|When zero item stack is got, outputs 1.&amp;lt;br&amp;gt;Otherwise, outputs the number of targeted entities that have all the specified consecutive slots}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
=== &#039;&#039;Java Edition&#039;&#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.14|dev=18w43a|Added {{cmd|drop|link=none}}.}}&lt;br /&gt;
|{{HistoryLine|||dev=18w45a|Renamed {{cmd|drop|link=none}} to {{cmd|loot|link=none}}.&lt;br /&gt;
|{{cmd|loot|link=none}} got reworked.}}&lt;br /&gt;
|{{HistoryLine||1.20.5|dev=24w12a|{{cmd|loot|link=none}} now also accepts an inline SNBT-formatted loot table definition for the {{argument|loot_table|loot_table}} argument.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;Bedrock Edition&#039;&#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|bedrock}}&lt;br /&gt;
|{{HistoryLine||1.18|dev=beta 1.18.0.21|Added {{cmd|loot spawn ... loot ...|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.18|dev=beta 1.18.0.22|Removed {{cmd|loot|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.18.10|dev=beta 1.18.10.21|Re-added {{cmd|loot|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.18.10|dev=beta 1.18.10.24|Added {{cmd|loot spawn ... kill ...|link=none}}}}&lt;br /&gt;
|{{HistoryLine||1.18.30|dev=beta 1.18.20.21|Added {{cmd|loot give ...|link=none}}}}&lt;br /&gt;
|{{HistoryLine|||dev=beta 1.18.30.20|Added {{cmd|loot insert ...|link=none}}}}&lt;br /&gt;
|{{HistoryLine||1.19.0|dev=beta 1.19.0.30|Added {{cmd|loot replace entity ...|link=none}}}}&lt;br /&gt;
|{{HistoryLine||1.19.40|dev=Preview 1.19.40.20|Added {{cmd|loot replace block ...|link=none}}}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also==&lt;br /&gt;
&lt;br /&gt;
*{{cmd|give}} — give specific items to players without specifying a loot table&lt;br /&gt;
*{{cmd|item}}{{only|je}} — modify specific item slots of entities or container&lt;br /&gt;
*{{cmd|replaceitem}}{{only|be}} — modify specific item slots of entities or container&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
&lt;br /&gt;
* {{Cite|url=https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/loot?view=minecraft-bedrock-stable|title=&amp;lt;code&amp;gt;/loot&amp;lt;/code&amp;gt; Command|website=Microsoft Learn|date=October 30, 2024}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/loot]]&lt;br /&gt;
[[Minecraft:es:Comandos/loot]]&lt;br /&gt;
[[Minecraft:ja:コマンド/loot]]&lt;br /&gt;
[[Minecraft:ko:명령어/loot]]&lt;br /&gt;
[[Minecraft:pt:Comandos/loot]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/loot]]&lt;br /&gt;
[[Minecraft:uk:Команди консолі/loot]]&lt;br /&gt;
[[Minecraft:zh:命令/loot]]&lt;/div&gt;</summary>
		<author><name>2600:1700:71E0:3100:BDD7:7839:18B5:6B90</name></author>
	</entry>
</feed>