Namespaces

Variants

Share

Share
Views
Actions

Piston

From Minecraft Wiki
Jump to: navigation, search
Piston / Sticky Piston
Piston.gif
Sticky Piston.gif
PistonSticky Piston
Type

Solid Block

Requirements

None

Physics

No

Transparency

Yes

Luminance

None

Blast resistance

2.5

Tool

Any tool

Renewable

Yes

Stackable

Yes (64)

Flammable

No

Availability

?

First appearance

Beta 1.7

Drops

Itself

Data values
Piston
dec: 33 hex: 21 bin: 100001
Sticky Piston
dec: 29 hex: 1D bin: 11101
Name
Piston
piston
Sticky Piston
sticky_piston


Pistons are blocks capable of pushing most blocks, depending on the direction they are facing.


Sticky Pistons are similar to the Piston; the difference is that it can pull blocks as well as push them.

When extending, sticky pistons act exactly as regular pistons, pushing up to 12 blocks. When retracting, sticky pistons will pull along the block immediately in front of it. Obsidian, bedrock, all blocks with tile entities, and extended pistons cannot be pulled, just as they cannot be pushed.

It is possible for the block that is “stuck” to a sticky piston to be pushed aside by another piston, and sticky pistons cannot hold sand and gravel horizontally against gravity; the stickiness is only in effect during the retraction of the piston.

Contents

[edit] Obtaining

[edit] Crafting

Name Ingredients Crafting recipe

Piston

Cobblestone +
Any Wood Planks +
Iron Ingot +
Redstone

Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks Oak Wood PlanksSpruce Wood PlanksBirch Wood PlanksJungle Wood PlanksAcacia Wood PlanksDark Oak Wood Planks Grid layout Arrow (small).png Piston
Cobblestone Iron Ingot Cobblestone
Cobblestone Redstone Cobblestone

Sticky Piston

Piston +
Slimeball




Grid layout Arrow (small).png Sticky Piston

Slimeball

Piston

[edit] Naturally generated

Three sticky pistons generate as part of each jungle temple.

[edit] Functionality

  • Pistons always face the player when placed.
  • Pistons are redstone powered. When powered, their wooden surface extends outwards by 1 block, pushing up to a maximum of 12 blocks.[1][2]
  • When going back to the unpowered state, the regular piston does not pull any block back (Blocks affected by gravity still fall back down).
  • 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(unless the block the player is being pushed towards is a staircase/slab). The piston can still push a mob or player off a one block wide walkway, which can be coupled with a pressure plate for a fairly effective trap.
  • 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.
  • Pistons can be used to toggle fluid flows like a flood gate by extending into or retracting from the space where the fluid would flow through.
  • Pistons can push boats and minecarts. Note that if the minecart is on a rail, the rail will also get pushed if there is space. If there is no space, or it is pushed over an edge, the rail will turn into a drop.

[edit] Pushing Blocks

  • Some blocks cannot be pushed by Pistons and the piston head will not extend:[3]
  • Cactus, pumpkins, jack-o-lanterns, sugar cane, and dragon eggs are turned into drops when pushed. (If trying to create extendable/retractable lighting, you can use glowstone instead. See also: Redstone Lamp.)
  • Melons will turn into slices if pushed by a piston.
  • Cobwebs will turn into string if pushed by a piston.
  • 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. Note that when a piston retracts, adjacent water tiles will recreate the source block that was there. This does not work with lava.
  • Pistons cannot push most blocks that are "attached to a block” such as levers, torches, redstone, signs, etc. They will be detached and drop as an item. Exceptions include:
    • Trapdoors, as long as their hinged side remains attached to a solid block in their new position.
    • Rails (and powered rails, detector rails) as long as they remain on top of a solid block in their new position. Rails will re-orient themselves after being pushed just as they do when placed manually.
    • Carpet
  • Blocks that are attached to pushed blocks will be broken off; for example, torches can't be placed on a "self-repairing" stone or cobblestone structure.
  • Pistons cannot push a chain of blocks more than 12 blocks long. They will simply not extend.

