Try our affiliated browser extension - redirect to BreezeWiki automatically!

Barrel

A barrel is a solid block used to store items. Unlike a chest, it cannot connect to other barrels. It also serves as a fisherman's job site block.

Obtaining

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.

Block Barrel
Hardness 2.5
Tool
Breaking time[A]
Default 3.75
Wooden 1.9
Stone 0.95
Iron 0.65
Diamond 0.5
Netherite 0.45
Golden 0.35
  1. Times are for unenchanted tools as wielded by players with no status effects, measured in seconds. For more information, see Breaking § Speed.

Chest loot

Item Structure Container Quantity Chance
Java Edition
Barrel Village Fisherman's chest 1–3 24.2%

Crafting

Barrels can be crafted using planks and proper wooden slabs, not petrified oak slabs.

Ingredients Crafting recipe
Any Planks +
Any wood Slab

Usage

Barrels can be moved by pistons,‌[Bedrock Edition only] 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

Barrel GUI

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 interface, use the 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 ⇧ 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.‌[Java Edition only] To exit the barrel interface, use the 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 anvil before placing it or by using the /data command‌[Java Edition only] (for example, to label a chest at (0,64,0) as "Bonus Barrel!", use /data merge block 0 64 0 {CustomName:'"Bonus Barrel!"'}).

In Java Edition, a barrel can be "locked" by setting its Lock tag using the /data command. If a barrel's Lock tag is not blank, the barrel cannot be opened unless the player is holding an item with the same name as the Lock 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 /data merge block 0 64 0 {Lock:"Barrel Key"}.

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" sounds.

Piglins

Piglins become hostile toward players who open or break barrels.

Sounds

Generic

Java Edition:

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
Block brokenBlocksOnce the block has brokenblock.wood.breaksubtitles.block.generic.break1.00.816
Block placedBlocksWhen the block is placedblock.wood.placesubtitles.block.generic.place1.00.816
Block breakingBlocksWhile the block is in the process of being brokenblock.wood.hitsubtitles.block.generic.hit0.250.516
None[sound 1]Entity-DependentFalling on the block with fall damageblock.wood.fallNone[sound 1]0.50.7516
FootstepsEntity-DependentWalking on the blockblock.wood.stepsubtitles.block.generic.footsteps0.151.016
  1. a b MC-177082

Bedrock Edition:

Unique

Java Edition:

SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
Barrel closesBlocksWhen a barrel closesblock.barrel.closesubtitles.block.barrel.close0.50.9-1.016
Barrel opensBlocksWhen a barrel opensblock.barrel.opensubtitles.block.barrel.open0.50.9-1.016
Fisherman worksFriendly CreaturesRandomly while a fisherman is workingentity.villager.work_fishermansubtitles.entity.villager.work_fisherman1.00.8-1.216
Chest locked[sound 1]BlocksWhen a player attempts to open a barrel locked using the  Lock tagblock.chest.locked[sound 1]subtitles.block.chest.locked[sound 1]1.01.016
  1. a b c MC-98316 — Wrong subtitles caused by missing distinction

Bedrock Edition:

SoundSourceDescriptionResource locationVolumePitch
BlocksWhen a barrel closesblock.barrel.close1.01.0
BlocksWhen a barrel opensblock.barrel.open1.01.0
BlocksRandomly while a fisherman is workingblock.barrel.open1.01.0

Data values

ID

Java Edition:

NameIdentifierFormBlock tagsTranslation key
BarrelbarrelBlock & Itemguarded_by_piglinsblock.minecraft.barrel
NameIdentifier
Block entitybarrel

Bedrock Edition:

NameIdentifierNumeric ID FormItem ID[i 1]Translation key
Barrelbarrel458Block & Giveable Item[i 2]Identical[i 3]tile.barrel.name
  1. ID of block's direct item form, which is used in savegame files and addons.
  2. Available with /give command.
  3. The block's direct item form has the same id as the block.
