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
imported>Rout
Data values: oops clicked wrong section edit
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision by the same user not shown)
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 [[Minecraft:fisherman]]'s [[Minecraft: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 fisherman's 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.


{{breaking row|horizontal=1|Barrel|Axe}}
{{MC/Breaking row|horizontal=1|Barrel|Axe}}


=== Natural generation ===
=== Natural generation ===
Empty barrels can generate naturally in fisher cottages in [[Minecraft:village]]s. Up to 3 barrels can generate in a village fisher cottage.
Empty barrels can generate naturally in fisher cottages in 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:hopper]]s at chamber entrances.
In 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 ===
{{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 {{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.
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 {{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 {{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>}}).


{{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>}}.
{{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 ===
{{main|Job site block}}
{{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 [[Minecraft: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.


=== Fuel ===
=== Fuel ===
Line 68: Line 68:


=== Note blocks ===
=== Note blocks ===
Barrels can be placed under [[Minecraft:note block]]s to produce "bass" sounds.
Barrels can be placed under note blocks to produce "bass" sounds.


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


=== Unique ===
=== Unique ===
{{edition|java}}
{{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 {{nbt|compound|lock}} tag
|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:
}}
}}


{{edition|bedrock}}:
{{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 ===
{{see also|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}}:
{{see also|Block entity format}}
{{MC/See also|Block entity format}}
<section begin="block data" /><div class="treeview">
<section begin="block data" /><div class="treeview">
* {{nbt|compound}} Block entity data
* {{MC/Nbt|compound}} Block entity data
** {{nbt inherit/blockentity}}
** {{MC/Nbt inherit/blockentity}}
** {{nbt inherit/nameable|indent=**}}
** {{MC/Nbt inherit/nameable|indent=**}}
** {{nbt inherit/lockable|indent=**}}
** {{MC/Nbt inherit/Lockable|indent=**}}
** {{nbt inherit/lootable|indent=**}}
** {{MC/Nbt inherit/Lootable|indent=**}}
** {{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|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|compound}}: An item, including the slot tag. Barrel slots are numbered 0-26, 0 starts in the top left corner.
*** {{MC/Nbt|compound}}: An item, including the slot tag. Barrel slots are numbered 0-26, 0 starts in the top left corner.
**** {{nbt inherit/item|indent=****}}
**** {{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 ==
{{yt|di1fNQ94fcM}}
{{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 {{cd|1=facing=south}} [[Minecraft:block state]] texture of barrels has been changed.}}
|{{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 [[Minecraft:village]]s in [[Minecraft:plains]].}}
|Barrels can now generate naturally in villages in plains.}}
|{{HistoryLine|||dev=18w49a|Barrels can now generate naturally in [[Minecraft:savanna]] and [[Minecraft:Snowy Tundra|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 [[Minecraft:desert]] and [[Minecraft: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|[[Minecraft:Sound]]s 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 {{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 {{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|[[Minecraft:Crimson planks]] and [[Minecraft: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 [[Minecraft:player]]s who open or [[Minecraft:Breaking|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|[[Minecraft: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|[[Minecraft: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|[[Minecraft: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 [[Minecraft: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 [[Minecraft: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 [[Minecraft: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 {{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 {{MC/El|je}}'s crafting recipe.
|Barrels now generate in fisher cottages in [[Minecraft:village]]s.}}
|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}} [[Minecraft: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 [[Minecraft: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 346: Line 346:
=== Mojang screenshots ===
=== Mojang screenshots ===
<gallery>
<gallery>
File:LadyAgnes savanna village.jpg|First image of barrels in a [[Minecraft:savanna]] [[Minecraft:village]].
File:LadyAgnes savanna village.jpg|First image of barrels in a savanna 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 [[Minecraft:blast furnace]], [[Minecraft:smoker]], and a barrel.
File:Blast Furnace Smoker & Barrel.jpg|A blast furnace, [[Minecraft:smoker]], and a barrel.
File:Barrel-ingame.jpeg
File:Barrel-ingame.jpeg
</gallery>
</gallery>
Line 355: Line 355:
<gallery>
<gallery>
File:Barrel-header.jpeg|A stack of barrels.
File:Barrel-header.jpeg|A stack of barrels.
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: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 [[Minecraft: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|[[Minecraft:Cubeez]] of a barrel.
File:Cubeez 2025 Barrel.png|Cubeez of a barrel.
File:A Barrel.png|Barrels as they appear in {{AMCM}}.
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]]
Line 379: Line 379:
[[Category:Readable by comparators]]
[[Category:Readable by comparators]]


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

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

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 {{#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

  1. 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

  1. 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

  1. 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

  1. 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" />

  1. REDIRECT Template:Nbt inherit/lockable
  1. 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).

<section end="block data" />

Bedrock Edition:

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

Videos

  1. REDIRECT Template:YouTube

Template:Redr

History

Template:Hatnote

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

PlayStation 4 Edition

Template:HistoryTable

Issues

Script error: No such module "Issue list".

Trivia

File:Alex wearing Barrel.png
Alex wearing a barrel
  • 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

Java Edition

Bedrock Edition

Open

Java Edition

Bedrock Edition

Mojang screenshots

In other media

External links

Navigation

Wood/Hypha
Stone-based
Template:EnvLink
Upcoming
Template:EnvLink
Template:EnvLink
Ore/Mineral
Decorative
Partial Blocks
Dyeable/Dyed
Lighting
Template:Els only
Sediment/Soil
Misc. rock
Ore/Mineral
Plant
Flower
Fungus & Related
Fauna & Related
Aquatic
Sculk
Fluid & Related
Non-physical
Interactable
Utilizable
Redstone/
Mechanical
Template:Els only
April Fools 2013
April Fools 2016
April Fools 2020
April Fools 2022
April Fools 2023
April Fools 2024
April Fools 2025
April Fools 2026

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:木桶