Minecraft wiki entry for Superflat_survival, associated text: Carved Pumpkin - Only use as a block, also unlike pumpkin, they can't turn into pumpkin seeds.
Jack o'Lantern‌[Java Edition only] - Can be using as a light source.