Minecraft Wiki
Advertisement

Commands/infobox

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

Syntax
loot <target> <source>

Targets

spawn <x> <y> <z>
replace entity <entity selector> <slot> [<count>]
replace block <x> <y> <z> <slot> [<count>]
give <player selector>
insert <x> <y> <z>

Sources

fish <loot table id> <fishing location> [<item>|mainhand|offhand]
loot <loot table id>
kill <entity selector>
mine <x> <y> <z> [<item>|mainhand|offhand]


Arguments
loot table
Specifies which loot table to use.
x y z
Specifies the position of a block or location in the world where the command should be executed. May use tilde notation to specify a position relative to the command's execution.
selector
Specifies one or more entities to modify. Must be a player name or target selector.
slot
Specifies the inventory slot to be modified. Valid values depend on whether a block or an entity is being modified.
For blocks, must be container.slot_number where slot_number 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 only be changed with /data.
For entities, must be one of the following, where slot_number is replaced with a number specifying the slot:
Slot Slot Numbers Restrictions
armor.chest armor stands, mobs, and players only (though not all mobs will show or make use of the items)
armor.feet
armor.head
armor.legs
weapon.mainhand
weapon.offhand
container.slot_number 0–53 players and minecarts only
enderchest.slot_number 0–26 players only
hotbar.slot_number 0–8
inventory.slot_number 0–26
horse.saddle horses, donkeys, and mules only; item must be a saddle
horse.chest donkeys, and mules only; item must be a chest
horse.armor horses and llamas only; item must be a type of horse armor (if a horse) or a carpet (if a llama)
horse.slot_number 0–14 donkeys and mules with chests only
villager.slot_number 0–7 villagers only
The inventory of an item frame can only be changed with /data.
item
Specifies the item. Must be an item id, or a block id for which an item exists (for example, minecraft:golden_sword).
amount
Specifies the number of items. Must be between 1 and 64 (inclusive), even for items with a smaller stack size.
Result
Fails if the arguments are not specified correctly or the specified source entity doesn't have a loot table (for example, players do not have loot tables).
On success, returns if items were dropped onto the ground in the direction specified.
See also

/give — give specific items to players without specifying a loot table

History

Java Edition
1.14
{{Extension DPL}}<ul><li>[[Reality Vision|Reality Vision]]<br/>{{Joke feature}}
{{Item
| title = Reality Vision
| image = Reality Vision.png
| renewable = No
| stackable = Yes (64)
}}

The '''Reality vision''' was a joke [[helmet]].

