MineToolsminetools.cn · Minecraft Java Tools

Cookie command

minecraft:cookieEnglish name Cookie

Cookie (minecraft:cookie) can be stacked up to 64.Restores 2 hunger when eaten.Here are common commands for giving, clearing, and checking. Click "Copy" to use one.

Common Commands

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

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

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

Basic Information

Item ID
minecraft:cookie
Max Stack Size
64
Hunger
2 (Saturation: 0.4)
Type
Item

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