Minecraft:Item (entity): Difference between revisions
More actions
imported>CrockCraftMC Undo revision 3513428 by ~2026-AllayWolfMule8142 (talk) April fools day jokes shouldn't be included in history. |
Fix template calls: add MC/ prefix |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Distinguish|Drops}} | {{MC/Distinguish|Drops}} | ||
{{Infobox entity | {{Infobox entity | ||
| title = Item | | title = Item | ||
| Line 6: | Line 6: | ||
| size = Height: 0.25 blocks<br>Width: 0.25 blocks | | size = Height: 0.25 blocks<br>Width: 0.25 blocks | ||
}} | }} | ||
'''Items''' are "dropped" [[Minecraft:block]]s or [[Minecraft:item]]s (non-block resources) that appear in the world, rather than being in the [[Minecraft:inventory]] of a | '''Items''' are "dropped" [[Minecraft:block]]s or [[Minecraft:item]]s (non-block resources) that appear in the world, rather than being in the [[Minecraft:inventory]] of a player or [[Minecraft:block entity]]; they are a type of entity. | ||
== Appearance == | == Appearance == | ||
| Line 19: | Line 19: | ||
== Behavior == | == Behavior == | ||
Item entities come from many sources. Some common ones are: | Item entities come from many sources. Some common ones are: | ||
* The death of a [[Minecraft:mob]] or | * The death of a [[Minecraft:mob]] or player. | ||
* A [[Minecraft:block]] that is mined by a player, destroyed by an | * A [[Minecraft:block]] that is mined by a player, destroyed by an explosion, or washed away by [[Minecraft:water]]. | ||
* An inventory item tossed by pressing the drop item key (default {{ | * An inventory item tossed by pressing the drop item key (default {{MC/Key|Q}} on PC, {{MC/Xbtn|dpad-down}} on Xbox, {{MC/Nsbtn|down}}/{{MC/Nsbtn|dpad-down}} on Nintendo Switch, {{MC/Psbtn|dpad-down}} on PlayStation) or dragging a stack outside of an inventory window. | ||
** In the mobile versions of {{BE}}, items in the hotbar can be dropped by pressing on the item's slot. The entire stack is dropped. | ** In the mobile versions of {{MC/BE}}, items in the hotbar can be dropped by pressing on the item's slot. The entire stack is dropped. | ||
* A container (other than an {{ | * A container (other than an {{MC/Blocklink|ender chest}} or a {{MC/Blocklink|shulker box}}) that is destroyed while holding items inside. | ||
The player may be thought of as having an "item pickup" box that surrounds their hitbox. This pickup box extends 1 additional block to the horizontal sides, and 0.5 additional blocks up and down. Any item whose hitbox intersects with the pickup box can be picked up. The pickup box is inclusive on the horizontal sides (for distance less than or equal to 1), and exclusive on the vertical sides (distance less than 0.5). When the player's hitbox size changes, such as when crouching or sleeping, the pickup box size changes with it. | The player may be thought of as having an "item pickup" box that surrounds their hitbox. This pickup box extends 1 additional block to the horizontal sides, and 0.5 additional blocks up and down. Any item whose hitbox intersects with the pickup box can be picked up. The pickup box is inclusive on the horizontal sides (for distance less than or equal to 1), and exclusive on the vertical sides (distance less than 0.5). When the player's hitbox size changes, such as when crouching or sleeping, the pickup box size changes with it. | ||
Once an item entity's hitbox overlaps with the player's pickup box, it can transfer its items. As many items as can fit in the player inventory, excluding the armor slots and the | Once an item entity's hitbox overlaps with the player's pickup box, it can transfer its items. As many items as can fit in the player inventory, excluding the armor slots and the off-hand slot, are transferred. If any item is transferred, [[Minecraft:Item (entity)#Sounds|a "plopping" sound]] is played. If all items are transferred, the items appear to move into the center of the player. The item entity never physically moves, however, which means it can appear to go through lava and blocks in its path. This can happen through blocks that are thinner than a full block, but also through the shared edge of two full blocks. Unlike experience orbs, multiple item entities can be picked up simultaneously. Dropped items have a delay of 10 [[Minecraft:tick]]s (half a second) between appearing and being able to be picked up, or 40 ticks (2 seconds) if thrown by a player, dolphin, or fox. | ||
Items do not collide with other entities (except [[Minecraft:boat]]s and | Items do not collide with other entities (except [[Minecraft:boat]]s and shulkers) and are only moved or stopped by blocks. | ||
Like other entities, items can be pushed by flowing water and | Like other entities, items can be pushed by flowing water and bubble columns, pushed by a [[Minecraft:piston]], launched by a moving slime block, stuck to a honey block, or caught in a [[Minecraft:cobweb]]. Items move at faster speeds if [[Minecraft:ice]] is placed under the flowing water. When in still water, items float slowly up to the surface. | ||
{{ | {{MC/In|java}}, items can be reeled by fishing rods, costing 3 durability. | ||
If an item is within a [[Minecraft:solid block]], it then flies out one of the unobstructed sides, or out of the top of the block if surrounded by solid blocks on all sides. It does this even if the space below is unoccupied; therefore, it is possible to recover an item dropped in a small pit by blocking up the pit. | If an item is within a [[Minecraft:solid block]], it then flies out one of the unobstructed sides, or out of the top of the block if surrounded by solid blocks on all sides. It does this even if the space below is unoccupied; therefore, it is possible to recover an item dropped in a small pit by blocking up the pit. | ||
Items visually disappear when the player is about 16 blocks away from them, and reappear when they get closer. {{ | Items visually disappear when the player is about 16 blocks away from them, and reappear when they get closer. {{MC/In|java}}, this distance can be adjusted by the "Entity Distance" slider in video settings. | ||
Unlike most entities, items cannot be spectated in | Unlike most entities, items cannot be spectated in Spectator mode without use of the {{MC/Cmd|spectate}} command. | ||
When an item entity drops within the pickup box of two separate players simultaneously on a multiplayer server, the player who joined first automatically gets the item. If the item is tossed by one of said players, the other player is prioritized.{{ | When an item entity drops within the pickup box of two separate players simultaneously on a multiplayer server, the player who joined first automatically gets the item. If the item is tossed by one of said players, the other player is prioritized.{{MC/Verify|Behaves in this way on Java. Needs verification on Bedrock.}} | ||
=== Mob pickup === | === Mob pickup === | ||
{{ | {{MC/Main|Geared mobs#Picking up gear}} | ||
Some mobs, such as [[Minecraft:zombie]]s and | Some mobs, such as [[Minecraft:zombie]]s and skeletons, have a chance to spawn being able to pick up weapons and armor depending on difficulty. | ||
=== Merging === | === Merging === | ||
Two stackable items of the same type can merge together into a single item entity if the resulting stack size does not exceed that item's maximum stack size and if one is within a <code>0.5×0.25×0.5</code> square bounding box around the other item. The item with the greater stack gets its item count increased while the smaller or equal that is processed first is despawned. | Two stackable items of the same type can merge together into a single item entity if the resulting stack size does not exceed that item's maximum stack size and if one is within a <code>0.5×0.25×0.5</code> square bounding box around the other item. The item with the greater stack gets its item count increased while the smaller or equal that is processed first is despawned. | ||
Items usually attempt to merge every {{ | Items usually attempt to merge every {{MC/Convert|40|gt|s}} but items moving across block boundaries can be processed every {{MC/Convert|2|gt|s}}. | ||
=== Damage === | === Damage === | ||
Items cannot be attacked by players or mobs; attempting to do so simply hits through them. However, they take damage and disappear from environmental or block-based damage such as | Items cannot be attacked by players or mobs; attempting to do so simply hits through them. However, they take damage and disappear from environmental or block-based damage such as explosions, [[Minecraft:fire]], [[Minecraft:lava]], and contact with cacti. Items have essentially no health, so they are destroyed by the slightest damage, though if set on fire they may remain for a few seconds before disappearing. Nether stars are immune to explosions, and netherite-based items and tools are immune to fire and float on top of lava. Also, some blocks that regularly damage mobs, such as magma blocks, [[Minecraft:campfire]]s, sweet berry bushes, wither roses, and powder snow, do not damage items. | ||
=== Despawning === | === Despawning === | ||
Items despawn after 6000 game [[Minecraft:tick]]s (5 minutes) of being in a loaded, entity-ticking | Items despawn after 6000 game [[Minecraft:tick]]s (5 minutes) of being in a loaded, entity-ticking chunk; this is affected by the player's [[Minecraft:simulation distance]]. If two item stacks merge, the timer is set to the item that has more time remaining. The 5-minute timer is paused when the chunk is unloaded or no longer processing entities. {{MC/In|bedrock}}, nether stars do not despawn. {{MC/In|java}}, nether stars dropped by a dying [[Minecraft:wither]] despawn after 10 minutes, but they despawn after 5 minutes if dropped by any other means. | ||
Items that fall into the | Items that fall into the void immediately despawn when they fall below <code>world minumum build height - 64</code> (Y=-128 in the [[Minecraft:Overworld]], Y=-64 in [[Minecraft:the Nether]] and [[Minecraft:the End]]). | ||
== Sounds == | == Sounds == | ||
{{Edition|Java}}:<br> | {{MC/Edition|Java}}:<br> | ||
Item Entities use the Ambient/Environment sound category for | Item Entities use the Ambient/Environment sound category for entity-dependent sound events. | ||
{{SoundTable | {{SoundTable | ||
| type = java | | type = java | ||
| Line 74: | Line 74: | ||
|translationkey=subtitles.entity.item.pickup | |translationkey=subtitles.entity.item.pickup | ||
|volume=0.2 | |volume=0.2 | ||
|pitch=1.6-3.4 <ref group=sound>0.6-3.4 for using {{ | |pitch=1.6-3.4 <ref group=sound>0.6-3.4 for using {{MC/Cmd|give}} and items from advancement rewards</ref> | ||
|distance=16}} | |distance=16}} | ||
| {{SoundLine | | {{SoundLine | ||
| Line 90: | Line 90: | ||
}} | }} | ||
{{Edition|Bedrock}}: | {{MC/Edition|Bedrock}}: | ||
{{SoundTable | {{SoundTable | ||
| type = bedrock | | type = bedrock | ||
| Line 118: | Line 118: | ||
== Data values == | == Data values == | ||
=== ID === | === ID === | ||
{{ | {{MC/Editions|java}}: | ||
{{ID table | {{ID table | ||
|edition=java | |edition=java | ||
| Line 129: | Line 129: | ||
|foot=1}} | |foot=1}} | ||
{{ | {{MC/Editions|bedrock}}: | ||
{{ID table | {{ID table | ||
|edition=bedrock | |edition=bedrock | ||
| Line 143: | Line 143: | ||
=== Entity data === | === Entity data === | ||
{{ | {{MC/See also|Chunk format}} | ||
Dropped items have entity data associated with them that contain various properties of the entity. | Dropped items have entity data associated with them that contain various properties of the entity. | ||
{{ | {{MC/El|java}}: | ||
{{ | {{MC/Main|Entity format}} | ||
<section begin="entity data"/><div class="treeview" style="margin-top: 0;"> | <section begin="entity data"/><div class="treeview" style="margin-top: 0;"> | ||
* {{ | * {{MC/Nbt|compound}} Entity data | ||
** {{ | ** {{MC/Nbt inherit/entity}} | ||
** {{ | ** {{MC/Nbt|short|Age}}: The number of ticks the item has been "untouched". After 6000 ticks (5 minutes) the item is destroyed. If set to -32768, the Age does not increase, preventing the item from despawning automatically. | ||
** {{ | ** {{MC/Nbt|short|Health}}: The health of the item, which starts at 5. Items take damage from fire, lava, cacti and explosions. The item is destroyed when its health reaches 0. | ||
** {{ | ** {{MC/Nbt|compound|Item}}: The inventory item, without the Slot tag. | ||
*** {{ | *** {{MC/Nbt inherit/itemnoslot|indent=***}} | ||
** {{ | ** {{MC/Nbt|int-array|Owner}}: If present, only the player with this [[Minecraft:UUID]] can pick up the item. Used by the [[Minecraft:Commands/give|give command]] (and can be set in a summon command) to prevent the wrong player from picking up the spawned item entity. Is not preserved when removed. | ||
** {{ | ** {{MC/Nbt|short|PickupDelay}}: The number of ticks the item cannot be picked up. Decreases by 1 per tick. If set to 32767, the PickupDelay does not decrease, preventing the item from being picked up. | ||
** {{ | ** {{MC/Nbt|int-array|Thrower}}: The [[Minecraft:UUID]] of the entity who dropped the item. Is not preserved when removed. | ||
</div><section end="entity data"/> | </div><section end="entity data"/> | ||
{{ | {{MC/El|bedrock}}: | ||
: See [[Minecraft:Bedrock Edition level format/Entity format]]. | : See [[Minecraft:Bedrock Edition level format/Entity format]]. | ||
== History == | == History == | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{ | {{MC/Info needed section|25w07a changes}} | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java classic}} | |{{MC/HistoryLine|java classic}} | ||
|{{HistoryLine||August 4, 2009|link=none|In the first public mention of item entities, {{ | |{{HistoryLine||August 4, 2009|link=none|In the first public mention of item entities, {{MC/Ytl|srHTyTU2ejw|this early video of Minecraft (Classic 0.24) by Notch}}, they were referred to as "resources".<ref name="resources">{{MC/Ytl|srHTyTU2ejw}} Early video of Minecraft (Classic 0.24) by Notch referring to item entities as "resources"</ref>}} | ||
|{{HistoryLine||August 4, 2009|link=https://web.archive.org/web/20090808093608/https://notch.tumblr.com/post/155882307/a-video-showing-what-i-did-today-are-vids-like|Items were showcased by | |{{MC/HistoryLine||August 4, 2009|link=https://web.archive.org/web/20090808093608/https://notch.tumblr.com/post/155882307/a-video-showing-what-i-did-today-are-vids-like|Items were showcased by Notch in a blog post.}} | ||
|{{HistoryLine||0.24_SURVIVAL_TEST|Added items to the game. | |{{MC/HistoryLine||0.24_SURVIVAL_TEST|Added items to the game. | ||
|Items currently take the form of destroyed [[Minecraft:block]]s. | |Items currently take the form of destroyed [[Minecraft:block]]s. | ||
|Items currently pulse white (similar to the selection cursor).<ref name="resources"/> | |Items currently pulse white (similar to the selection cursor).<ref name="resources"/> | ||
|Instead of appearing as shrunken down blocks, items use pixels the same size as block pixels.}} | |Instead of appearing as shrunken down blocks, items use pixels the same size as block pixels.}} | ||
|{{HistoryLine|java indev}} | |{{MC/HistoryLine|java indev}} | ||
|{{HistoryLine||0.31|dev=20091231-2147|Dropped items don't spin and don't glow white anymore. | |{{HistoryLine||0.31|dev=20091231-2147|Dropped items don't spin and don't glow white anymore. | ||
|Dropped items now appear as shrunken down blocks. | |Dropped items now appear as shrunken down blocks. | ||
|Items no longer prevent the placement of blocks but instead are moved to the nearest chunk. {{ | |Items no longer prevent the placement of blocks but instead are moved to the nearest chunk. {{MC/Info needed}} | ||
|Non-block items added (as sprites); they now rotate to face the | |Non-block items added (as sprites); they now rotate to face the player.}} | ||
|{{HistoryLine||?|Dropped items now spin again.}} | |{{MC/HistoryLine||?|Dropped items now spin again.}} | ||
|{{HistoryLine|java beta}} | |{{MC/HistoryLine|java beta}} | ||
|{{HistoryLine||1.8|dev=Pre-release|[[File:Oversized items.png|100px|right]][[File:In awe at the size of these fluids.png|100px|right]] A bug causing many item forms of blocks to be displayed at the {{frac|1|2}} scale rather than {{frac|1|4}} was fixed. The following items were affected by this at least at one point: | |{{HistoryLine||1.8|dev=Pre-release|[[File:Oversized items.png|100px|right]][[File:In awe at the size of these fluids.png|100px|right]] A bug causing many item forms of blocks to be displayed at the {{frac|1|2}} scale rather than {{frac|1|4}} was fixed. The following items were affected by this at least at one point: | ||
* [[Minecraft:Cactus]] | * [[Minecraft:Cactus]] | ||
* | * Oak Trapdoor | ||
* | * Oak Fence | ||
* | * Oak Pressure Plate | ||
* [[Minecraft:Stone Pressure Plate]] | * [[Minecraft:Stone Pressure Plate]] | ||
* [[Minecraft:Stone Button]] | * [[Minecraft:Stone Button]] | ||
* | * Oak Stairs | ||
* [[Minecraft:Cobblestone Stairs]] | * [[Minecraft:Cobblestone Stairs]] | ||
* [[Minecraft:Snow]] (unobtainable at the time) | * [[Minecraft:Snow]] (unobtainable at the time) | ||
* [[Minecraft:Farmland]] (unobtainable) | * [[Minecraft:Farmland]] (unobtainable) | ||
* [[Minecraft:Cake]] ( | * [[Minecraft:Cake]] (unobtainable version) | ||
* [[Minecraft:Nether Portal (block)|Nether Portal]] ( | * [[Minecraft:Nether Portal (block)|Nether Portal]] (unobtainable) | ||
* [[Minecraft:Water]] ( | * [[Minecraft:Water]] (unobtainable, before becoming 2D in Java Edition Infdev 20100615) | ||
* [[Minecraft:Lava]] ( | * [[Minecraft:Lava]] (unobtainable, before becoming 2D in Java Edition Infdev 20100615) | ||
}} | }} | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.3.1|dev=12w15a|Items that are moved into the same location now combine into stacks instead of remaining independent entities.}} | |{{MC/HistoryLine||1.3.1|dev=12w15a|Items that are moved into the same location now combine into stacks instead of remaining independent entities.}} | ||
|{{HistoryLine||1.4.2|dev=12w34a|Items, like other entities, can now travel through | |{{MC/HistoryLine||1.4.2|dev=12w34a|Items, like other entities, can now travel through portals.}} | ||
|{{HistoryLine|||dev=12w34b|Some [[Minecraft:zombie]]s, | |{{MC/HistoryLine|||dev=12w34b|Some [[Minecraft:zombie]]s, skeletons and zombie pigmen can now pick up items.}} | ||
|{{HistoryLine||1.4.4|dev=1.4.3|Items are now pushed out of transparent solid blocks as well as opaque ones.<ref>{{bug|MC-15}}</ref> Items can push into solid blocks while trying to escape a solid block instead of stopping (this has been used to create vertical transport of items). New feature: items are pushed out of the inside corner of stair blocks, causing "bouncing" effects.}} | |{{HistoryLine||1.4.4|dev=1.4.3|Items are now pushed out of transparent solid blocks as well as opaque ones.<ref>{{bug|MC-15}}</ref> Items can push into solid blocks while trying to escape a solid block instead of stopping (this has been used to create vertical transport of items). New feature: items are pushed out of the inside corner of stair blocks, causing "bouncing" effects.}} | ||
|{{HistoryLine||December 11, 2012|link=none| | |{{HistoryLine||December 11, 2012|link=none|Dinnerbone tweeted a picture of [[Minecraft:diamond]]s being rendered in 3D as dropped items.<ref>{{tweet|dinner|278457679805030401|Diamonds are a miners best friend. It's only fair they get treated to some luxury rendering. http://dinnerbone.com/media/uploads/2012-12/screenshots/Minecraft_2012-12-11_12-13-11.png … #AndMaybeEverythingElseToo|December 11, 2012}}</ref> He also revealed that other items would rendered in this way, but only in fancy graphics.<ref>{{tweet|dinner|278463997982949378|@PaymenowTV It's Fancy Rendering option, but really won't make much of a difference on even a slow pc.|December 11, 2012}}</ref>}} | ||
|{{HistoryLine||December 12, 2012|link=none|TeamMojang ( | |{{HistoryLine||December 12, 2012|link=none|TeamMojang (YouTube) posted a video showing off the new 3D items.<ref>{{MC/Ytl|tMOZLAxPWFE}}</ref>}} | ||
|{{HistoryLine||1.4.6|dev=12w49a| | |{{MC/HistoryLine||1.4.6|dev=12w49a|Nether stars are the first items to not be deleted by explosions.}} | ||
|{{HistoryLine|||dev=12w50a|When dropped, items now render in the | |{{MC/HistoryLine|||dev=12w50a|When dropped, items now render in the fancy graphics setting as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]). | ||
|Dropped items now merge with nearby items and be stacked. | |Dropped items now merge with nearby items and be stacked. | ||
|Enchanted items now show the enchanted glow when dropped.}} | |Enchanted items now show the enchanted glow when dropped.}} | ||
|{{HistoryLine||1.5|dev=13w01a|Added [[Minecraft:hopper]]s, which can collect items.}} | |{{MC/HistoryLine||1.5|dev=13w01a|Added [[Minecraft:hopper]]s, which can collect items.}} | ||
|{{HistoryLine|||dev=13w03a|Added | |{{MC/HistoryLine|||dev=13w03a|Added hopper minecarts, which can collect items.}} | ||
|{{HistoryLine||1.8|dev=14w04a|Dropped items don't spin, and they are visible only from the south on fast graphics.}} | |{{MC/HistoryLine||1.8|dev=14w04a|Dropped items don't spin, and they are visible only from the south on fast graphics.}} | ||
|{{HistoryLine|||dev=14w04b|Dropped items are now completely invisible on fast graphics.}} | |{{MC/HistoryLine|||dev=14w04b|Dropped items are now completely invisible on fast graphics.}} | ||
|{{HistoryLine|||dev=14w05a|Dropped items on fast graphics now face the player on all three axes, and they spin again on fancy graphics.}} | |{{MC/HistoryLine|||dev=14w05a|Dropped items on fast graphics now face the player on all three axes, and they spin again on fancy graphics.}} | ||
|{{HistoryLine|||dev=14w25a|Dropped items now render in 3D on fast graphics, instead of just on fancy graphics, likely due to item models being fully implemented and replacing the need for 2D items. However, they do not spin.}} | |{{MC/HistoryLine|||dev=14w25a|Dropped items now render in 3D on fast graphics, instead of just on fancy graphics, likely due to item models being fully implemented and replacing the need for 2D items. However, they do not spin.}} | ||
|{{HistoryLine||1.8.1|dev=pre4|Dropped items now spin on fast graphics.}} | |{{MC/HistoryLine||1.8.1|dev=pre4|Dropped items now spin on fast graphics.}} | ||
|{{HistoryLine||1.10|dev=16w21a|Items can now be reared by | |{{MC/HistoryLine||1.10|dev=16w21a|Items can now be reared by fishing rods.}} | ||
|{{HistoryLine||1.11|dev=16w32a|The entity ID of items has been changed from <code>Item</code> to <code>item</code>.}} | |{{MC/HistoryLine||1.11|dev=16w32a|The entity ID of items has been changed from <code>Item</code> to <code>item</code>.}} | ||
|{{HistoryLine||1.13|dev=18w07a|Items in water now float up.}} | |{{MC/HistoryLine||1.13|dev=18w07a|Items in water now float up.}} | ||
|{{HistoryLine||1.16|dev=20w06a|Netherite items are the first items to not burn in [[Minecraft:lava]], and float in lava.}} | |{{MC/HistoryLine||1.16|dev=20w06a|Netherite items are the first items to not burn in [[Minecraft:lava]], and float in lava.}} | ||
|{{HistoryLine||1.20|dev=Pre-release 5|Items are no longer destroyed by falling [[Minecraft:anvil]]s.<ref>{{bug|MC-120158 | |{{HistoryLine||1.20|dev=Pre-release 5|Items are no longer destroyed by falling [[Minecraft:anvil]]s.<ref>{{bug|MC-120158 | ||
||Anvils and other falling_blocks with HurtEntities set to true kill items and xp orbs|Fixed}}</ref>}} | ||Anvils and other falling_blocks with HurtEntities set to true kill items and xp orbs|Fixed}}</ref>}} | ||
|{{HistoryLine||1.21.2|dev=24w33a|Items are no longer destroyed by TNTs submerged in water.}} | |{{MC/HistoryLine||1.21.2|dev=24w33a|Items are no longer destroyed by TNTs submerged in water.}} | ||
|{{HistoryLine||1.21.6|dev=25w20a|Items are once again destroyed by TNTs submerged in water.}} | |{{MC/HistoryLine||1.21.6|dev=25w20a|Items are once again destroyed by TNTs submerged in water.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|pocket alpha}} | |{{MC/HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.2.0|Added items to the game.}} | |{{MC/HistoryLine||v0.2.0|Added items to the game.}} | ||
|{{HistoryLine||v0.3.0|Players can now drop item entities from their | |{{MC/HistoryLine||v0.3.0|Players can now drop item entities from their hotbar in Survival mode by tapping and holding the respective hotbar slot for two seconds.}} | ||
|{{HistoryLine||?|Items now have improved graphics.{{ | |{{HistoryLine||?|Items now have improved graphics.{{MC/More info|clarify}}}} | ||
|{{HistoryLine||?|Players can now drop item entities in Creative mode.}} | |{{MC/HistoryLine||?|Players can now drop item entities in Creative mode.}} | ||
|{{HistoryLine|Bedrock}} | |{{MC/HistoryLine|Bedrock}} | ||
|{{HistoryLine||1.4.0|dev=beta 1.2.14.2|Items in [[Minecraft:water]] now float up.}} | |{{MC/HistoryLine||1.4.0|dev=beta 1.2.14.2|Items in [[Minecraft:water]] now float up.}} | ||
|{{HistoryLine||1.16.0|dev=beta 1.15.0.51|When dropped, items now render as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]).}} | |{{MC/HistoryLine||1.16.0|dev=beta 1.15.0.51|When dropped, items now render as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]).}} | ||
|{{HistoryLine|||dev=beta 1.16.0.51|Added | |{{MC/HistoryLine|||dev=beta 1.16.0.51|Added netherite items, which float and do not burn in [[Minecraft:lava]].}} | ||
}} | }} | ||
=== Legacy Console Edition === | === Legacy Console Edition === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|console}} | |{{MC/HistoryLine|console}} | ||
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added items to the game.}} | |{{MC/HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added items to the game.}} | ||
|{{HistoryLine||xbox=TU12|When dropped, items now render as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]).}} | |{{MC/HistoryLine||xbox=TU12|When dropped, items now render as 3D spinning animations (non-block items no longer display as [[Wikipedia:Sprite (computer graphics)|sprites]]).}} | ||
|{{HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|Items, like other entities, can now travel through | |{{MC/HistoryLine||xbox=TU19|xbone=CU7|ps3=1.12|psvita=1.12|ps4=1.12|wiiu=Patch 1|switch=1.0.1|Items, like other entities, can now travel through portals.|Some [[Minecraft:zombie]]s, skeletons and zombie pigmen can now pick up items.|Nether stars are the first items to not be deleted by explosions.|Added [[Minecraft:hopper]]s, which can collect items.|Added hopper minecarts, which can collect items.}} | ||
|{{HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|Items can now be reared by | |{{MC/HistoryLine||xbox=TU46|xbone=CU36|ps3=1.38|psvita=1.38|ps4=1.38|wiiu=Patch 15|switch=1.0.1|Items can now be reared by fishing rods.}} | ||
|{{HistoryLine||xbox=TU69|xbone=none|ps3=1.76|psvita=1.76|ps4=1.76|wiiu=Patch 38|switch=none|Items in [[Minecraft:water]] now float up.}} | |{{MC/HistoryLine||xbox=TU69|xbone=none|ps3=1.76|psvita=1.76|ps4=1.76|wiiu=Patch 38|switch=none|Items in [[Minecraft:water]] now float up.}} | ||
}} | }} | ||
==Issues== | ==Issues== | ||
{{Issue list|Item|item entity}} | {{MC/Issue list|Item|item entity}} | ||
== Trivia == | == Trivia == | ||
* {{bug|MC-4}}, the oldest standing bug in the Minecraft | * {{bug|MC-4}}, the oldest standing bug in the Minecraft bug tracker, involves item entity positioning being incorrectly handled. | ||
== Gallery == | == Gallery == | ||
| Line 261: | Line 261: | ||
== See also == | == See also == | ||
* | * Drops — items dropped by mobs when killed. | ||
* | * Chunk format for more information about the attributes of items. | ||
== Notes == | == Notes == | ||
| Line 268: | Line 268: | ||
== References == | == References == | ||
{{Reflist}} | {{MC/Reflist}} | ||
== Navigation == | == Navigation == | ||
{{Navbox entities|other}} | {{MC/Navbox entities|other}} | ||
{{Navbox items|all}} | {{MC/Navbox items|all}} | ||
[[Category:Items| ]] | [[Category:Items| ]] | ||
de:Drop | |||
es:Objeto (entidad) | |||
fr:Objet (entité) | |||
it:Oggetto (entità) | |||
ja:アイテム (エンティティ) | |||
ko:아이템 (개체) | |||
nl:Voorwerp (entiteit) | |||
pt:Item (entidade) | |||
ru:Предмет (сущность) | |||
th:ไอเทม (เอนทิตี้) | |||
uk:Предмет (сутність) | |||
zh:物品(实体) | |||
Latest revision as of 20:30, 9 April 2026
Template:Hatnote Template:Infobox entity Items are "dropped" Minecraft:blocks or Minecraft:items (non-block resources) that appear in the world, rather than being in the Minecraft:inventory of a player or Minecraft:block entity; they are a type of entity.
Appearance
Items have two possible appearances, generally corresponding to whether the item appears as a 3D or 2D shape in a player's inventory screens. 3D items appear as their 3D shape, miniaturized to about Template:Frac scale, while 2D items appear as Template:Frac scale with all the pixels extruded into a cube. Both types slowly rotate and bob up and down; this is merely a visual effect, the item itself does not actually rotate or bob up and down.
Item entities that represent a stack of more than one item appear as several items stuck together. Stacks of 1 appear as one item, 2-16 as two items, 17–32 as three, 33-48 as four, and 49+ as five.
The rotation rate of the item is approximately 2.9 degrees per tick, or 57.6 degrees per second.
Behavior
Item entities come from many sources. Some common ones are:
- The death of a Minecraft:mob or player.
- A Minecraft:block that is mined by a player, destroyed by an explosion, or washed away by Minecraft:water.
- An inventory item tossed by pressing the drop item key (default
- REDIRECT Template:Keys
Template:Redr on PC,
- REDIRECT Template:Xbutton
Template:Redr on Xbox,
- REDIRECT Template:Nsbutton
- REDIRECT Template:Nsbutton
Template:Redr on Nintendo Switch,
- REDIRECT Template:Psbutton
Template:Redr on PlayStation) or dragging a stack outside of an inventory window.
- In the mobile versions of Bedrock Edition, items in the hotbar can be dropped by pressing on the item's slot. The entire stack is dropped.
- A container (other than an
- redirect Template:blockLink
Template:Redr or a
- redirect Template:blockLink
Template:Redr) that is destroyed while holding items inside.
The player may be thought of as having an "item pickup" box that surrounds their hitbox. This pickup box extends 1 additional block to the horizontal sides, and 0.5 additional blocks up and down. Any item whose hitbox intersects with the pickup box can be picked up. The pickup box is inclusive on the horizontal sides (for distance less than or equal to 1), and exclusive on the vertical sides (distance less than 0.5). When the player's hitbox size changes, such as when crouching or sleeping, the pickup box size changes with it.
Once an item entity's hitbox overlaps with the player's pickup box, it can transfer its items. As many items as can fit in the player inventory, excluding the armor slots and the off-hand slot, are transferred. If any item is transferred, a "plopping" sound is played. If all items are transferred, the items appear to move into the center of the player. The item entity never physically moves, however, which means it can appear to go through lava and blocks in its path. This can happen through blocks that are thinner than a full block, but also through the shared edge of two full blocks. Unlike experience orbs, multiple item entities can be picked up simultaneously. Dropped items have a delay of 10 Minecraft:ticks (half a second) between appearing and being able to be picked up, or 40 ticks (2 seconds) if thrown by a player, dolphin, or fox.
Items do not collide with other entities (except Minecraft:boats and shulkers) and are only moved or stopped by blocks.
Like other entities, items can be pushed by flowing water and bubble columns, pushed by a Minecraft:piston, launched by a moving slime block, stuck to a honey block, or caught in a Minecraft:cobweb. Items move at faster speeds if Minecraft:ice is placed under the flowing water. When in still water, items float slowly up to the surface.
in Template:Editions, items can be reeled by fishing rods, costing 3 durability.
If an item is within a Minecraft:solid block, it then flies out one of the unobstructed sides, or out of the top of the block if surrounded by solid blocks on all sides. It does this even if the space below is unoccupied; therefore, it is possible to recover an item dropped in a small pit by blocking up the pit.
Items visually disappear when the player is about 16 blocks away from them, and reappear when they get closer. in Template:Editions, this distance can be adjusted by the "Entity Distance" slider in video settings.
Unlike most entities, items cannot be spectated in Spectator mode without use of the
- REDIRECT Template:Command
Template:Redr command.
When an item entity drops within the pickup box of two separate players simultaneously on a multiplayer server, the player who joined first automatically gets the item. If the item is tossed by one of said players, the other player is prioritized.{{
#vardefine: verifyedition |
}}<verify for {{#var:verifyedition}}></verify for {{#var:verifyedition}}>{{
#vardefine: verifyedition |
}}
Mob pickup
{{#vardefine:params|0 }}Template:Hatnote Some mobs, such as Minecraft:zombies and skeletons, have a chance to spawn being able to pick up weapons and armor depending on difficulty.
Merging
Two stackable items of the same type can merge together into a single item entity if the resulting stack size does not exceed that item's maximum stack size and if one is within a 0.5×0.25×0.5 square bounding box around the other item. The item with the greater stack gets its item count increased while the smaller or equal that is processed first is despawned.
Items usually attempt to merge every Script error: No such module "convert". but items moving across block boundaries can be processed every Script error: No such module "convert"..
Damage
Items cannot be attacked by players or mobs; attempting to do so simply hits through them. However, they take damage and disappear from environmental or block-based damage such as explosions, Minecraft:fire, Minecraft:lava, and contact with cacti. Items have essentially no health, so they are destroyed by the slightest damage, though if set on fire they may remain for a few seconds before disappearing. Nether stars are immune to explosions, and netherite-based items and tools are immune to fire and float on top of lava. Also, some blocks that regularly damage mobs, such as magma blocks, Minecraft:campfires, sweet berry bushes, wither roses, and powder snow, do not damage items.
Despawning
Items despawn after 6000 game Minecraft:ticks (5 minutes) of being in a loaded, entity-ticking chunk; this is affected by the player's Minecraft:simulation distance. If two item stacks merge, the timer is set to the item that has more time remaining. The 5-minute timer is paused when the chunk is unloaded or no longer processing entities. in Template:Editions, nether stars do not despawn. in Template:Editions, nether stars dropped by a dying Minecraft:wither despawn after 10 minutes, but they despawn after 5 minutes if dropped by any other means.
Items that fall into the void immediately despawn when they fall below world minumum build height - 64 (Y=-128 in the Minecraft:Overworld, Y=-64 in Minecraft:the Nether and Minecraft:the End).
Sounds
Template:!((Java EditionTemplate:))!:
Item Entities use the Ambient/Environment sound category for entity-dependent sound events.
Template:SoundTable
Template:!((Bedrock EditionTemplate:))!: Template:SoundTable
Data values
ID
{{#vardefine: editions-text}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}
{{#vardefine: editions-editionname |{{#var: argval}} }}
{{#vardefine: editions-editionname-s |{{#var: editions-editionname}}}}
{{#vardefine: editions-editionname-l |{{#var: editions-editionname-s}} Edition}}
{{#vardefine: editions-linkname |{{#var: editions-editionname-l}}}}{{#vardefine:game-args|earth mce dungeons mcd legends mcl education edu ee sm msm mcsm story sm1 msm1 mcsm1 story1 sm2 msm2 mcsm2 story2}}{{#vardefine: editions-text |
{{#var: editions-text}} [[{{#var: editions-linkname}}|{{#var: editions-editionname-l}}]]
}}
}}{{#var: editions-text}}:
{{#vardefine: editions-text}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}
{{#vardefine: editions-editionname |{{#var: argval}} }}
{{#vardefine: editions-editionname-s |{{#var: editions-editionname}}}}
{{#vardefine: editions-editionname-l |{{#var: editions-editionname-s}} Edition}}
{{#vardefine: editions-linkname |{{#var: editions-editionname-l}}}}{{#vardefine:game-args|earth mce dungeons mcd legends mcl education edu ee sm msm mcsm story sm1 msm1 mcsm1 story1 sm2 msm2 mcsm2 story2}}{{#vardefine: editions-text |
{{#var: editions-text}} [[{{#var: editions-linkname}}|{{#var: editions-editionname-l}}]]
}}
}}{{#var: editions-text}}:
Entity data
{{#vardefine:params|0 }}Template:Hatnote Dropped items have entity data associated with them that contain various properties of the entity.
- REDIRECT Template:Edition
Template:Rcat: {{#vardefine:params|0 }}Template:Hatnote
<section begin="entity data"/>
- Template:Nbt/sprite Entity data
- Template:Nbt inherit
- Template:Nbt/sprite Age: The number of ticks the item has been "untouched". After 6000 ticks (5 minutes) the item is destroyed. If set to -32768, the Age does not increase, preventing the item from despawning automatically.
- Template:Nbt/sprite Health: The health of the item, which starts at 5. Items take damage from fire, lava, cacti and explosions. The item is destroyed when its health reaches 0.
- Template:Nbt/sprite Item: The inventory item, without the Slot tag.
- Template:Nbt/sprite Owner: If present, only the player with this Minecraft:UUID can pick up the item. Used by the give command (and can be set in a summon command) to prevent the wrong player from picking up the spawned item entity. Is not preserved when removed.
- Template:Nbt/sprite PickupDelay: The number of ticks the item cannot be picked up. Decreases by 1 per tick. If set to 32767, the PickupDelay does not decrease, preventing the item from being picked up.
- Template:Nbt/sprite Thrower: The Minecraft:UUID of the entity who dropped the item. Is not preserved when removed.
<section end="entity data"/>
- REDIRECT Template:Edition
History
Java Edition
- REDIRECT Template:Incomplete section
Bedrock Edition
Legacy Console Edition
Issues
Script error: No such module "Issue list".
Trivia
- Template:Bug, the oldest standing bug in the Minecraft bug tracker, involves item entity positioning being incorrectly handled.
Gallery
Mojang images
-
First image of 3D dropped items.
See also
- Drops — items dropped by mobs when killed.
- Chunk format for more information about the attributes of items.
Notes
References
<references group="">
</references>
| |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||
| |||||||||||||||||||
Template:Article otherTemplate:Article other
de:Drop es:Objeto (entidad) fr:Objet (entité) it:Oggetto (entità) ja:アイテム (エンティティ) ko:아이템 (개체) nl:Voorwerp (entiteit) pt:Item (entidade) ru:Предмет (сущность) th:ไอเทม (เอนทิตี้) uk:Предмет (сутність) zh:物品(实体)