Cake is a crafted food item that is placed in the world before a player eats it. The inventory item has the identifier minecraft:cake. Eating uses the placed cake, rather than consuming the item directly from the hand.
Use a crafting table with three milk buckets across the top row, sugar on either side of an egg ingredient in the middle row, and three wheat across the bottom row. The result is one cake. Mojang’s Bedrock recipe returns three empty buckets after crafting.
The milk ingredient is a filled bucket, not an empty bucket. In the Bedrock recipe, the centre ingredient is defined by the egg tag. See Crafting for grid use and Farming for producing ingredients.
Place the cake on top of a block, then use the interaction control on the placed cake to eat from it. The inventory item and its placed form have different roles: the item is carried and crafted, while eating takes place in the world.
The stack evidence cited here is specifically Java 26.1 item data, which limits cake to one per slot. It is not a verified stack limit for Bedrock or a separate measurement for Java 26.3. The ingredient tag and returned buckets described above come from Mojang’s Bedrock recipe. Exact nutrition, saturation and serving counts are not specified here.