How to make a cake in Minecraft, and why a whole one loses to bread
The 26.3 cake recipe: three milk buckets that come back empty, any of the three eggs, and seven slices with less saturation than one loaf of bread.
A cake is nine ingredients on a crafting table, and three of them are returned to you. Read from the Java 26.3 datapack (data/minecraft/recipe/cake.json), the recipe is shaped:
A A A A = minecraft:milk_bucket
B E B B = minecraft:sugar
C C C E = #minecraft:eggs C = minecraft:wheat
→ 1 × minecraft:cake
What you actually spend
| ingredient | how many | where it comes from |
|---|---|---|
| milk bucket | 3 | use an empty bucket on a cow, mooshroom or goat |
| sugar | 2 | 1 sugar cane → 1 sugar, or 1 honey bottle → 3 sugar |
| egg | 1 | any chicken |
| wheat | 3 | a farm; seeds come from breaking grass |
The milk buckets carry a crafting remainder, so the grid hands back three empty buckets when you take the cake. You need three buckets to start (9 iron ingots if you craft them), but you never lose them, which makes a cake cheaper than it looks: the real cost is 3 wheat, 2 sugar cane and 1 egg.
Any egg works
The recipe asks for the tag #minecraft:eggs, not the item minecraft:egg. In 26.3 that tag holds three items:
minecraft:egg— laid by temperate chickensminecraft:brown_egg— laid by warm chickens (deserts, jungles, savannas, badlands, the Nether)minecraft:blue_egg— laid by cold chickens (snowy biomes, taigas, windswept hills)
So the coloured eggs from chicken variants are not a problem for cake. A brown egg bakes the same cake as a white one.
Seven slices, instantly
A placed cake is eaten by using it with an empty hand: no eating animation, one slice per click, seven slices in total. Each slice restores 2 hunger (one drumstick) and 0.4 saturation. You can only take a slice while hungry — the only exception is Creative mode.
| food | hunger | saturation |
|---|---|---|
| one cake slice | 2 | 0.4 |
| whole cake (7 slices) | 14 | 2.8 |
| one bread (3 wheat) | 5 | 6.0 |
That last row is the surprise. The same three wheat baked as bread give more saturation than the entire cake. Saturation is what keeps your hunger bar from draining, so a cake is a great way to refill 14 hunger points at a party table and a poor way to stay full on an expedition. It also stacks to only 1, where bread stacks to 64.
Placing it, and why you can never pick it up again
A cake needs a solid block underneath. Remove that block and the cake breaks — and a broken cake drops nothing. loot_table/blocks/cake.json has no pools at all, so no tool and no enchantment (Silk Touch included) returns it. Place it where you mean to eat it.
Candle cakes
Use any candle on an uneaten cake (the game checks for zero bites) to make a candle cake; there are 17 of them, one per candle colour plus the plain candle. Light it with flint and steel or a fire charge. Clicking the lit candle with an empty hand blows it out, and eating from a candle cake takes a slice and pops the candle off — the candle cake's loot table drops exactly one candle and nothing else.
Redstone and composting
A comparator reading a cake outputs (7 − slices eaten) × 2: 14 for a whole cake, falling by 2 per slice down to 2 for the last one. And a cake in a composter always adds a layer — it shares that 100% chance only with pumpkin pie, which makes it the most expensive sure thing you can compost.
A steady cake supply is really four farms: wheat, sugar cane, a cow pen and a chicken pen. The Farm & Breeding Planner sizes the crop plots by growth rate and the pens by breeding food and cooldown, so the ingredients run out at the same pace.