Pixel art illustration of a square cake with white cream frosting and red cherries on top
Minecraft Java Item ID

Cake ID

Cake is a placeable food block that can be eaten 7 times, restoring 2 hunger per slice. It is crafted from milk, sugar, wheat, and eggs.

✓ Verified for Java Edition 26.2
Namespaced item ID minecraft:cake

Cake Item Facts

Maximum stack1
Available inSurvival and Creative
Historical numerical ID354

Historical numerical ID: Reviewed for Java Edition 1.12.2 and earlier.

Give Command for Cake

Copy the current Java Edition command, or open the generator to change the player and quantity.

/give @p minecraft:cake 1

Customize this command →

Historical command for Java 1.12.2 and earlier

Modern namespaced IDs are recommended. This numerical form is only for old Java releases.

/give @p 354 1

About Cake in Minecraft

Cake is a placeable food block that can be eaten 7 times, restoring 2 hunger per slice. It is crafted from milk, sugar, wheat, and eggs.

Cake Command Examples

  • Give 1 to nearest player: /give @p minecraft:cake 1
  • Give 1 to yourself: /give @s minecraft:cake 1
  • Give to a specific player: /give PlayerName minecraft:cake 1
  • Clear from inventory: /clear @p minecraft:cake

How to Get Cake

Craft a Cake from milk buckets, sugar, eggs, and wheat. Place it as a block and eat slices directly from it; unlike most food, it is not eaten from a carried stack.

  1. Prepare milk buckets, sugar, eggs, and wheat.
  2. Craft the Cake at a Crafting Table.
  3. Place it in a safe location, then use it to consume slices.

What Is Cake Used For?

Bucket

Milk buckets are returned as empty buckets after crafting cake.

Bread

Both recipes depend on wheat farming.

Chest

Store ingredients before preparing a larger food build.

Sources and Data Review

Item facts were reviewed for Java Edition 26.2 on .

Related Food & Drinks

Item ID: minecraft:bucket
Item ID: minecraft:bread
Item ID: minecraft:chest
Item ID: minecraft:crafting_table
Item ID: minecraft:golden_apple
Item ID: minecraft:apple