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 → View crafting recipe →

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

Give command syntax by version

Java 1.13+
/give @p minecraft:cake 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 354 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:cake 1
Same namespaced ID (namespace optional)

Rows appear only when the underlying value is verified: the Java 1.8–1.12.2 row requires a reviewed historical numerical ID, and the Bedrock row appears only when this exact namespaced ID exists in the Bedrock registry.

How to Get Cake

Crafting Recipe

Milk BucketMilk BucketMilk Bucket
SugarBrown EggSugar
WheatWheatWheat

Crafting table recipe — makes 1 × Cake.

Milk BucketMilk BucketMilk Bucket
SugarBlue EggSugar
WheatWheatWheat

Crafting table recipe — makes 1 × Cake.

Milk BucketMilk BucketMilk Bucket
SugarEggSugar
WheatWheatWheat

Crafting table recipe — makes 1 × Cake.

More Ways to Get It

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.

Prefer commands? Jump back to the give command matrix above to get Cake instantly.

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

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.

Cake FAQ

What is the item ID for Cake?

The item ID for Cake is minecraft:cake. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.

What is the numerical ID for Cake?

Cake has the historical numerical ID 354, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:cake instead.

How do I give myself Cake in Minecraft?

Open the chat window and run /give @p minecraft:cake 1 to give the nearest player one Cake. Replace @p with a player name to target someone else.

How many Cake can stack in one slot?

Cake stacks up to 1 per inventory slot.

How do you craft Cake?

Cake is crafted on a crafting table with 3 milk buckets, 2 sugars, 1 brown egg and 3 wheats, which yields 1 Cake.

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:honey_bottle
Item ID: minecraft:apple
Item ID: minecraft:cooked_beef