== Usage ==
Reality vision was equipped via the [[helmet]] slot. When equipped, it showed a [[wikipedia:Mini-map|minimap]] in the bottom-center of the screen (which moved when the [[player]]'s camera moves). The minimap showed all [[chunk]]s that were currently rendered. The player's location was represented by a green [[beacon]] beam marker on the map.

It displayed a vision overlay (similar to the [[pumpkin]] overlay). The overlay would change to a new overlay if the player went into third person (unlike the pumpkin overlay), which made the screen appear like an old [[wikipedia:Television|television]] screen. The overlay was called <code>cantseeshit<!-- Do not change this; this is that word that is actually used-->captain.png</code> in the assets folder. It activated a [[Shaders|shader]] when equipped (<code>scan_pincushion</code>).

== Sounds ==

{{Sound table
|sound=Equipvr.ogg
|subtitle=''None''
|source=player
|description=When equipped
|id=item.reality_vision.use
|translationkey=''None''
|volume=1.0
|pitch=1.0
|distance=16
|foot=1}}

== Data values ==
=== ID ===
{{ID table
|edition=java
|shownumericids=y
|showforms=y
|generatetranslationkeys=y
|displayname=Reality Vision
|spritetype=item
|nameid=reality_vision
|id=500
|form=item
|translationkey=item.realityVision.name
|foot=1}}

== History ==
{{History|java}}
{{History||1.RV-Pre1|[[File:Reality_Vision_(item).png|32px]] [[File:Reality Vision.png|32px]] Added reality vision.}}
{{History|foot}}

== Issues ==
Reality Vision is an unsupported item due to being an [[Wikipedia:April Fools' Day|April Fools']] joke, and therefore such issues relating to them will not be fixed.

== Trivia ==
* [[Sign]]s display the text "OBEY" while equipped, a reference to the movie [[wikipedia:They Live|''They Live'']].

== Gallery ==

<gallery>
Sign2.png|The [[sign]] texture found in the game files.
OBEY.png|OBEY seen in a sign.
OBEY sign in 1.RV-Pre1..png|OBEY seen in a sign, but seen from a better perspective. 
TechGear.png|A [[player]] wearing reality vision, featured in this [[wikipedia:April Fools' Day|April Fools']] joke version.
</gallery>

{{Items}}
{{Jokes}}

[[Category:Non-renewable resources]]
[[Category:Joke items]]

[[pt:Visão da realidade]]
[[es:Reality Vision]]</li><li>[[Tag (item)|Tag (item)]]<br/>{{About|the April Fools item|the standard item used to rename mobs|Name Tag}}
{{wip}}
{{joke feature}}
{{exclusive|java}}
{{Item
| title = Tag
| image = Tag.png
| renewable = Yes
| stackable = Yes (64)
}}
Tags and Bits are items exclusive to the [[Java Edition 23w13a or b|23w13a_or_b]] [[Easter eggs#April Fools|April Fools' joke]] snapshot from 2023. They are used to craft in-game representations of [[NBT format|NBT tags]].

==Obtaining==
A [[stonecutter]] can be used to cut a [[Name Tag|name tag]] into either 16 "Name" or 16 "Tag" items. These can be cut into 16 Bit items each.

{{Stonecutting
|head=1
|showdescription=1
|Name Tag
|Name, 16; Tag, 16
|description=The resulting "Name" items must be named in an [[anvil]].
}}
{{Stonecutting
|showdescription=
|Name; Tag
|Bit, 16
|foot=1
}}

To be able to proceed from here the <code>nbt_crafting</code> vote must be approved. Bits can be used in a crafting table to craft Left Curly, Right Curly, Left Square, and Right Square. In appears like these are the only tag items that can be crafted from Bits.

A [[Crafting Table|crafting table]] can be used to convert a "Tag" item into a "Byte Tag." The amount of [[stick]]s added to the crafting recipe specifies the value of the Byte, as a [[wikipedia:Signed number representations#Two's complement|signed 8-bit value]]. For example, a "Tag" and a full stack of sticks make a Byte with the value <code>64b</code>, while 255 sticks result in <code>-1b</code>. Only one of the sticks is consumed. Two Bytes can be crafted into a "Short Tag" (equivalent to 16 bit), two Shorts into an "Int Tag" (equivalent to 32 bit), and two Ints into a "Long Tag" (equivalent to 64 bit). Many other combinations that form either 16, 32, or 64 bit are possible. For example, two Shorts and an Int make a Long. When combining values, their digits are stuck together in the given order, e.g. <code>1b</code> and <code>0b</code> make <code>256s</code> (equivalent to 0100<sub>16</sub> in [[wikipedia:Hexadecimal|hexadecimal]]). Undoing any of these crafting actions in e.g. a stonecutter is not possible.

"Float" and "Double Tags" can be crafted by adding one or two [[boat]]s to any numeric tag. A "String Tag" is crafted with a "Tag" and a piece of [[string]].

{{Crafting
|head=1
|showdescription=1
|A1= Bit;    ; Bit; Bit |B1=    ; Bit; Bit; Bit
|A2=    ; Bit; Bit;     |B2= Bit;    ;    ; Bit
|A3= Bit;    ; Bit; Bit |B3=    ; Bit; Bit; Bit
|Output= Right Curly; Left Curly; Left Square; Right Square
|ignoreusage=1
}}
{{Crafting
|Tag
|String
|Output= String Tag
|description=String tags must be named in an [[anvil]] to set their value.
|ignoreusage=1
}}
{{Crafting
|Tag; Tag;   Tag
|;    Stick; Stick, 64
|;    ;      Stick, 63
|Output= Byte Tag; Byte Tag; Byte Tag
|description=Only 1 stick is consumed. 128 and more sticks make [[wikipedia:Signed number representations#Two's complement|two's complements]]:
128 sticks = <code>-128b</code><br>
129 sticks = <code>-127b</code><br>
⋮<br>
254 sticks = <code>-2b</code><br>
255 sticks = <code>-1b</code>
|ignoreusage=1
}}
{{Crafting
|Byte Tag; Byte Tag; Byte Tag
|Byte Tag; Byte Tag; Byte Tag
|        ; Byte Tag; Byte Tag
|        ; Byte Tag; Byte Tag
|        ;         ; Byte Tag
|        ;         ; Byte Tag
|        ;         ; Byte Tag
|        ;         ; Byte Tag
|Output= Short Tag; Int Tag; Long Tag
|description=Shorts and Ints can be combined the same way, even mixed.

Digits are appended, e.g. two <code>1b</code> tags make <code>257b</code> (0101<sub>16</sub> in [[wikipedia:Hexadecimal|hexadecimal]]).
|ignoreusage=1
}}
{{Crafting
|Byte Tag; Short Tag; Int Tag; Long Tag
|Any Boat; Any Boat; Any Boat; Any Boat
|Output= Float Tag; Float Tag; Float Tag; Float Tag
|ignoreusage=1
}}
{{Crafting
|Byte Tag; Short Tag; Int Tag; Long Tag
|Any Boat; Any Boat; Any Boat; Any Boat
|Any Boat; Any Boat; Any Boat; Any Boat
|Output= Double Tag; Double Tag; Double Tag; Double Tag
|ignoreusage=1
}}
{{Crafting
|Left Curly;  Left Curly
|Name;        Name
|Byte Tag;    Byte Tag
|Right Curly; Name |; Byte Tag | |; Name |; Byte Tag |; Right Curly
|Output= Compound Tag; Compound Tag
|description=Instead of Bytes any other tag can be used, including other compound tags.
|ignoreusage=1
}}
{{Crafting
|Left Square;  Left Square
|Byte Tag;     Byte Tag
|Right Square; Byte Tag |; Byte Tag |; Byte Tag |; Byte Tag |; Byte Tag |; Byte Tag |; Right Square
|Output= List Tag; List Tag
|description=Instead of Bytes any other tag can be used, including other list tags.
|ignoreusage=1
}}
{{Crafting
|Compound Tag; List Tag
|Compound Tag; List Tag
|Output= Compound Tag; List Tag
|description=Up to 9 can be combined.

When compound tags contain identical names, only the latest of the corresponding values is used.
|ignoreusage=1
|foot=1
}}

"Name" and "String Tags" must be named in an [[anvil]] before they can be used. Unnamed Names and Strings always produce a "Sssyntax Error". None of the other tag items can be named.

All these items can be combined in a crafting table to form a short sequence of JSON code, as long as the resulting syntax is valid. For example: 
*A pair of Curlies that enclose a named "Name" item and some value, e.g. a Byte, create a "Compound Tag" with the content <code>{Example:0b}</code>.
**Because of the limited size of the crafting table only 3 name-value pairs can be put between Curlies at a time. Compound Tags of any length can be created by concatenating two or more Compound Tags.
**An empty pair of Curlies produces an empty Compound Tag with the content <code>{}</code>.
*A pair of Square brackets that enclose any number of values, e.g. 7 Bytes, create a "List Tag" with the content <code>[0b,0b,0b,0b,0b,0b,0b]</code>.
**Because of the limited size of the crafting table only 7 values can be put between Square brackets at a time. List Tags of any length can be created by concatenating two or more List Tags.
**An empty pair of Square brackets produces an empty List with the content <code>[]</code>.
**"Name" items cannot be used in a List.

The resulting Compound and List Tags can be used as values in other Compound and List Tags, as deeply nested as you want.

==Usage==
Tags appear to have no further functionality. They cannot be eaten or placed in the world, except in an item frame, as each other item can. However, Compound Tags with values like <code>{Enchantments:[{id:"minecraft:sharpness",lvl:127b}]}</code> will show the [[Enchanting|enchantment]] glint and actually act accordingly when used.<ref>https://www.reddit.com/r/Minecraft/comments/129xdyl/i_figure_out_how_the_nbtcrafting_in_the_vote/</ref> This appears to work with many weapon and tool [[Enchanting#Summary of enchantments by item|enchantments]].

In theory, an extremely lucky <code>replace_recipe_output</code> vote can change the crafting recipe for compound tags to output something else. When cheats are enabled you can test this with a command like <code>/vote rule minecraft:replace_recipe_output approve {key:"minecraft:compound_tag",value:"minecraft:netherite_sword"}</code>. However, as long as this vote is approved no other compound tag can be crafted. Use <code>/vote rule minecraft:replace_recipe_output repeal *</code> to undo all recipe replacements.

In combination with the <code>midas_touch</code> vote tag items can be converted into [[Gold Ingot|gold ingots]]. These retain their NBT data. When the world is loaded in another version of the game tag items disappear, but gold ingots persist.

==Trivia==
*This implies that a [[Name Tag|name tag]] is 128 bit.
*Compound and list tags are special in so far that the value they show in their [[tooltip]] is not merely a property of the item, but their ''actual'' [[NBT format|NBT data]]. This is also the reason why naming them is disabled as that would mess up the NBT data.
*The snapshot also contains an [[History of textures/Unused textures|unused texture]] for an {{ItemLink|End Tag}}.

==History==
{{History|java}}
{{History||23w13a_or_b|[[File:Tag.png|32px]] Added tags.}}
{{History|foot}}

==Gallery==
<gallery>
Tag.png|Tag
Bit.png|Bit
Byte Tag.png|Byte Tag
Double Tag.png|Double Tag
End Tag.png|End Tag
Float Tag.png|Float Tag
Int Tag.png|Int Tag
Left Curly.png|Left Curly
Left Square.png|Left Sqaure
List Tag.png|List Tag
Long Tag.png|Long Tag
Name (23w13a or b).png|Name
Right Curly.png|Right Curly
Right Square.png|Right Square
Short Tag.png|Short Tag
Sssyntax Error.png|Sssyntax Error
String Tag.png|String Tag
</gallery>

== References ==
{{reflist}}

{{items}}
{{jokes}}

[[pt:Tag (item)]]
[[Category:Joke items]]</li></ul>
18w43aAdded /drop.
18w45aRenamed /drop to /loot.
/loot got reworked.
Advertisement