Minecraft wiki entry for Pumpkin, associated text: Dispensers can equip a carved pumpkin on a player, mob or armor stand with an empty helmet slot, within the block the dispenser is facing. It can also place the carved pumpkin as a block, if a snow or iron golem can be spawned after the pumpkin is placed.