Barrel

Barrels are tile entity storage blocks generating in villages.

Natural generation
Barrels can generate naturally in fisher cottage in plains, savanna, and snowy tundra villages.

Usage
Barrels have the inventory of a chest. They have a GUI similar to that of chests as well, but can only be accessed in spectator mode; they can be filled by droppers and both filled and emptied by hoppers. Barrels currently do not drop the items they contain when they are broken.

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