Cake

In Minecraft redstone, a cake acts as a compact, non-container power source when read by a redstone comparator. An uneaten cake outputs a signal strength of 14, and each slice eaten reduces the output by 2. Because it has no GUI and cannot be retrieved once placed, it is primarily used for fixed analog signal references and one-time player input triggers.

Comparator-Readable BlocksBeginnerComparator logicSignal strengthBlock update detector (BUD)

How Cake Works with Comparators

A placed cake does not emit redstone power on its own, nor can it be read through a solid block like a chest or barrel. However, placing a redstone comparator directly against a cake causes the comparator to output a signal strength proportional to the number of slices remaining.

A cake tracks its state using the bites block state, ranging from 0 (uneaten) to 6 (one slice left). Each slice is worth 2 signal strength:

  • 0 bites (7 slices left): Signal strength 14
  • 1 bite (6 slices left): Signal strength 12
  • 2 bites (5 slices left): Signal strength 10
  • 3 bites (4 slices left): Signal strength 8
  • 4 bites (3 slices left): Signal strength 6
  • 5 bites (2 slices left): Signal strength 4
  • 6 bites (1 slice left): Signal strength 2
  • Fully eaten (block disappears): Signal strength 0

Slices are always consumed starting from the west side and progressing inward toward the east. Because eating cake has no eating animation, a hungry player can consume slices at a rate of one slice per tick, allowing rapid signal stepped decreases.

Placement, Candles & Support Rules

To use a cake in a circuit, you must place it on top of a solid block. It can also be placed on top of a bottom slab, where it will appear to float half a block above the slab surface. You can place blocks (including another cake) directly on top of a cake by sneaking while placing.

Using a candle on an uneaten cake (bites=0) creates a candle cake. If illuminated with flint and steel, a fire charge, or a flaming projectile, it emits a light level of 3. Taking a bite out of a candle cake immediately pops the candle off as an item drop and reduces the cake to 6 slices.

Like torches, a cake occupying the block space below a falling block (such as sand or gravel) will break the falling block into an item drop when it lands on the cake.

Common Redstone Uses

  • Even-Numbered Signal Reference: Technical builders use cakes paired with comparators to supply a constant, lag-free even signal strength (14, 12, 10, 8, 6, 4, or 2) into the side of another comparator without needing containers full of items.
  • Block Update & Observer Triggers: Eating a slice changes the cake's bites block state (or removes the candle from a candle cake), which can be detected directly by an observer for secret traps or hidden bases.
  • Silent Secret Inputs: Because eating cake produces no eating sound and requires no GUI to open, it makes a stealthy input trigger for hidden doors—though the player must have less than full hunger to interact with it, and the cake must eventually be replaced after 7 uses.
  • Guaranteed Composting Step: Putting a cake item into a composter is guaranteed to raise the compost level by 1, useful when calibrating composter signal strengths by hand.

Tips & Common Mistakes

  • No Silk Touch Recovery: Once placed, a cake cannot be picked up again even with a Silk Touch tool. Make sure you place it in the final spot before eating slices to calibrate its signal strength.
  • Piston Destruction: Never try to move a cake with a piston. Pushing a cake destroys it completely and drops nothing (though a candle cake will drop its candle).
  • Support Block Dependency: If the block beneath a cake is moved or broken—or if you stack a cake on top of another cake and eat or break the bottom one—the upper cake immediately breaks and vanishes.
  • Odd Signal Strengths: A cake can only output even signal strengths (2 through 14). If your circuit needs an odd signal strength or strength 15, use a composter, cauldron, or lectern instead.

Version history

  1. May 17, 2019For Minecraft's 10th anniversary, the cake model temporarily displayed a white concrete '10' above it.

Frequently asked questions

What signal strength does a full cake give a comparator?
An uneaten cake (7 slices) outputs a redstone signal strength of 14 when read by a redstone comparator. Each slice eaten reduces the signal strength by 2.
Can you pick up a placed cake with Silk Touch?
No. Breaking a placed cake destroys it completely with no drops, even if you use a tool enchanted with Silk Touch. If it is a candle cake, only the candle drops.
Can pistons push cake in Minecraft?
No. Pushing a cake with a regular or sticky piston breaks the cake immediately and drops nothing.
How many slices does a cake have in Minecraft?
A cake has 7 slices (represented by block states bites 0 through 6). Each slice outputs 2 signal strength to a comparator and restores 2 hunger points and 0.4 saturation.

Related components