Bucket

Buckets are tools used to carry water, lava, milk and fish (cod, pufferfish, salmon, and tropical fish only.)

Usage
Empty buckets can be used to "pick up" a water or lava source block by pressing item on a block of the relevant type.

Similarly one can press when looking at a cow or mooshroom to fill a bucket with milk.

Empty buckets can also be used to collect fish in buckets.

A bucket filled with a source block can then be used to place its source block contents in the empty block next to the side of the block the player is currently looking at, or replacing the block looked at for some replaceable blocks.

A bucket full of milk can only be emptied by drinking it or by using it in crafting a recipe (like cake).

An empty bucket can be used to empty a cauldron with water, filling the bucket with water. This does not work with dispensers.

An empty bucket can be used to empty a cauldron with lava, filling the bucket with lava. This does not apply to Java Edition.

A special usage of the bucket in bedrock edition exists. One can, with the right tools, edit the contents of a bucket to any entity with custom data. Using this it is possible to create a villager with custom trades, a command block minecart with pre made commands, ect. This can be useful for realm owners but can also be used harmfully by hacked client users to use commands on a realm.

ID




Item data
$$, buckets usually use data values to determine contents. Once used, each data value is set to 0 (Empty Bucket). If no data value is provided, the data value is 0.

However, if you pick up a fish with a bucket, the nbt data of the fishbucket will contain the full entity data of the fish picked up.

Trivia

 * An empty bucket fills with water when placed in the fuel slot of a furnace while smelting a wet sponge.