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
bitesblock 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
- May 17, 2019For Minecraft's 10th anniversary, the cake model temporarily displayed a white concrete '10' above it.
