Minecraft wiki entry for Zombie, associated text: If a zombie wearing a pumpkin or jack o'lantern‌[Java Edition only] is killed using a weapon enchanted with Looting, there is a chance equivalent to the level of Looting used to drop the pumpkin or jack o'lantern, up to a maximum of a 3% chance of a drop.