Pistons are blocks capable of pushing most blocks, depending on the direction they are facing.
Crafting
| Ingredients | Input » Output |
|---|---|
| Wooden Planks + Cobblestone + Iron Ingot + Redstone (Dust) |
Template:Grid/Crafting Table |
As a Crafting ingredient
| Ingredients | Input » Output | Description |
|---|---|---|
| Slimeball + Piston | Template:Grid/Crafting Table | Used to push/pull blocks. |
Functionality
- Pistons when placed always faces the player.
- Pistons are redstone triggered. When powered, its wooden surface extends outwards by 1 block, pushing up to a maximum of 12 blocks.[1]
- When going back to the unpowered state, it does not pull back any block. See Sticky Piston for that.
- Its wooden surface can also push players, mobs and other entities on the floor by 1 block if they are in the way. However, if there is no space for the player/mob/entity to be pushed, the extended piston head will just pass through them without harm.
- The extended piston head is considered solid and transparent (just like Glass). If a piston head extends into a player/mob this way, they will not suffocate, and the player/mob can move out of it but not back into it.
- Similarly, if a block pushed by a piston is pushed into a player/mob, the player/mob will get pushed if there is space. If there is no space, the block will start to occupy the same space as the player/mob and cause suffocation if the block is opaque.
- When blocks are pushed by a piston, they are momentarily non-solid and cause any players/items on the moving block to fall through the moving block.
- The piston's head cannot crush players/mobs, only push them into another trap or cause suffocation at best.
- Pistons can be used to toggle fluids flows like a flood gate by extending into or retracting from the space where water will flow through.
- Pistons can push Minecarts and boats. Note that the if the minecart is on a rail, the rail will also get pushed.
Pushing blocks
- Some blocks cannot be pushed by Pistons and the piston head will not extend:
- Obsidian, Bedrock to avoid abuse
- Blocks with extra data (tile entities) attached - note block, chest, furnace, dispenser, monster spawner.
- Extended pistons (both sticky and normal) because moving blocks are temporarily stored as tile entities.[2][3]
- Pumpkins and Jack 'o' Lanterns are turned back into items when pushed. (If trying to create extendable/retractable lighting, you can use Glowstone instead.)
- Pistons cannot push water or lava, only obstruct it. A piston head extending into a water or lava source block will destroy the source block.
- Pistons cannot push blocks that are "attached to a block” such as levers, torches, redstone, signs, etc. They will be detached and drop as an item.
- Blocks that are attached to pushed blocks will be broken off unless the block which is now under/behind them is also acceptable; for example, torches can be placed on a "self-repairing" cobblestone structure.
- As an exception, rails can be pushed by pistons, but will not retain their original orientations and snap into the new orientations at the new position. If the new position of the rail does not have an opaque block below it, it will dislodge back into item form.
Powering Pistons
- Pistons can be powered horizontally through single blocks by way of either redstone or repeaters
- Pistons can be powered by a torch directly adjacent to them (above, below, or to the side)
- Pistons can be powered by a torch from below when said torch would power the block the pistons are resting on (just like powered rails)
- Both redstone dust and repeaters will power the piston directly in front of it as well as a second piston below this piston. This allows a wall made completely of pistons to be constructed.
- When a piston receives power from one side, and then receives power at the same time the other side loses power, it will act as though it momentarily lost power
- When toggled between on and off rapidly with a gravity affected block (such as sand) above it, a piston will eventually break the block, which can be picked up again.
- A repeater cannot transfer power through a piston.
Common Usage
- Pistons are commonly used to push/pull blocks to simulate opening and closing doors, gates and other traps.
- Pistons can be used to make self-repairing bridges by using cobblestone from a cobblestone generator. The same principle can be used to make a self-repairing house.
- When used in conjunction with redstone repeaters, pistons can make a redstone piston clock capable of almost any speed.
- A piston powered clock linked up to a square of blocks designed to be pushed round in a loop can create an endless loop of data. Combined with the inability of transparent blocks (such as glass) to transmit power, a redstone repeater can be run into the pushed data block to optionally perform a function on the other side. Scale this up into 3 dimensions and you get an array of data looping round, being tested to see if it transmits the power or not. This can be used to create redstone sign outputs, to play musical sequences, and a countless list of other things.[4]
History
The original piston was a mod posted on the Minecraft Forums by Hippoplatimus.[5] The code for that version was given to Jeb, who then worked on shortly implementing them into vanilla Minecraft. However, due to his work on the Pocket Edition, pistons were delayed, and were not released for the 1.5 update nor for the 1.6 update. Finally, when the Pocket Edition was good enough to show at E3, Jeb went back to work on the PC version of Minecraft and pistons were finally added in version 1.7, including Sticky Pistons.
Differences
Differences of the vanilla type in comparison to the mod version:
Up-sides:
- Pistons now have a much lowered ingredient values, so building them is much, much cheaper.
- "Upgrading" a piston into a sticky piston is possible with a piston and a slime ball on top of it in the crafting table.
- Pistons can no longer be accidentaly reoriented by an unintentional right click.
Down-sides:
- Can no longer thrust blocks and items upwards and send them flying.
- Pistons must be removed and placed again to change their orientation, rather than just right clicking.
- Slimes may be difficult to find, and even more difficult to deal with depending on their size.
- Sticky pistons cannot be directly crafted. Instead, two separate crafting operations must be done (ingredients into piston, piston and slimeball into sticky piston).
Bugs
- When attempting to push ice blocks, they will turn into water in their original position, and the piston head will disappear. The piston will return to normal once retracted.
- When powered, both types of pistons cannot power surrounding blocks.
- If two extended pistons are one above the other, the lower one cannot retract until the upper one retracts.[6]
Bed after being attached to a retracting sticky piston
- Beds can be pushed lengthwise with a piston, but if pulled back with a sticky piston the bed will split in half, dropping a bed item (although the bed can still be used.)
- Powering pistons with a redstone torch in some cases seems to always consider the torch as "on", even if powered off.
- When a torch or redstone torch is placed on a piston and the piston is removed, the torch will float in mid-air.
- Rear part of a piston during retracting has no collision: when pistons point down it is possible to glitch through them when they retract[7] and it is also possible to glitch through a retracting piston while walking against it. [8]
- When a sticky piston pulls a door, it becomes a half door attached to the piston.
- A piston attached to a sticky piston may disappear when extended into flowing water.
The piston texture glitch demonstrated.
- Light passes through pistons, both normal and sticky, powered and unpowered of both types.
- When placing a piston on top of another with both facing up and an active redstone power source next to the top most piston, the piston's texture will glitch and all sides of the top most piston will display the wooden part. This also works for the sticky piston.[9]
- If you break the piston arm, it will sometimes drop two pistons.
- Placing a lever 1 block above and to the side of a piston and then activating the lever will cause the game to crash and will crash every time you try to join the world which has this bug.
- When a piston or a sticky piston is placed upwards (with the redstone input being located 1 block bellow) and a rapid pulse signal is applied to the redstone, if the player tries to break the piston or sticky piston with any item, block, tool, or hand, the piston or sticky piston will break, dropping an item, but leaving a breakable piston head in mid-air.[10].
A possible implementation of the piston head glitch.
- You can duplicate all types of pushable blocks (including pistons themselves) using a simple pulsing mechanism, a sticky piston and a simple piston, in 1.7.2. The scheme can be seen here[1].
- If a sticky piston is pulled down by another sticky piston. It will not pull the block it is attached to with it.
Trivia
- Pistons are slightly altered from the original mod. For example, the original Piston Mod could propel gravity-affected blocks, as well as entities and mobs several meters vertically or horizontally, while vanilla Pistons cannot do this.[11] However, if a gravity-affected block is sitting on an upward-facing piston, and the piston retracts, the block will fall.
- If a piston pushes a gravity-affected block over a hole, the block will fall, even if attached to a sticky piston.
- Pistons cannot be used to 'crush' players or mobs against walls. A piston will simply pass through them if this is attempted. However, blocks being pushed by piston will crush players and mobs and suffocate them, making it useful for traps.
- Pistons are destroyed faster using a sword, however, it counts as two uses towards the sword's durability.
- If attached from up above, pistons may be able to push blocks downwards and suffocate the player or mobs. This can be very useful for mob traps.
- If a water spring is placed on top of a piston, it will disappear if the piston is extended. This also applies to lava springs.
- Pistons can be placed near cacti so that when they are activated, and if the pushing end is adjacent to the base of a cactus, the cactus will break.
- If a piston pushes a leaf block, it will break.
- If you try to move a door with a piston, it will break. The piston can be used like a battering ram.
- If you push a burning block, the block will be put out. If you push a row of burning blocks, they will all stay on fire but the last one.
- Pistons cannot push any block above level 127.
- Pistons can be used to create logic gates. However, they suffer from bad latency and larger size compared to their pure redstone counterparts, and offer no advantages.
- Sticky Pistons, when facing down, are able to pull up sand and gravel, but the block will immediately fall down.
Gallery
- OldPiston.png
Pistons in the mod look.
- Pistons.png
Another screenshot of official Pistons.
Notch's explanation on how the rod fits into the piston box.[12]
- GS step1.png
First step in building a Glass Switch[13], piston and block placement
- GS step2.png
Step 2, redstone placement
- GS step3.png
Step 3, arming the pistons
- GS on.png
Switch on, observe glass allowing current
- GS off.png
Switch off, observe sandstone blocking current
References
- ↑ http://twitter.com/#!/jeb_/status/81386768913534976
- ↑ http://www.youtube.com/watch?v=uZJr86d2IUo
- ↑ Attribution of the Piston Mod in vanilla Minecraft, Jeb, 2011-06-09, Reddit r/Minecraft
- ↑ http://www.youtube.com/watch?v=Oc6spHvGPtQ
- ↑ http://www.minecraftforum.net/viewtopic.php?t=247686&f=1032
- ↑ http://www.youtube.com/watch?v=cMBhVdCAPYM
- ↑ http://www.youtube.com/watch?v=4NRXY-6GFsA
- ↑ http://www.youtube.com/watch?v=QjMRNylZKvM
- ↑ http://www.youtube.com/watch?v=QslCA-PltTg
- ↑ http://www.youtube.com/watch?v=cMF6qBmkwW4
- ↑ http://twitter.com/jeb_/status/55921671009353728
- ↑ http://twitter.com/#!/notch/status/83513677654929408
- ↑ http://www.youtube.com/watch?v=IIYL-PCVwgE

![Notch's explanation on how the rod fits into the piston box.[12]](https://static.wikia.nocookie.net/minecraft_gamepedia/images/0/09/PistonParadox.png/revision/latest/scale-to-width-down/90?cb=20110630022226)
