Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Barrel: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 12: Line 12:
| lavasusceptible = Yes
| lavasusceptible = Yes
}}
}}
A '''barrel''' is a solid [[Minecraft:block]] used to store [[Minecraft:item]]s. Unlike a [[Minecraft:chest]], it cannot connect to other barrels. It also serves as a fisherman's job site block.
A '''barrel''' is a solid [[Minecraft:block]] used to store [[Minecraft:item]]s. Unlike a [[Minecraft:chest]], it cannot connect to other barrels. It also serves as a [[Minecraft:fisherman]]'s [[Minecraft:job site block]].


== Obtaining ==
== Obtaining ==
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}}
{{breaking row|horizontal=1|Barrel|Axe}}


=== Natural generation ===
=== Natural generation ===
Empty barrels can generate naturally in fisher cottages in villages. Up to 3 barrels can generate in a village fisher cottage.
Empty barrels can generate naturally in fisher cottages in [[Minecraft:village]]s. 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:hopper]]s at chamber entrances.
In [[Minecraft:trial chambers]], barrels containing loot can be found in the corridors, while empty barrels generate beneath [[Minecraft:hopper]]s at chamber entrances.


=== Generated loot ===
=== Generated loot ===
{{MC/LootChestItem|barrel}}
{{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 {{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.
To open the barrel interface, use the {{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 {{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 {{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 {{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>}}).
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 {{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>}}.
{{IN|je}}, a barrel can be "locked" by setting its <code>lock</code> tag using the {{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}}
{{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 [[Minecraft:job site block]].


=== Fuel ===
=== Fuel ===
Barrels can be used as a fuel in [[Minecraft:furnace]]s, smelting 1.5 items per block.
Barrels can be used as a fuel in [[Minecraft:furnace]]s, smelting 1.5 items per block.
=== Note blocks ===
Barrels can be placed under note blocks to produce "bass" sounds.


=== Piglins ===
=== Piglins ===
Line 75: Line 72:
== Sounds ==
== Sounds ==
=== Generic ===
=== Generic ===
{{MC/Sound table/Block/Wood}}
{{Sound table/Block/Wood}}


=== Unique ===
=== Unique ===
{{MC/Edition|java}}
{{edition|java}}
{{SoundTable
{{SoundTable
| type = java
| type = java
Line 117: Line 114:
|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 {{MC/Nbt|compound|lock}} tag
|description=When a player attempts to open a barrel locked using the {{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 123:
}}
}}


{{MC/Edition|bedrock}}:
{{edition|bedrock}}:
{{SoundTable
{{SoundTable
| type = bedrock
| type = bedrock
Line 156: Line 153:
== Data values ==
== Data values ==
=== ID ===
=== ID ===
{{MC/JE}}:
{{JE}}:
{{ID table
{{ID table
|edition=java
|edition=java
Line 174: Line 171:
|foot=1}}
|foot=1}}


{{MC/BE}}:
{{BE}}:
{{ID table
{{ID table
|edition=bedrock
|edition=bedrock
Line 196: Line 193:


=== Block states ===
=== Block states ===
{{MC/See also|Block states}}
{{see also|Block states}}


{{MC/JE}}:
{{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}}


{{MC/BE}}:
{{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 212:
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.


{{MC/JE}}:
{{JE}}:
{{MC/See also|Block entity format}}
{{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
* {{nbt|compound}} Block entity data
** {{MC/Nbt inherit/blockentity}}
** {{nbt inherit/blockentity}}
** {{MC/Nbt inherit/nameable|indent=**}}
** {{nbt inherit/nameable|indent=**}}
** {{MC/Nbt inherit/Lockable|indent=**}}
** {{nbt inherit/lockable|indent=**}}
** {{MC/Nbt inherit/Lootable|indent=**}}
** {{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).
** {{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.
*** {{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=****}}
**** {{nbt inherit/item|indent=****}}
</div><section end="block data" />
</div><section end="block data" />


{{MC/BE}}:
{{BE}}:
: See [[Minecraft:Bedrock Edition level format/Block entity format]].
: See [[Minecraft:Bedrock Edition level format/Block entity format]].


== Videos ==
== Videos ==
{{MC/Yt|di1fNQ94fcM}}
{{yt|di1fNQ94fcM}}


== History ==
== History ==
{{MC/See asset history|type=block}}
{{See asset history|type=block}}
=== ''Java Edition'' ===
=== ''Java Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{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.
|{{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 242:
|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 {{MC/Cd|1=facing=south}} block state texture of barrels has been changed.}}
|{{HistoryLine|||dev=18w47b|[[File:Barrel_(S)_JE2.png|32px]] The {{cd|1=facing=south}} [[Minecraft:block state]] texture of barrels has been changed.}}
|{{MC/HistoryLine|||dev=18w48a|Barrel items are now found in chests in village fisher cottages.
|{{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 [[Minecraft:village]]s in [[Minecraft:plains]].}}
|{{MC/HistoryLine|||dev=18w49a|Barrels can now generate naturally in savanna and snowy villages.}}
|{{HistoryLine|||dev=18w49a|Barrels can now generate naturally in [[Minecraft:savanna]] and [[Minecraft:Snowy Tundra|snowy]] villages.}}
|{{MC/HistoryLine|||dev=18w50a|Barrels can now generate naturally in desert and taiga villages.
|{{HistoryLine|||dev=18w50a|Barrels can now generate naturally in [[Minecraft:desert]] and [[Minecraft: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.}}
|{{MC/HistoryLine|||dev=19w03a|Sounds have been added for barrels.}}
|{{HistoryLine|||dev=19w03a|[[Minecraft:Sound]]s 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 {{MC/Cd|open}} block state has been added to 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 {{cd|open}} block state has been added to barrels.}}
|{{MC/HistoryLine|||dev=19w11a|Barrels now serve as fisherman [[Minecraft:villager]]s' job site block.}}
|{{HistoryLine|||dev=19w11a|Barrels now serve as fisherman [[Minecraft:villager]]s' job site block.}}
|{{MC/HistoryLine||1.16|dev=20w06a|Crimson planks and warped planks can now be used to craft barrels.}}
|{{HistoryLine||1.16|dev=20w06a|[[Minecraft:Crimson planks]] and [[Minecraft:warped planks]] can now be used to craft barrels.}}
|{{MC/HistoryLine|||dev=20w15a|[[Minecraft:Piglin]]s now become hostile toward players who open or break barrels.}}
|{{HistoryLine|||dev=20w15a|[[Minecraft:Piglin]]s now become hostile toward [[Minecraft:player]]s who open or [[Minecraft:Breaking|break]] barrels.}}
|{{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.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.19|dev=22w11a|Mangrove planks can now be used to craft barrels.}}
|{{HistoryLine||1.19|dev=22w11a|[[Minecraft:Mangrove 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.3|exp=Update 1.20|dev=22w42a|[[Minecraft:Bamboo 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.19.4|exp=Update 1.20|dev=23w07a|[[Minecraft:Cherry planks]] can now be used to craft barrels.}}
|{{MC/HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Barrels containing loot now generate in trial chambers.}}
|{{HistoryLine||1.20.3|exp=Update 1.21|dev=23w45a|Barrels containing loot now generate in [[Minecraft:trial chambers]].}}
|{{MC/HistoryLine||1.21.2|dev=24w33a|Empty barrels now generate beneath [[Minecraft:hopper]]s at chamber entrances in trial chambers.}}
|{{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
|{{MC/HistoryLine|bedrock}}
|{{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." {{MC/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." {{Verify|Textures have so far only been found in an official resource pack template for beta 1.9.0.0}}}}
|{{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.
|{{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 [[Minecraft:Experimental Gameplay]].
|A barrel can be used to smelt 1.5 [[Minecraft:item]]s in a [[Minecraft:furnace]].}}
|A barrel can be used to [[Minecraft: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 {{MC/El|je}}'s crafting recipe.
|{{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 {{el|je}}'s crafting recipe.
|Barrels now generate in fisher cottages in villages.}}
|Barrels now generate in fisher cottages in [[Minecraft:village]]s.}}
|{{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.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.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.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 {{MC/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 {{JE}}.}}
}}
}}


=== ''PlayStation 4 Edition'' ===
=== ''PlayStation 4 Edition'' ===
{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|ps4}}
|{{HistoryLine|ps4}}
|{{MC/HistoryLine||1.91|[[File:Barrel JE1 BE1.png|32px]] [[File:Open Barrel JE1 BE1.png|32px]] Added barrels.}}
|{{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 {{MC/BE}} resource pack template.
File:Fish Barrel (texture) BE1.png|An unused texture of a barrel of fish, found in a {{BE}} [[Minecraft: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 290:


== Issues ==
== Issues ==
{{MC/Issue list}}
{{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 [[Minecraft:player]] and make them appear as if they were "wearing" or "hiding" under the block.
{{MC/-}}
{{-}}


== Gallery ==
== Gallery ==
=== Render ===
=== Render ===
====Close====
====Close====
'''{{MC/JE}} '''
'''{{JE}} '''
<gallery>
<gallery>
Barrel (U).png|Up
Barrel (U).png|Up
Line 313: Line 310:
</gallery>
</gallery>


'''{{MC/BE}}'''
'''{{BE}}'''
<gallery>
<gallery>
Barrel (U) BE.png|Up
Barrel (U) BE.png|Up
Line 324: Line 321:


==== Open ====
==== Open ====
'''{{MC/JE}} '''
'''{{JE}} '''
<gallery>
<gallery>
Open Barrel (U).png|Up
Open Barrel (U).png|Up
Line 334: Line 331:
</gallery>
</gallery>


'''{{MC/BE}}'''
'''{{BE}}'''
<gallery>
<gallery>
Open Barrel (U) BE.png|Up
Open Barrel (U) BE.png|Up
Line 346: Line 343:
=== Mojang screenshots ===
=== Mojang screenshots ===
<gallery>
<gallery>
File:LadyAgnes savanna village.jpg|First image of barrels in a savanna village.
File:LadyAgnes savanna village.jpg|First image of barrels in a [[Minecraft:savanna]] [[Minecraft:village]].
File:Barrel Alignment.jpg|Barrels placed next to each other facing opposite directions.
File:Barrel Alignment.jpg|Barrels placed next to each other facing opposite directions.
File:Blast Furnace Smoker & Barrel.jpg|A blast furnace, [[Minecraft:smoker]], and a barrel.
File:Blast Furnace Smoker & Barrel.jpg|A [[Minecraft:blast furnace]], [[Minecraft:smoker]], and a barrel.
File:Barrel-ingame.jpeg
File:Barrel-ingame.jpeg
</gallery>
</gallery>
Line 355: Line 352:
<gallery>
<gallery>
File:Barrel-header.jpeg|A stack of barrels.
File:Barrel-header.jpeg|A stack of barrels.
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 [[Minecraft:bonus barrel]], which randomly generates throughout the world in the [[Minecraft:Java Edition 3D Shareware v1.34|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 {{MC/MCD}}, even including a fish barrel.
File:MCD Barrels.png|Barrels as they appear in {{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 [[Minecraft: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|[[Minecraft:Cubeez]] of a barrel.
File:A Barrel.png|Barrels as they appear in {{MC/Amcm}}.
File:A Barrel.png|Barrels as they appear in {{AMCM}}.
</gallery>
</gallery>


Line 368: Line 365:


== Navigation ==
== Navigation ==
{{MC/Navbox blocks|Utility}}
{{Navbox blocks|Utility}}


[[Category:Job blocks]]
[[Category:Job blocks]]
Line 379: Line 376:
[[Category:Readable by comparators]]
[[Category:Readable by comparators]]


cs:Sud
[[Minecraft:cs:Sud]]
de:Fass
[[Minecraft:de:Fass]]
es:Barril
[[Minecraft:es:Barril]]
fr:Tonneau
[[Minecraft:fr:Tonneau]]
it:Barile
[[Minecraft:it:Barile]]
ja:樽
[[Minecraft:ja:樽]]
ko:통
[[Minecraft:ko:통]]
lzh:木桶
[[Minecraft:lzh:木桶]]
pl:Beczka
[[Minecraft:pl:Beczka]]
pt:Barril
[[Minecraft:pt:Barril]]
ru:Бочка
[[Minecraft:ru:Бочка]]
uk:Діжка
[[Minecraft:uk:Діжка]]
zh:木桶
[[Minecraft:zh:木桶]]

Latest revision as of 11:01, 29 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 Minecraft:fisherman's Minecraft:job site block.

Obtaining

Breaking

Barrels can be mined with or without any Minecraft:tool, but Minecraft:axes are the quickest.

Template:Breaking row

Natural generation

Empty barrels can generate naturally in fisher cottages in Minecraft:villages. Up to 3 barrels can generate in a village fisher cottage.

In Minecraft:trial chambers, barrels containing loot can be found in the corridors, while empty barrels generate beneath Minecraft:hoppers at chamber entrances.

Generated loot

Template:LootChestItem

Crafting


Template: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

File:Barrel GUI.png
The GUI of the barrel.

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 Template:Control 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 Template:Key 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 Template:Key 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 Template:Cmd commandTemplate:Only (for example, to label a barrel at (0,64,0) as "Bonus Barrel!", use Template:Cmd).

Template:IN, a barrel can be "locked" by setting its lock tag using the Template:Cmd 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

Template:Main 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 Minecraft:job site block.

Fuel

Barrels can be used as a fuel in Minecraft:furnaces, smelting 1.5 items per block.

Piglins

Minecraft:Piglins become hostile toward players who open or break barrels.

Sounds

Generic

Template:Sound table/Block/Wood

Unique

Template:Edition Template:SoundTable

Template:Edition: Template:SoundTable

Data values

ID

Template:JE: Template:ID table Template:ID table

Template:BE: Template:ID table Template:ID table

Block states

Template:See also

Template:JE: Template:Bst Template:Bst

Template:BE: Template:Bst Template:Bst

Block data

A barrel has a block entity associated with it that holds additional data about the block.

Template:JE: Template:See also

<section begin="block data" />

<section end="block data" />

Template:BE:

See Minecraft:Bedrock Edition level format/Block entity format.

Videos

Template:Yt

History

Template:See asset history

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

PlayStation 4 Edition

Template:HistoryTable

Issues

Template:Issue list

Trivia

File:Alex wearing Barrel.png
Alex wearing a barrel


Gallery

Render

Close

Template:JE

Template:BE

Open

Template:JE

Template:BE

Mojang screenshots

In other media

External links

Navigation

Template:Navbox blocks

Minecraft:cs:Sud Minecraft:de:Fass Minecraft:es:Barril Minecraft:fr:Tonneau Minecraft:it:Barile Minecraft:ja:樽 Minecraft:ko:통 Minecraft:lzh:木桶 Minecraft:pl:Beczka Minecraft:pt:Barril Minecraft:ru:Бочка Minecraft:uk:Діжка Minecraft:zh:木桶