[edit] Powering Pistons

  • When using Redstone Dust to power a piston, you MUST have the redstone trail lead directly into the piston; simply placing the redstone next to the piston won't work. You may have to curve the redstone trail away so that the piston will actually activate.
  • Pistons can be powered horizontally through single blocks by way of either redstone or repeaters.
  • Pistons can be powered by a redstone torch directly adjacent to them (above, below, or to the side).
  • Pistons can be powered by a redstone torch from below when said torch would power the block the pistons are resting on (just like powered rails).
  • Pistons can be powered by any powered block directly adjacent to them.
  • Pistons can be powered by any powered block one block above and to the side. However, the piston won't recompute its state unless a block directly next to it is changed. An adjacent piston retracting causes a recompute, but an adjacent piston extending doesn't.
  • Both redstone dust and repeaters will power the piston directly in front of it as well as a second piston below this piston (see picture below). This allows a wall made completely of pistons to be constructed. Redstone dust will also power the block beneath itself which in turn will power the third piston below the first two, but due to the bug mentioned above it won't recompute its state.
  • 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 as a resource. However, gravel will never break into flint.
  • A repeater cannot transfer power through a piston.
  • An upwards-facing piston can't be powered by the block above it (that is, where it will push), but once it is extended, it can be powered by the block above its extended shaft. Consider an upward facing piston which gets a Block of Redstone placed atop it. The piston will not extend immediately, but if it is triggered some other way, it will not retract, because the Redstone Block will power it through the shaft.

[edit] Common Usage

An elevator constructed from pistons (aerial view).
An elevator constructed from pistons (ground view).
An elevator constructed from pistons (simpler design with 8x8 footprint).
An automatic bridge constructed from pistons (submerged).
An automatic bridge constructed from pistons (on surface).
  • Pistons can be used to make semi automatic stone-making machines.
    • If you do use this, use a normal Piston.
  • Pistons are commonly used to push/pull blocks to simulate opening and closing doors,[4] gates and to create traps.
  • Pistons can be used to make self-repairing bridges by using cobblestone from a cobblestone generator, or stone from a stone generator. The same principle can be used to make a self-repairing house.
  • When used in conjunction with redstone repeaters, one can create virtually any logic gate without the use of Redstone torches, bypassing the "burnout" speed limit.
  • Pistons can be used to make traps, as pushing a block into a player will suffocate him/her. Their advantage is that they are easily resetable, and are very subtle.
  • 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. A single cell can also hold at least six different states as opposed to standard two by using sticky pistons in the loop itself, pushing in various directions when read.[5]
  • Another use for Pistons is to put a block on top an upward facing piston, with a track on top of that, then have a minecart one block away from it on the track so that when you activate the Piston it will slant the track and get the minecart started.
  • Pistons can be used to move blocks like glass or ice that cannot be picked up.
  • Pistons can be used for semi-automated farming. Using a sticky piston with a dirt block or similar solid block attached, the piston is capable of pushing wheat or sugarcane off soil- the blocks will subsequently turn it into their respective items. Then replant manually.
  • Pistons can be used to build downward from a platform in the air by placing it on a block above you, and pushing blocks downward into place.
  • Pistons can be used to build opening and closing windows.
  • Pistons can be used to build an elevator of arbitrary height. This is achieved by placing vertical pistons like a circular stairway around a central 1-block shaft, and for each such vertical piston, have a horizontal piston three blocks higher that pushes the player onto the next vertical one. This construction needs a lot of space (11x11 block area) and a huge amount of redstone ore (each piston except the first needs a redstone repeater set to the third position, to delay the action). A simpler design without a vertical shaft with a smaller 8x8 footprint can be built, too (see screenshots).
  • Instead of placing the pistons like a circular stairway around a central shaft, they can be placed like a regular stairway in a linear fashion as well, creating an escalator. The principle is still the same, you have a horizontal piston for each vertical one, that pushes the player onto the next higher piston.
  • It's possible to construct an automatic bridge from pistons that can be submerged with the pull of a lever. The pistons are powered from below using redstone torches, and those are wired from the side (first from left, second from right, third from left, etc.). This requires a hollow space below the pistons that is as long as the piston bridge, 2 high and 5 wide (redstone torch in middle, block below it, redstone wiring to the blocks from left or right using 2 tiles each). The bridge can be toggled with two levers from each side, by connecting the pistons to an out of an XOR gate and connecting the two levers to the two ins of the gate. Another possibility to trigger the bridge is an or gate, a 1-bit memory cell and two pressure plates.
  • They are often used as tables.