NameSavegame ID
Block entityBarrel

Block states

See also: Block states

Java Edition:

Name Default value Allowed values Description
facingnorthdown
east
north
south
up
west
The direction the barrel is facing.
openfalsefalse
true
Whether the barrel is currently being looked at by a player; changes the texture on the top face.

Bedrock Edition:

NameMetadata Bits Default value Allowed valuesValues for
Metadata Bits
Description
facing_direction0x1
0x2
0x4
00
1
2
3
4
5
0
1
2
3
4
5
The direction the barrel is facing.
  • 0:Down facing barrel
  • 1:Up facing barrel
  • 2:East facing barrel
  • 3:West facing barrel
  • 4:South facing barrel
  • 5:North facing barrel
open_bit0x800
1
0
1
Whether the barrel is currently being looked at by a player; changes the texture on the top face.

Block data

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

Java Edition:

  • Block entity data
    • Tags common to all block entities
    •  CustomName: Optional. The name of this container in JSON text component, which appears in its GUI where the default name ordinarily appears.
    •  Items: List of items in the container.
      • : An item, including the slot tag. Barrel slots are numbered 0-26, 0 starts in the top left corner.
        • Tags common to all items
    •  Lock: Optional. When not blank, prevents the container from being opened unless the opener is holding an item whose name matches this string.
    •  LootTable: Optional. Loot table to be used to fill the barrel when it is next opened, or the items are otherwise interacted with.[note 1]
    •  LootTableSeed: Optional. Seed for generating the loot table. 0 or omitted uses a random seed.[note 1]
  1. a b Both loot table tags are removed once the items have been generated.

Bedrock Edition:

See Bedrock Edition level format/Block entity format.

History

Java Edition
1.1418w44a Added barrels.
Barrels have been added to creative inventory.
Barrels currently have the inventory of a chest.
Barrels can currently be filled only by hoppers and droppers.
Barrels can currently be emptied only by hoppers.
Barrels currently do not drop the items they contain when broken.
18w47bThe facing=south block state texture of barrels has been changed.[more information needed]
18w48aBarrel items are now found in chests in village fisher cottages.
Barrels can now generate naturally in plains villages.
18w49aBarrels can now generate naturally in savanna and snowy villages.
18w50aBarrels can now generate naturally in desert and taiga villages.
Barrels now act as a storage unit.
Barrels can now be used in tight spaces, even if there is a block above it, unlike a chest.
Barrels can now be crafted using 6 wood planks and 2 wood slabs.
19w03aSounds have been added for barrels.
19w07a An open block state has been added to barrels.
19w11aBarrels now serve as fisherman villagers' job site block.
1.1620w06aCrimson planks and warped planks can now be used to craft barrels.
20w15aPiglins now become hostile toward players who open or break barrels.
1.18Pre-release 5Bottom texture was changed.
1.1922w11aMangrove planks can now be used to craft barrels.
Bedrock Edition
1.9.0beta 1.9.0.2 [verify] Added barrels.
Barrels have unused textures titled "fish barrel."
Barrels have unused textures titled "empty barrel."
A barrel can be used to smelt 1.5 items in a furnace.
1.10.0beta 1.10.0.3A crafting recipe has been added to barrels, which is different compared from Java Edition's crafting recipe.
Barrels now generate in fisher cottages in villages.
1.11.0beta 1.11.0.1The functionality of barrels has been added.
1.18.10beta 1.18.10.22Changed the bottom texture to match the spruce planks.
1.20.10beta 1.20.10.20The crafting recipe for barrels now use planks instead of sticks to match Java Edition.
PlayStation 4 Edition
1.91 Added barrels.

Issues

Issues relating to "Barrel" are maintained on the bug tracker. Report issues there.

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.
    • While wearing a barrel, the player's vision becomes largely obstructed and they can see only through a narrow window; when sneaking, it will disguise the player as a barrel block.

Gallery

References

External Links