Minecraft:Barrel: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 18: | Line 18: | ||
Barrels can be mined with or without any [[Minecraft:tool]], but [[Minecraft:axe]]s are the quickest. | Barrels can be mined with or without any [[Minecraft:tool]], but [[Minecraft:axe]]s are the quickest. | ||
{{ | {{MC/Breaking row|horizontal=1|Barrel|Axe}} | ||
=== Natural generation === | === Natural generation === | ||
| Line 26: | Line 26: | ||
=== Generated loot === | === Generated loot === | ||
{{LootChestItem|barrel}} | {{MC/LootChestItem|barrel}} | ||
=== Crafting === | === Crafting === | ||
{{-}} | {{MC/-}} | ||
{{Crafting | {{Crafting | ||
|head=1 | |head=1 | ||
| Line 54: | Line 54: | ||
They can be filled by [[Minecraft:dropper]]s and both filled and emptied by [[Minecraft:hopper]]s. When broken, barrels drop the contents of the container and the barrel item itself. | They can be filled by [[Minecraft:dropper]]s and both filled and emptied by [[Minecraft:hopper]]s. When broken, barrels drop the contents of the container and the barrel item itself. | ||
To open the barrel interface, use the {{ | To open the barrel interface, use the {{MC/Control|Use Item}} control. To move items between the barrel inventory and the player inventory or hotbar while the barrel interface is open, drag or shift-click the items. Holding {{MC/Key|Shift}} and double-clicking while holding an item moves all items of the type clicked on in or out of the barrel to the extent that space is available for them.{{only|Java}} To exit the barrel interface, use the {{MC/Key|Esc}} control. | ||
By default, the interface of a barrel is labeled "Barrel". A barrel's GUI label can be changed by naming the barrel in an [[Minecraft:anvil]] before placing it or by using the {{ | By default, the interface of a barrel is labeled "Barrel". A barrel's GUI label can be changed by naming the barrel in an [[Minecraft:anvil]] before placing it or by using the {{MC/Cmd|data}} command{{only|Java}} (for example, to label a barrel at (0,64,0) as "Bonus Barrel!", use {{cmd|data merge block 0 64 0 <nowiki>{CustomName:'"Bonus Barrel!"'}</nowiki>}}). | ||
{{ | {{MC/In|je}}, a barrel can be "locked" by setting its <code>lock</code> tag using the {{MC/Cmd|data}} command. If a barrel's <code>lock</code> tag is not blank, the barrel cannot be opened unless the player is holding an item that matches the item predicate in the <code>lock</code> tag. For example, to lock a barrel at (0,64,0) so that the barrel cannot be opened unless the player is holding an item named "Barrel Key", use {{cmd|data merge block 0 64 0 <nowiki>{lock:{components:{"custom_name":"Barrel Key"}}}</nowiki>}}. | ||
=== Profession === | === Profession === | ||
{{ | {{MC/Main|Job site block}} | ||
If a barrel has not been claimed by a [[Minecraft:villager]], any nearby unemployed villager has a chance to change their profession to fisherman and claim the barrel as their job site block. | If a barrel has not been claimed by a [[Minecraft:villager]], any nearby unemployed villager has a chance to change their profession to fisherman and claim the barrel as their job site block. | ||
| Line 75: | Line 75: | ||
== Sounds == | == Sounds == | ||
=== Generic === | === Generic === | ||
{{Sound table/Block/Wood}} | {{MC/Sound table/Block/Wood}} | ||
=== Unique === | === Unique === | ||
{{ | {{MC/Edition|java}} | ||
{{SoundTable | {{SoundTable | ||
| type = java | | type = java | ||
| Line 117: | Line 117: | ||
|subtitle=Chest locked<ref group=sound name=lock>{{Bug|MC-98316||Wrong subtitles caused by missing distinction}}</ref> | |subtitle=Chest locked<ref group=sound name=lock>{{Bug|MC-98316||Wrong subtitles caused by missing distinction}}</ref> | ||
|source=block | |source=block | ||
|description=When a player attempts to open a barrel locked using the {{ | |description=When a player attempts to open a barrel locked using the {{MC/Nbt|compound|lock}} tag | ||
|id=block.chest.locked|idnote=<ref group=sound name=lock/> | |id=block.chest.locked|idnote=<ref group=sound name=lock/> | ||
|translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=lock/> | |translationkey=subtitles.block.chest.locked|translationkeynote=<ref group=sound name=lock/> | ||
| Line 126: | Line 126: | ||
}} | }} | ||
{{ | {{MC/Edition|bedrock}}: | ||
{{SoundTable | {{SoundTable | ||
| type = bedrock | | type = bedrock | ||
| Line 156: | Line 156: | ||
== Data values == | == Data values == | ||
=== ID === | === ID === | ||
{{JE}}: | {{MC/JE}}: | ||
{{ID table | {{ID table | ||
|edition=java | |edition=java | ||
| Line 174: | Line 174: | ||
|foot=1}} | |foot=1}} | ||
{{BE}}: | {{MC/BE}}: | ||
{{ID table | {{ID table | ||
|edition=bedrock | |edition=bedrock | ||
| Line 196: | Line 196: | ||
=== Block states === | === Block states === | ||
{{ | {{MC/See also|Block states}} | ||
{{JE}}: | {{MC/JE}}: | ||
{{bst|facing|north|down,east,north,south,up,west|The direction the barrel is facing.}} | {{bst|facing|north|down,east,north,south,up,west|The direction the barrel is facing.}} | ||
{{bst|open|false|false,true|Whether the barrel is currently being looked at by a player; changes the texture on the top face.|foot=1}} | {{bst|open|false|false,true|Whether the barrel is currently being looked at by a player; changes the texture on the top face.|foot=1}} | ||
{{BE}}: | {{MC/BE}}: | ||
{{bst|showaux=1|bits=0x1,0x2,0x4|facing_direction|0|0,1,2,3,4,5|The direction the barrel is facing. | {{bst|showaux=1|bits=0x1,0x2,0x4|facing_direction|0|0,1,2,3,4,5|The direction the barrel is facing. | ||
*0:Down facing barrel | *0:Down facing barrel | ||
| Line 215: | Line 215: | ||
A barrel has a block entity associated with it that holds additional data about the block. | A barrel has a block entity associated with it that holds additional data about the block. | ||
{{JE}}: | {{MC/JE}}: | ||
{{ | {{MC/See also|Block entity format}} | ||
<section begin="block data" /><div class="treeview"> | <section begin="block data" /><div class="treeview"> | ||
* {{ | * {{MC/Nbt|compound}} Block entity data | ||
** {{ | ** {{MC/Nbt inherit/blockentity}} | ||
** {{ | ** {{MC/Nbt inherit/nameable|indent=**}} | ||
** {{ | ** {{MC/Nbt inherit/Lockable|indent=**}} | ||
** {{ | ** {{MC/Nbt inherit/Lootable|indent=**}} | ||
** {{ | ** {{MC/Nbt|list|Items}}: List of items in the container. Represents the {{DCL|minecraft:container}} component. The component is still present on the block entity, even if the tag does not exist (due to a loot table existing instead). | ||
*** {{ | *** {{MC/Nbt|compound}}: An item, including the slot tag. Barrel slots are numbered 0-26, 0 starts in the top left corner. | ||
**** {{ | **** {{MC/Nbt inherit/item|indent=****}} | ||
</div><section end="block data" /> | </div><section end="block data" /> | ||
{{BE}}: | {{MC/BE}}: | ||
: See [[Minecraft:Bedrock Edition level format/Block entity format]]. | : See [[Minecraft:Bedrock Edition level format/Block entity format]]. | ||
== Videos == | == Videos == | ||
{{ | {{MC/Yt|di1fNQ94fcM}} | ||
== History == | == History == | ||
{{See asset history|type=block}} | {{MC/See asset history|type=block}} | ||
=== ''Java Edition'' === | === ''Java Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|java}} | |{{MC/HistoryLine|java}} | ||
|{{HistoryLine||1.14|dev=18w44a|[[File:Barrel (U) JE1 BE1.png|32px]] [[File:Barrel (D) JE1 BE1.png|32px]] [[File:Barrel (S) JE1 BE1.png|32px]] [[File:Barrel (W) JE1 BE1.png|32px]] [[File:Barrel (N) JE1 BE1.png|32px]] [[File:Barrel (E) JE1.png|32px]] Added barrels. | |{{MC/HistoryLine||1.14|dev=18w44a|[[File:Barrel (U) JE1 BE1.png|32px]] [[File:Barrel (D) JE1 BE1.png|32px]] [[File:Barrel (S) JE1 BE1.png|32px]] [[File:Barrel (W) JE1 BE1.png|32px]] [[File:Barrel (N) JE1 BE1.png|32px]] [[File:Barrel (E) JE1.png|32px]] Added barrels. | ||
|Barrels have been added to the [[Minecraft:Creative inventory]]. | |Barrels have been added to the [[Minecraft:Creative inventory]]. | ||
|Barrels currently have the inventory of a [[Minecraft:chest]], but there is no way to view this in-game. | |Barrels currently have the inventory of a [[Minecraft:chest]], but there is no way to view this in-game. | ||
| Line 245: | Line 245: | ||
|Barrels can currently be emptied only by hoppers. | |Barrels can currently be emptied only by hoppers. | ||
|Barrels currently do not drop the [[Minecraft:item]]s they contain when broken.}} | |Barrels currently do not drop the [[Minecraft:item]]s they contain when broken.}} | ||
|{{HistoryLine|||dev=18w47b|[[File:Barrel_(S)_JE2.png|32px]] The {{ | |{{HistoryLine|||dev=18w47b|[[File:Barrel_(S)_JE2.png|32px]] The {{MC/Cd|1=facing=south}} block state texture of barrels has been changed.}} | ||
|{{HistoryLine|||dev=18w48a|Barrel items are now found in chests in village fisher cottages. | |{{MC/HistoryLine|||dev=18w48a|Barrel items are now found in chests in village fisher cottages. | ||
|Barrels can now generate naturally in villages in plains.}} | |Barrels can now generate naturally in villages in plains.}} | ||
|{{HistoryLine|||dev=18w49a|Barrels can now generate naturally in savanna and snowy villages.}} | |{{MC/HistoryLine|||dev=18w49a|Barrels can now generate naturally in savanna and snowy villages.}} | ||
|{{HistoryLine|||dev=18w50a|Barrels can now generate naturally in desert and taiga villages. | |{{MC/HistoryLine|||dev=18w50a|Barrels can now generate naturally in desert and taiga villages. | ||
|Barrels now act as a storage unit. | |Barrels now act as a storage unit. | ||
|Barrels can now be used in tight spaces, even if there is a [[Minecraft:block]] above it, unlike a [[Minecraft:chest]]. | |Barrels can now be used in tight spaces, even if there is a [[Minecraft:block]] above it, unlike a [[Minecraft:chest]]. | ||
|Barrels can now be crafted using 6 wood [[Minecraft:planks]] and 2 wood [[Minecraft:slab]]s.}} | |Barrels can now be crafted using 6 wood [[Minecraft:planks]] and 2 wood [[Minecraft:slab]]s.}} | ||
|{{HistoryLine|||dev=19w03a|Sounds have been added for barrels.}} | |{{MC/HistoryLine|||dev=19w03a|Sounds have been added for barrels.}} | ||
|{{HistoryLine|||dev=19w07a|[[File:Open Barrel (U) JE1 BE1.png|32px]] [[File:Open Barrel (D) JE1 BE1.png|32px]] [[File:Open Barrel (S) JE1.png|32px]] [[File:Open Barrel (W) JE1 BE1.png|32px]] [[File:Open Barrel (N) JE1 BE1.png|32px]] [[File:Open Barrel (E) JE1.png|32px]] An {{ | |{{HistoryLine|||dev=19w07a|[[File:Open Barrel (U) JE1 BE1.png|32px]] [[File:Open Barrel (D) JE1 BE1.png|32px]] [[File:Open Barrel (S) JE1.png|32px]] [[File:Open Barrel (W) JE1 BE1.png|32px]] [[File:Open Barrel (N) JE1 BE1.png|32px]] [[File:Open Barrel (E) JE1.png|32px]] An {{MC/Cd|open}} block state has been added to barrels.}} | ||
|{{HistoryLine|||dev=19w11a|Barrels now serve as fisherman [[Minecraft:villager]]s' job site block.}} | |{{MC/HistoryLine|||dev=19w11a|Barrels now serve as fisherman [[Minecraft:villager]]s' job site block.}} | ||
|{{HistoryLine||1.16|dev=20w06a|Crimson planks and warped planks can now be used to craft barrels.}} | |{{MC/HistoryLine||1.16|dev=20w06a|Crimson planks and warped planks can now be used to craft barrels.}} | ||
|{{HistoryLine|||dev=20w15a|[[Minecraft:Piglin]]s now become hostile toward players who open or break barrels.}} | |{{MC/HistoryLine|||dev=20w15a|[[Minecraft:Piglin]]s now become hostile toward players who open or break barrels.}} | ||
|{{HistoryLine||1.18|dev=pre5|[[File:Barrel (D) JE2 BE2.png|32px]] [[File:Barrel (W) JE2 BE2.png|32px]] [[File:Barrel (N) JE2 BE2.png|32px]] Bottom texture was changed.}} | |{{MC/HistoryLine||1.18|dev=pre5|[[File:Barrel (D) JE2 BE2.png|32px]] [[File:Barrel (W) JE2 BE2.png|32px]] [[File:Barrel (N) JE2 BE2.png|32px]] Bottom texture was changed.}} | ||
|{{HistoryLine||1.19|dev=22w11a|Mangrove planks can now be used to craft barrels.}} | |{{MC/HistoryLine||1.19|dev=22w11a|Mangrove planks can now be used to craft barrels.}} | ||
|{{HistoryLine||1.19.3|exp=Update 1.20|dev=22w42a|Bamboo planks can now be used to craft barrels.}} | |{{MC/HistoryLine||1.19.3|exp=Update 1.20|dev=22w42a|Bamboo planks can now be used to craft barrels.}} | ||
|{{HistoryLine||1.19.4|exp=Update 1.20|dev=23w07a|Cherry planks can now be used to craft barrels.}} | |{{MC/HistoryLine||1.19.4|exp=Update 1.20|dev=23w07a|Cherry planks can now be used to craft barrels.}} | ||
|{{HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Barrels containing loot now generate in trial chambers.}} | |{{MC/HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Barrels containing loot now generate in trial chambers.}} | ||
|{{HistoryLine||1.21.2|dev=24w33a|Empty barrels now generate beneath [[Minecraft:hopper]]s at chamber entrances in trial chambers.}} | |{{MC/HistoryLine||1.21.2|dev=24w33a|Empty barrels now generate beneath [[Minecraft:hopper]]s at chamber entrances in trial chambers.}} | ||
}} | }} | ||
=== ''Bedrock Edition'' === | === ''Bedrock Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.9.0|dev=beta 1.9.0.0 | |{{HistoryLine||1.9.0|dev=beta 1.9.0.0 | ||
|[[File:Fish Barrel (texture) BE1.png|32px]] [[File:Empty Barrel (texture) BE1.png|32px]] Unused barrel textures are added, including textures titled "fish barrel" and "empty barrel." {{Verify|Textures have so far only been found in an official resource pack template for beta 1.9.0.0}}}} | |[[File:Fish Barrel (texture) BE1.png|32px]] [[File:Empty Barrel (texture) BE1.png|32px]] Unused barrel textures are added, including textures titled "fish barrel" and "empty barrel." {{MC/Verify|Textures have so far only been found in an official resource pack template for beta 1.9.0.0}}}} | ||
|{{HistoryLine||1.9.0|dev=beta 1.9.0.2|exp=Experimental Gameplay|[[File:Barrel (U) JE1 BE1.png|32px]] [[File:Barrel (D) JE1 BE1.png|32px]] [[File:Barrel (S) JE1 BE1.png|32px]] [[File:Barrel (W) JE1 BE1.png|32px]] [[File:Barrel (N) JE1 BE1.png|32px]] [[File:Barrel (E) BE1.png|32px]]<br>[[File:Open Barrel (U) JE1 BE1.png|32px]] [[File:Open Barrel (D) JE1 BE1.png|32px]] [[File:Open Barrel (S) BE1.png|32px]] [[File:Open Barrel (W) JE1 BE1.png|32px]] [[File:Open Barrel (N) JE1 BE1.png|32px]] [[File:Open Barrel (E) BE1.png|32px]] <br>Added barrels which are currently behind Experimental Gameplay. | |{{MC/HistoryLine||1.9.0|dev=beta 1.9.0.2|exp=Experimental Gameplay|[[File:Barrel (U) JE1 BE1.png|32px]] [[File:Barrel (D) JE1 BE1.png|32px]] [[File:Barrel (S) JE1 BE1.png|32px]] [[File:Barrel (W) JE1 BE1.png|32px]] [[File:Barrel (N) JE1 BE1.png|32px]] [[File:Barrel (E) BE1.png|32px]]<br>[[File:Open Barrel (U) JE1 BE1.png|32px]] [[File:Open Barrel (D) JE1 BE1.png|32px]] [[File:Open Barrel (S) BE1.png|32px]] [[File:Open Barrel (W) JE1 BE1.png|32px]] [[File:Open Barrel (N) JE1 BE1.png|32px]] [[File:Open Barrel (E) BE1.png|32px]] <br>Added barrels which are currently behind Experimental Gameplay. | ||
|A barrel can be used to smelt 1.5 [[Minecraft:item]]s in a [[Minecraft:furnace]].}} | |A barrel can be used to smelt 1.5 [[Minecraft:item]]s in a [[Minecraft:furnace]].}} | ||
|{{HistoryLine||1.10.0|dev=beta 1.10.0.3|exp=Experimental Gameplay|A [[Minecraft:crafting]] recipe has been added to barrels, which is different compared from {{ | |{{HistoryLine||1.10.0|dev=beta 1.10.0.3|exp=Experimental Gameplay|A [[Minecraft:crafting]] recipe has been added to barrels, which is different compared from {{MC/El|je}}'s crafting recipe. | ||
|Barrels now generate in fisher cottages in villages.}} | |Barrels now generate in fisher cottages in villages.}} | ||
|{{HistoryLine||1.11.0|dev=beta 1.11.0.1|The functionality of barrels has been added.|Barrels are now available outside of Experimental Gameplay.}} | |{{MC/HistoryLine||1.11.0|dev=beta 1.11.0.1|The functionality of barrels has been added.|Barrels are now available outside of Experimental Gameplay.}} | ||
|{{HistoryLine||1.18.10|dev=beta 1.18.10.22|[[File:Barrel (D) JE2 BE2.png|32px]] [[File:Barrel (W) JE2 BE2.png|32px]] [[File:Barrel (N) JE2 BE2.png|32px]] Changed the bottom texture to match the spruce planks.}} | |{{MC/HistoryLine||1.18.10|dev=beta 1.18.10.22|[[File:Barrel (D) JE2 BE2.png|32px]] [[File:Barrel (W) JE2 BE2.png|32px]] [[File:Barrel (N) JE2 BE2.png|32px]] Changed the bottom texture to match the spruce planks.}} | ||
|{{HistoryLine||1.20.10|dev=Preview 1.20.10.20|The crafting recipe for barrels now uses [[Minecraft:planks]] instead of [[Minecraft:stick]]s to match {{JE}}.}} | |{{HistoryLine||1.20.10|dev=Preview 1.20.10.20|The crafting recipe for barrels now uses [[Minecraft:planks]] instead of [[Minecraft:stick]]s to match {{MC/JE}}.}} | ||
}} | }} | ||
=== ''PlayStation 4 Edition'' === | === ''PlayStation 4 Edition'' === | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|ps4}} | |{{MC/HistoryLine|ps4}} | ||
|{{HistoryLine||1.91|[[File:Barrel JE1 BE1.png|32px]] [[File:Open Barrel JE1 BE1.png|32px]] Added barrels.}} | |{{MC/HistoryLine||1.91|[[File:Barrel JE1 BE1.png|32px]] [[File:Open Barrel JE1 BE1.png|32px]] Added barrels.}} | ||
}} | }} | ||
<gallery> | <gallery> | ||
File:LadyAgnes savanna village barrels.png|A close up of barrels. | File:LadyAgnes savanna village barrels.png|A close up of barrels. | ||
File:Fish Barrel (texture) BE1.png|An unused texture of a barrel of fish, found in a {{BE}} resource pack template. | File:Fish Barrel (texture) BE1.png|An unused texture of a barrel of fish, found in a {{MC/BE}} resource pack template. | ||
File:Fish Barrel.png|How a barrel would look if the unused texture was on its top. | File:Fish Barrel.png|How a barrel would look if the unused texture was on its top. | ||
File:Ore UI development barrel container.jpg|Prototype of a barrel menu in [[Minecraft:Ore UI]]. | File:Ore UI development barrel container.jpg|Prototype of a barrel menu in [[Minecraft:Ore UI]]. | ||
| Line 293: | Line 293: | ||
== Issues == | == Issues == | ||
{{Issue list}} | {{MC/Issue list}} | ||
== Trivia == | == Trivia == | ||
[[File:Alex wearing Barrel.png|thumb|right|upright=0.5|[[Alex]] wearing a barrel]] | [[File:Alex wearing Barrel.png|thumb|right|upright=0.5|[[Alex]] wearing a barrel]] | ||
* In the 2022's [[Minecraft:Java Edition 22w13oneBlockAtATime|April Fool's update]], a barrel can be thrown onto a player and make them appear as if they were "wearing" or "hiding" under the block. | * In the 2022's [[Minecraft:Java Edition 22w13oneBlockAtATime|April Fool's update]], a barrel can be thrown onto a player and make them appear as if they were "wearing" or "hiding" under the block. | ||
{{-}} | {{MC/-}} | ||
== Gallery == | == Gallery == | ||
=== Render === | === Render === | ||
====Close==== | ====Close==== | ||
'''{{JE}} ''' | '''{{MC/JE}} ''' | ||
<gallery> | <gallery> | ||
Barrel (U).png|Up | Barrel (U).png|Up | ||
| Line 313: | Line 313: | ||
</gallery> | </gallery> | ||
'''{{BE}}''' | '''{{MC/BE}}''' | ||
<gallery> | <gallery> | ||
Barrel (U) BE.png|Up | Barrel (U) BE.png|Up | ||
| Line 324: | Line 324: | ||
==== Open ==== | ==== Open ==== | ||
'''{{JE}} ''' | '''{{MC/JE}} ''' | ||
<gallery> | <gallery> | ||
Open Barrel (U).png|Up | Open Barrel (U).png|Up | ||
| Line 334: | Line 334: | ||
</gallery> | </gallery> | ||
'''{{BE}}''' | '''{{MC/BE}}''' | ||
<gallery> | <gallery> | ||
Open Barrel (U) BE.png|Up | Open Barrel (U) BE.png|Up | ||
| Line 357: | Line 357: | ||
File:Barrel 3DShareware.gif|A bonus barrel, which randomly generates throughout the world in the April Fool's update 2019. | File:Barrel 3DShareware.gif|A bonus barrel, which randomly generates throughout the world in the April Fool's update 2019. | ||
File:Vision in Barrel.png|Player's vision while hiding inside a barrel in the [[Minecraft:Java Edition 22w13oneBlockAtATime|April Fool's update]] 2022. | File:Vision in Barrel.png|Player's vision while hiding inside a barrel in the [[Minecraft:Java Edition 22w13oneBlockAtATime|April Fool's update]] 2022. | ||
File:MCD Barrels.png|Barrels as they appear in {{MCD}}, even including a fish barrel. | File:MCD Barrels.png|Barrels as they appear in {{MC/MCD}}, even including a fish barrel. | ||
File:Barrel MV.png|A barrel as it appeared on the 2022 Mob Vote Event. | File:Barrel MV.png|A barrel as it appeared on the 2022 Mob Vote Event. | ||
File:Barrel MCC Event.png|A barrel as it appeared in the [[Minecraft:MCC x Minecraft 15th Anniversary Party]]. | File:Barrel MCC Event.png|A barrel as it appeared in the [[Minecraft:MCC x Minecraft 15th Anniversary Party]]. | ||
File:Cubeez 2025 Barrel.png|Cubeez of a barrel. | File:Cubeez 2025 Barrel.png|Cubeez of a barrel. | ||
File:A Barrel.png|Barrels as they appear in {{ | File:A Barrel.png|Barrels as they appear in {{MC/Amcm}}. | ||
</gallery> | </gallery> | ||
| Line 368: | Line 368: | ||
== Navigation == | == Navigation == | ||
{{Navbox blocks|Utility}} | {{MC/Navbox blocks|Utility}} | ||
[[Category:Job blocks]] | [[Category:Job blocks]] | ||
Latest revision as of 19:02, 9 April 2026
Template:Infobox block A barrel is a solid Minecraft:block used to store Minecraft:items. Unlike a Minecraft:chest, it cannot connect to other barrels. It also serves as a fisherman's job site block.
Obtaining
Breaking
Barrels can be mined with or without any Minecraft:tool, but Minecraft:axes are the quickest.
Script error: No such module "breaking row".
Natural generation
Empty barrels can generate naturally in fisher cottages in villages. Up to 3 barrels can generate in a village fisher cottage.
In trial chambers, barrels containing loot can be found in the corridors, while empty barrels generate beneath Minecraft:hoppers at chamber entrances.
Generated loot
Script error: No such module "lootChest".
Crafting
Usage
Barrels can be moved by Minecraft:pistons.Template:Only Minecraft:Water and Minecraft:lava flow around barrels without affecting them. Lava can create Minecraft:fire in air blocks next to barrels as if the barrel was flammable, but the barrel does not actually catch fire and can't burn away.
Container
Barrels have a container inventory with 27 slots, which is the same as a single Minecraft:chest. Unlike chests, the action of opening a barrel is never prevented. They can be filled by Minecraft:droppers and both filled and emptied by Minecraft:hoppers. When broken, barrels drop the contents of the container and the barrel item itself.
To open the barrel interface, use the {{#vardefine: control | right click on mouse or left trigger on gamepad }}Use Item control. To move items between the barrel inventory and the player inventory or hotbar while the barrel interface is open, drag or shift-click the items. Holding
- REDIRECT Template:Keys
Template:Redr and double-clicking while holding an item moves all items of the type clicked on in or out of the barrel to the extent that space is available for them.Template:Only To exit the barrel interface, use the
- REDIRECT Template:Keys
Template:Redr control.
By default, the interface of a barrel is labeled "Barrel". A barrel's GUI label can be changed by naming the barrel in an Minecraft:anvil before placing it or by using the
- REDIRECT Template:Command
Template:Redr commandTemplate:Only (for example, to label a barrel at (0,64,0) as "Bonus Barrel!", use Template:Cmd).
in Template:Editions, a barrel can be "locked" by setting its lock tag using the
- REDIRECT Template:Command
Template:Redr command. If a barrel's lock tag is not blank, the barrel cannot be opened unless the player is holding an item that matches the item predicate in the lock tag. For example, to lock a barrel at (0,64,0) so that the barrel cannot be opened unless the player is holding an item named "Barrel Key", use Template:Cmd.
Profession
{{#vardefine:params|0 }}Template:Hatnote If a barrel has not been claimed by a Minecraft:villager, any nearby unemployed villager has a chance to change their profession to fisherman and claim the barrel as their job site block.
Fuel
Barrels can be used as a fuel in Minecraft:furnaces, smelting 1.5 items per block.
Note blocks
Barrels can be placed under note blocks to produce "bass" sounds.
Piglins
Minecraft:Piglins become hostile toward players who open or break barrels.
Sounds
Generic
Template:Edition: Template:Sound table/Block/Wood/JE
Template:Edition: Template:Sound table/Block/Wood/BE
Unique
Template:!((Java EditionTemplate:))! Template:SoundTable
Template:!((Bedrock EditionTemplate:))!: Template:SoundTable
Data values
ID
Java Edition: Template:ID table Template:ID table
Bedrock Edition: Template:ID table Template:ID table
Block states
{{#vardefine:params|0 }}Template:Hatnote
Java Edition: Template:Bst Template:Bst
Bedrock Edition: Template:Bst Template:Bst
Block data
A barrel has a block entity associated with it that holds additional data about the block.
Java Edition: {{#vardefine:params|0 }}Template:Hatnote
<section begin="block data" />
- Template:Nbt/sprite Block entity data
- REDIRECT Template:Nbt inherit/lockable
- REDIRECT Template:Nbt inherit/lootable
- Template:Nbt/sprite Items: List of items in the container. Represents the Template:DCL component. The component is still present on the block entity, even if the tag does not exist (due to a loot table existing instead).
- Template:Nbt/sprite: An item, including the slot tag. Barrel slots are numbered 0-26, 0 starts in the top left corner.
- Template:Nbt/sprite Items: List of items in the container. Represents the Template:DCL component. The component is still present on the block entity, even if the tag does not exist (due to a loot table existing instead).
<section end="block data" />
Videos
- REDIRECT Template:YouTube
History
Java Edition
Bedrock Edition
PlayStation 4 Edition
-
A close up of barrels.
-
An unused texture of a barrel of fish, found in a Bedrock Edition resource pack template.
-
How a barrel would look if the unused texture was on its top.
-
Prototype of a barrel menu in Minecraft:Ore UI.
Issues
Script error: No such module "Issue list".
Trivia
- In the 2022's April Fool's update, a barrel can be thrown onto a player and make them appear as if they were "wearing" or "hiding" under the block.
Gallery
Render
Close
-
Up
-
Down
-
South
-
West
-
North
-
East
-
Up
-
Down
-
South
-
West
-
North
-
East
Open
-
Up
-
Down
-
South
-
West
-
North
-
East
-
Up
-
Down
-
South
-
West
-
North
-
East
Mojang screenshots
-
First image of barrels in a savanna village.
-
Barrels placed next to each other facing opposite directions.
-
A blast furnace, Minecraft:smoker, and a barrel.
In other media
-
A stack of barrels.
-
A bonus barrel, which randomly generates throughout the world in the April Fool's update 2019.
-
Player's vision while hiding inside a barrel in the April Fool's update 2022.
-
Barrels as they appear in Minecraft Dungeons, even including a fish barrel.
-
A barrel as it appeared on the 2022 Mob Vote Event.
-
A barrel as it appeared in the Minecraft:MCC x Minecraft 15th Anniversary Party.
-
Cubeez of a barrel.
-
Barrels as they appear in
- REDIRECT Template:AMCM
External links
Template:Article otherTemplate:Article other
cs:Sud de:Fass es:Barril fr:Tonneau it:Barile ja:樽 ko:통 lzh:木桶 pl:Beczka pt:Barril ru:Бочка uk:Діжка zh:木桶