[edit] Tutorials

For potential uses of pistons, including secret entrances, doors and elevators, view the tutorial page.

[edit] Video

[edit] History

Beta
1.7 Pistons were added in Beta 1.7.
The original piston was a mod posted on the Minecraft Forums by Hippoplatimus.[6] The code for that version was given to Jeb, who then worked on implementing pistons into vanilla Minecraft.
  • Hippoplatimus is in the game's credits under "Additional Programming", like other modders whose work made it into vanilla Minecraft.
Another user, DiEvAl, privately submitted code as well,[7] including the idea of Tile Entities to track moving blocks.[8]
However, due to Jeb's work on the Pocket Edition, pistons were delayed, and were not released for the Beta 1.5 update nor for the Beta 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 Beta 1.7, including Sticky Pistons.
Pistons used to explode when pushed into each other. It is unknown when this was removed.
1.7_01 Sticky pistons do not stick when they aren't retracting.
There was a bug that duplicates blocks and uses a sticky and regular piston. This was also present in Beta 1.7.2.
1.7.3 It is now impossible to place a Jack-o-Lantern onto a sticky piston.
The bug where blocks were duplicated was fixed.
Official release
1.3.1 12w22a Sticky pistons generate naturally inside jungle temples. In the temples the pistons are used to form a puzzle mechanism.
12w27a Updated Pistons to make them less error-prone, thus they also appear to update slower. This also altered the way Pistons work, so you might have to adapt your repeater delays and similar.
  • For this change, pistons now take 2 redstone ticks (4 game ticks) to extend, but they still retract instantly.

[edit] Issues

Issues relating to "Piston" are maintained on the issue tracker. Report issues there.

[edit] Trivia

  • In the future, sticky pistons may also be used for pushing Spike Blocks instead of having a spiky piston.[9][10]
  • 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.
  • If attached from up above, pistons may be able to push blocks downwards and suffocate the player or mobs.
  • 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.
  • Pistons will break leaves when pushed.
  • 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 except for the farthest one.
  • Pistons can be used to create logic gates. These may be more space efficient than standard gates and clocks created from them can also operate at much higher speeds without burning out.
  • Pistons may also be used the same way one-way or minecart-only soul sand gates work by putting an extended piston one block above a minecart track allowing only small or tiny slimes, cave spiders, and chickens to enter. Doing this keeps pursuing mobs out (except for slimes). When a minecart passes through the player will not be suffocated and continue going. Alternatively they can be used to make entire 2 block high doors for minecarts on a slope, since if a block is put adjacent to the theoretical hypotenuse of the slope it will touch the rails, but not cut them off and will allow no space for any mobs at all.
  • Pistons can be mined with bare hands in less than 2 seconds.
  • Pistons share the #1 spot with cake for crafting complexity, each requiring 4 individual items to make the item itself. However, Pistons have a much shorter crafting chain, requiring at minimum having crafted an iron pick.
  • Pistons do not work at the lowest level of bedrock (or the level above the Void).
  • The original piston texture had an iron band running over the head. This was later removed, only leaving iron brackets around the corners and edges.
  • If a sticky piston blocks a redstone wire vertical connection that is the same one giving the piston power, it will extend and retract over and over very quickly, making it possible to build a simple clock.
  • In creative mode, if you break a block while it is being pushed by a piston, the particles will be particles of a piston
    • You must be in creative mode so that the block is broken before it stops moving
  • Although having a wooden top, Pistons and Sticky Pistons are not flammable.
  • If a Sticky Piston pushes a Block of Redstone upwards, it will not retract when turned off, due to piston quazi-connectivity.
  • In Minecraft: Xbox 360 Edition, it is possible to go a few blocks past the build limit on the side of the End by pushing blocks with a piston.
  • Pistons are only semi-opaque, in later versions of Minecraft, light can pass through it. It is unknown if this is intentional, or a bug.

[edit] Gallery

[edit] See also

[edit] References