Barrel

A barrel is a fisherman's job site block, used to store items. It functions like a single chest although it requires no air space above it to be opened.

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

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

Usage
Barrels can be moved by pistons, water and lava flow around barrels without affecting them. Lava can create fire in air blocks next to barrels as if the barrel was flammable, but the barrel does not actually catch fire and can't be burned.

Container


Barrels have a container inventory with 27 slots, which is the same as a single chest. Unlike chests, a barrel can be placed below a solid block and still be able to be opened. They can be filled by droppers and both filled and emptied by hoppers. When broken, barrels drop the contents of the container and the barrel item itself.

To open the barrel GUI, use the control. To move items between the barrel inventory and the player inventory or hotbar while the barrel GUI is open, drag or shift-click the items. Holding 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. To exit the barrel GUI, use the control.

By default, the GUI of a barrel is labeled "Barrel". A barrel's GUI label can be changed by naming the barrel in an anvil before placing it or by using the command (for example, to label a chest at (0,64,0) as "Bonus Barrel!", use ).

$$, a barrel can be "locked" by setting its  tag using the  command. If a barrel's  tag is not blank, the barrel cannot be opened unless the player is holding an item with the same name as the   tag's text. 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.

Changing profession
If a village has a barrel that has not been claimed by a villager, any villager who does not have a chosen job site block has a chance to change their profession into a fisherman.‌

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

Note Blocks
Barrels can be placed under note blocks to produce "bass" sound.

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

ID




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




 * See Bedrock Edition level format/Block entity format.
 * See Bedrock Edition level format/Block entity format.

History
{{History||1.19|smap=22w13oneblockatatime|Barrels, if tossed and land on the player's head, will make the player appear as an upside down barrel with legs, and if you sneak, Mobs will not recognize you as a player, instead as a barrel. In this state, you can not move and have an outline like normal blocks.

{{History|bedrock}} {{History||1.9.0|snap=beta 1.9.0.2| {{verify|Did the open texture exist at this time? I recall this being a later addition}} Added barrels. {{History||1.10.0|snap=beta 1.10.0.3|A crafting recipe has been added to barrels, which is different compared from {{el|je}}'s crafting recipe. {{History||1.11.0|snap=beta 1.11.0.1|The functionality of barrels has been added.}} {{History||1.18.10|snap=beta 1.18.10.22|Changed the bottom texture to match the spruce planks.}}
 * Fish Barrel (texture) BE1.png Barrels have unused textures titled "fish barrel."
 * Empty Barrel (texture) BE1.png Barrels have unused textures titled "empty barrel."
 * A barrel can be used to smelt 1.5 items in a furnace.}}
 * Barrels now generate in fisher cottages in villages.}}

{{History|PS4}} {{History||1.91| Added barrels.}} {{History|foot}}