MineToolsminetools.cn · Minecraft Java Tools

Carved Pumpkin command

minecraft:carved_pumpkinEnglish name Carved Pumpkin

Carved Pumpkin (minecraft:carved_pumpkin) can be stacked up to 64.Here are common commands for giving, placing, clearing, and checking. Click "Copy" to use one.

Common Commands

Give the nearest player 1 Carved Pumpkin
/give @p minecraft:carved_pumpkin
Give a stack (64)
/give @p minecraft:carved_pumpkin 64
Give all players
/give @a minecraft:carved_pumpkin
Gold Name
/give @p carved_pumpkin[custom_name={translate:"block.minecraft.carved_pumpkin",color:"gold",italic:false}]

To use a name of your own, replace the translate part with plain text

Equip directly (Helmet Slot)
/item replace entity @p armor.head with minecraft:carved_pumpkin
Place one at your feet
/setblock ~ ~ ~ minecraft:carved_pumpkin
Fill a 5×5 Area
/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:carved_pumpkin

Replaces the block layer beneath you

Clear all Carved Pumpkin from the player
/clear @p minecraft:carved_pumpkin
Check if holding Carved Pumpkin
/execute as @a if items entity @s weapon.mainhand minecraft:carved_pumpkin run title @s actionbar ["",{text:"✔ ",color:"green"},{translate:"block.minecraft.carved_pumpkin"}]
Edit in the Item Generator (name, enchantments, attributes, ...)

Basic Information

Item ID
minecraft:carved_pumpkin
Max Stack Size
64
Equipment Slot
Helmet Slot
Type
Block (placeable)

Enchantments for Carved Pumpkin

Data from the official Minecraft Java 26.3 data. All commands have passed the 26.3 syntax check.