Cakes are items you can use to regain your hunger in Minecraft. Unlike most other foods in the game, you cannot eat a Cake directly from your inventory, as you need to place it on top of a solid block first.
A Cake in Minecraft contains 7 slices and each one restores 2 Hunger and gives 0.4 Saturation. Since there is no animation in the act of eating the Cake, you can use the 7 slices almost instantly.
To craft a Cake you need 3 Buckets of Milk, 2 Sugars, 1 Egg, and 3 Wheats. After obtaining them, organize them as follows:
The above ingredients are obtained as follows:
Bucket with Milk: through Cows or Coguvacas. Just use a Bucket (empty) when you’re near them.
Sugar: through any combination of Sugarcane or Honey Jar.
Egg: Eggs are dropped from Chickens every 5-10 minutes.
Wheat: Can be farmed in crops, found in various chests (dungeons, Woodland Mansion, igloos, etc.), or crafted from any combination of Hay Bale.
After crafting, your Cake will look like this:
A partially eaten Cake does not return to inventory. You’ll need to go back to the solid block you placed it on to finish it.
Cakes Attract Pandas. Just place it next to the animal and it will walk towards the food.
Preparing a Cake for the first time earns the achievement “The Lie”.