How Sticky Pistons Work
When a sticky piston receives a redstone signal, its head extends forward, pushing any entities and up to 12 movable blocks in a straight line. When the redstone signal turns off, the head retracts and pulls the block directly attached to its face back with it. Any additional blocks that were pushed ahead of that attached block are left behind.
Key mechanical rules include:
- Push Limit: If more than 12 blocks are in the path, or if an immovable block (or the top/bottom of the world) blocks the line, the piston will not extend at all.
- Retraction-Only Adhesion: Sticky pistons only hold onto blocks during retraction. A block sitting in front of a sticky piston can be pushed sideways by another piston, and a horizontally oriented sticky piston cannot stop a gravity-affected block like sand from falling past its face.
- Short-Pulse Block Dropping: If a sticky piston receives a short pulse, it finishes extending early and starts retracting. This causes it to drop (leave behind) the block it was pushing, placing the block in its final destination earlier. Conversely, if a sticky piston with an empty face receives a short pulse while a movable block sits 1 block away, it will extend and pull that block back.
- Entity Interaction: Entities in the path of extending blocks are pushed along. If trapped with nowhere to go, solid blocks pushed into a mob's eye height will cause suffocation.
Placement and Powering
Sticky pistons always place with their head facing toward the player. In game data, they track two states: facing (north, east, south, west, up, or down) and extended (true or false). When extended, a technical piston_head block occupies the space in front, and blocks in transit are temporarily converted into a non-solid moving_piston block entity (historically known as block 36).
You can power a sticky piston in several ways:
- Direct Redstone Dust: A redstone dust line pointing directly into the piston.
- Adjacent Powered Blocks: Any strongly or weakly powered solid block directly adjacent to the piston. An upward-facing piston cannot be powered by a block above its head unless it is already extended.
- Power Components: An adjacent redstone torch, observer, or block of redstone.
- Quasi-Connectivity: Sticky pistons can be powered by any powered block one block diagonally or in the space directly above them, even if no redstone touches the piston itself. However, the piston will not actually extend or retract until it receives a block update.
Slime Block and Honey Block Interactions
Pushing or pulling a slime block or honey block with a sticky piston causes any movable blocks directly adjacent (not diagonal) to that slime or honey block to move along with it. Those carried blocks can in turn push other blocks in front of them.
- The 12-block limit still applies to the total number of blocks moved in a single stroke. For example, a 2×2×3 cluster of slime blocks can be pushed or pulled by a sticky piston only if no other movable blocks touch it.
- Glazed terracotta is an exception: it does not move when adjacent slime or honey blocks are moved.
- Slime and honey do not stick to each other, allowing separate moving lines to slide past one another inside compact contraptions.
- A sticky piston pushing a slime block will also bounce any displaced entities in the direction the piston is facing.
- A piston cannot move itself using a slime-block hook attached to its own head, so multi-piston setups are required for self-propelled flying machines.
Common Redstone Circuits
- Piston Doors: Sticky pistons pull wall blocks back and forth or move slime and honey block clusters to open and close hidden passages.
- Block-Dropping Toggles: Feeding a short pulse into a sticky piston drops its attached block 1 block away, and a second short pulse pulls that block back.
- Observer Clocks: Powering a sticky piston with an observer in a feedback setup creates a rapid redstone clock.
- BUD Switches (Block Update Detectors): Powering a sticky piston via quasi-connectivity creates a detector that triggers whenever a neighboring block updates.
- Flying Machines: Combining multiple pistons with slime or honey blocks allows self-propelled contraptions that push and pull their own segments across the world.
Tips, Limitations, and Common Mistakes
- Pistons Are Transparent: Because a sticky piston is a transparent block, a redstone repeater pointing into a piston cannot transfer power through it.
- Watch the Ground Under Slime Blocks: A slime block sitting on the ground attempts to move the floor block beneath itself, which in turn pushes additional ground blocks in the direction of motion. If this exceeds the 12-block limit or hits an immovable obstacle, the piston will fail to move.
- Attached Blocks Detach: Blocks attached to a support block detach and drop as items when moved. Rails are an exception: they re-orient themselves and remain attached as long as they land on top of a solid face of a stationary block, or when both the rail and its support block are moved on two parallel extended pistons.
- Unintended Quasi-Connectivity Lockups: If an upward-facing sticky piston has a block of redstone placed on its head, it extends when powered from the side or back, but will not retract when that power turns off because the redstone block powers the space above it.
