Pumpkin

"Part food! Part hat! All block."

- Alex Wiltshire

Pumpkins are blocks that appear on grass blocks, generated in random clusters in most Overworld biomes, though somewhat rarely. Pumpkins have the same texture on all 4 sides.

Carved pumpkins are carved versions of pumpkins that can be worn or used to spawn golems. These can be made by placing a pumpkin on the ground and then using shears on them.

Obtaining
Pumpkins can be mined with anything, but axes are the quickest.

When a pumpkin is pushed by a piston, it breaks and drops as an item.

A carved pumpkin (and 4 pumpkin seeds) is obtained by shears on an uncarved pumpkin. Once carved, a pumpkin cannot be changed back to uncarved. This will change the rotation of the top texture.

Natural generation
Pumpkins can naturally generate with the terrain in any biome in the Overworld, requiring only a grass block with air above (clear of any plants such as flowers or grass) and can generate whether or not that grass block has a layer of snow cover. Practically speaking, this means that the occurrence of pumpkins in stony or sandy biomes, or in very grassy biomes with few clear grass blocks, is comparatively rare.

Pumpkins naturally generate in stem farm rooms in woodland mansions.

4 pumpkins generate naturally in woolen tents in pillager outposts.

Pumpkins generate naturally in taiga and snowy taiga villages.

Carved pumpkins generate in rail rooms in woodland mansions.

Carved pumpkins also generate in pillager outposts as a part of targets/scarecrows.

Farming
Pumpkin farming strategies parallel those of melons. Planted pumpkin seeds grow a central stem that, after maturing, generates pumpkins randomly on adjacent vacant dirt/grass/farmland. If a pumpkin is harvested without also cutting the central stalk, another pumpkin will generate afterwards without requiring replanting or waiting for the stalk to mature again. If a carved pumpkin is desired, simply use the shears on the pumpkin on the ground, and then harvest it as normal.

Pumpkin stems take around 10 to 30 minutes to fully develop. Bone meal can be used on pumpkin stems to become fully-grown, but will not produce a pumpkin immediately.

Mobs
Zombies, zombie villagers, skeletons, wither skeletons, drowned, husks, strays, and zombie pigmen have a chance of wearing a carved pumpkin if they spawn during Halloween (October 31). If a mob wearing a carved pumpkin is killed using a tool enchanted with Looting, there will be a chance equivalent to the level of Looting used to drop the carved pumpkin, up to a maximum of a 3% chance of a drop.

Trading
Wandering Traders can sell a pumpkin for one emerald.

Helmet
A carved pumpkin can be equipped as a helmet without any actual armor value, but will instead function as a mask that allows the player to look at endermen without provoking an attack. When worn, they limit the player's viewing area to a mask pattern that resembles the carved pumpkin's carved face.

Dispensers
Dispensers will equip a carved pumpkin on a player, mob or armor stand with an empty helmet slot, within the block the dispenser is facing.

Building golems
Carved pumpkins can be used to make snow golems and iron golems as shown below. Snow golems require snow blocks for their bodies, while iron golems require iron blocks. The carved pumpkin must be placed last or the golem will not spawn. While building an iron golem or snow golem, the carved pumpkin can be placed sideways or upside down and the golem being built will still spawn.

Placement
Pumpkins can be placed without a block under them. When placed, carved pumpkins automatically face the player. Pumpkins can be placed on a transparent block.

Trading
Apprentice-level Farmer villager buy 6 pumpkins for an emerald as part of their trades.

Apprentice-level Farmer villagers have a $2/3$ chance to buy 6 pumpkins for one emerald.

Wandering traders can sell a pumpkin for one emerald.

Enchantments
Pumpkins can receive the following enchantments, but only through an anvil.


 * Curse of Binding
 * Curse of Vanishing

Composting
Placing a pumpkin or carved pumpkin into a composter has a 65% chance of raising the compost level by 1.

Note blocks
Pumpkin can be placed under note blocks to produce didgeridoo sounds.

Block data
In Bedrock Edition, carved pumpkins use the following data values:

Block states
Carved Pumpkin

Trivia

 * The carved pumpkin is the only headgear that obstructs the player's view.
 * Pumpkins, mob heads and banners are the only block that can be placed in an armor slot without commands.
 * Each chunk has a $1/32$ chance to generate a pumpkin patch (require grass block)
 * Making naturally generated pumpkins rarer than diamond ore.