Cake

Cake is a food block that can be eaten by the player.

Breaking
Once the cake is placed, it cannot be recollected even with the use of Silk Touch.

Trading
Expert-level farmer villagers can sell cake for a single emerald each.

Usage
Unlike most food, cake cannot be eaten as an item in the hotbar. Before being eaten, it must first be placed on top of a solid block.

Each cake has seven "slices"; each use consumes one slice progressing inward from the west. A single slice restores hunger and 0.4 hunger saturation. Eating all seven slices of a cake restores hunger and 2.8 hunger saturation.

Since eating a cake comes with no animation, cake can be eaten at a rate of one slice per tick. Multiple players can eat from the same cake at the same time. $$, eating cake makes no sound, unlike other foods.

As a redstone component, when connected to a comparator, a whole cake emits a signal strength of 14. The signal strength decreases two units with each slice.

Pandas
Some pandas will move toward a dropped cake, to pick up and eat it. Some may not, depending on where you put the cake.

Composting
Placing a cake into a composter raises the compost level by 1.

ID




Block data
$$, cake uses the following data values:

Interaction

 * Because cake is only $7/8$ blocks wide, it is possible to stand on the edge of a block beneath a cake.
 * Cake destroys falling blocks if placed under them, similar to a torch.
 * It is possible to place cake on top of another cake by placing a cake on the ground, then placing another cake on the side of a block above and to the side of the first cake, similar to placing torches on a chest. Eating the lower cake causes the upper cake to disappear, the same as mining out the block of cake it is sitting on.
 * It is also possible to place cakes (or any other block) on top of cakes by sneaking and placing a cake on top of another cake
 * Mobs on top rotate while attempting to move, a pathfinding oversight shared with fences.
 * If cake is placed in a one block deep hole, players can get across the hole without jumping, although a player standing on the cake must jump to get out of the hole.
 * Cake can be used to create a functioning staircase, by placing a cake on each level of a 1 block by 1 block incline. This would be one of the most labor-intensive staircases available, given the requirements to craft a cake, compared to all other possible methods for creating a staircase.

Miscellaneous

 * Cake was added to Minecraft following the ModDB 2010 Indie of the Year Awards. Notch agreed to add cake to Minecraft if it won, which led to a campaign called "The Quest For Cake". Minecraft won 3 of the 7 awards, including the "Indie of the Year" award.
 * Placing a cake makes the same sound as placing wool.
 * The player can place cake on top of a bed, and while sleeping, the cake shows on your screen as if it were on top of your head.
 * The name of the achievement is a reference to the internet meme "The Cake is a Lie", which originated from Valve's game, Portal.
 * On May 17, 2019, for the 10th anniversary of Minecraft, the cake model was changed to display a "10" above it, made of white concrete.
 * $$, only the second slice of cake shows the inside of the cake texture. The rest of the slices show the side of the cake.