Difference between revisions of "Piston"

From Better Than Wolves Wiki
Jump to: navigation, search
(Crafting)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Vmcwiki}}
+
{{Item
{{Block
+
|image=ItemPiston.png
|title=Piston<br>Sticky Piston
 
|image=Piston.gif
 
|image2=Sticky Piston.gif
 
|invimage=Piston
 
|invimage2=Sticky Piston
 
 
|type=Solid Block
 
|type=Solid Block
|gravity=No
 
|dirt=None
 
|transparent=Yes
 
|light=None
 
|tntres=2.5
 
|tool=any
 
|renewable=Yes
 
 
|stackable=Yes (64)
 
|stackable=Yes (64)
|multipledata={{dv|33|Piston}}
+
|data=33
{{dv|29|Sticky Piston}}
 
 
|firstver=Beta 1.7
 
|firstver=Beta 1.7
 
}}
 
}}
{{About|the vanilla piston|the mod|Mods/Pistons}}
 
  
'''Pistons''' are [[blocks]] capable of pushing most blocks, depending on the direction they are facing.
+
'''Pistons''' are devices capable of pushing most blocks when receiving [[redstone]] power, depending on the direction they are facing, providing options for mechanical movement of blocks and items when combined with [[redstone]]. A piston is strong enough to push up to 12 blocks in a row a distance of one block. To add the ability for the piston to pull blocks as the piston retracts, they can be crafted into [[sticky piston]]s.
  
'''Sticky Pistons''' are similar to the Piston; the difference is that it can pull blocks as well as push them.
+
'''Pistons''' can be used to create a lot of unique blocks through the [[Piston Packing]] mechanics, especially when used in combination with the [[Piston Shovel]].
  
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 entity|tile entities]], and extended pistons cannot be pulled, just as they cannot be pushed.
+
[[File:Piston Packing.png|border|300px|link=Piston Packing]]
  
It is possible for the block “stuck” to a sticky piston to be pushed aside by another piston, and sticky pistons can not hold  [[sand]] and [[gravel]] horizontally against gravity; the stickiness is only in effect during the retraction of the piston.
 
  
 
== Crafting ==
 
== Crafting ==
  
{| class="wikitable"
+
{{Title}}
|-
+
<onlyinclude>![[Piston]]
!Name
+
|align="center"|[[Wooden Siding]], <br>[[Iron Ingot]], <br>[[Stone Brick]],<br/>[[Soul Urn]],<br/> [[Redstone Latch]]
! Ingredients
 
! Input » Output
 
|-
 
!Piston
 
|align="center"|[[Wooden Siding]], <br>[[Iron Ingot]], <br>[[Smooth Stone]],<br/>[[Soul Urn]],<br/> [[Redstone Latch]]
 
 
|{{Grid/Crafting Table
 
|{{Grid/Crafting Table
|A1= Wooden Siding |B1= Iron (Ingot) |C1= Wooden Siding  
+
|A1= Wooden Siding |B1= Iron_Ingot    |C1= Wooden Siding  
|A2= Smooth Stone         |B2= Soul Urn |C2= Smooth Stone
+
|A2= Stone Brick; Brick Stone Strata2; Brick Stone Strata3  |B2= Soul Urn       |C2= Stone Brick; Brick Stone Strata2; Brick Stone Strata3
|A3= Smooth Stone |B3= Redstone Latch |C3= Smooth Stone
+
|A3= Stone Brick; Brick Stone Strata2; Brick Stone Strata3  |B3= Redstone Latch |C3= Stone Brick; Brick Stone Strata2; Brick Stone Strata3
|Output= Piston |OA = 1}}
+
|Output= Piston |OA = 1
|}
+
}}</onlyinclude>
 
 
Sticky pistons can be crafted in the 2×2 [[crafting]] grid, because they only require two spaces.
 
 
 
{| class="wikitable"
 
|-
 
!Ingredients
 
!Input » Output
 
 
|-
 
|-
! [[Slimeball]] + Piston
+
{{Piston:Soap}}
|{{Grid/Crafting Table
 
|A1=  |B1=          |C1=
 
|A2=  |B2= Slimeball |C2=
 
|A3=  |B3= Piston    |C3=
 
|Output= Sticky Piston
 
}}
 
 
|}
 
|}
  
== Functionality ==
+
== Uses ==
  
* Pistons always face the [[player]] when placed.
+
Pistons cannot push [[bedrock]], [[obsidian]], [[monster spawner]]s or [[Block of Soulforged Steel|blocks of soulforged steel]] due to their density. They also cannot push blocks that are larger than one block, such as [[door]]s. This means that a piston can push a second piston if the latter is retracted, but not if it is extended.
* Pistons are [[redstone]] powered. When powered, their wooden surface extends outwards by 1 [[block]], pushing up to a maximum of 12 blocks.<ref>[[jebtweet:81386768913534976]]</ref><ref>http://www.youtube.com/watch?v=CpgcBfPyCr8</ref>
 
* 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 [[wood]]en surface can also push [[player]]s, [[mob]]s 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|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 [[fluids|fluid]] flows like a flood gate by extending into or retracting from the space where the fluid would flow through.
 
* Pistons can push [[boat]]s 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.
 
  
== Pushing Blocks ==
+
Pistons will also turn most non-solid blocks into items, such as [[torch]]es, but they will push [[rail]]s normally.
  
* Some blocks cannot be pushed by Pistons and the piston head will not extend:<ref>[[jebtweet:79222065437220864]]</ref>
+
Adding a [[piston shovel]] in front of a piston allows it to break [[dirt]], [[sand]], and other blocks of similar consistency into items.
** [[Obsidian]], [[bedrock]], [[Technical blocks#End Portal|End portals]], [[Technical blocks#Nether Portal|Nether portals]], and [[anvil]]s to avoid abuse.
 
** Blocks with extra data (tile entities) attached - [[Note Block|note block]]s, [[chest]]s, [[furnace]]s, [[jukebox]]es, [[dispenser]]s, [[Monster Spawner|monster spawner]]s, [[Brewing Stand|brewing stand]]s, [[Enchantment Table|enchantment table]]s, [[Bed]]s, [[Sign]]s and [[Technical blocks#End Portal Frame|End portal frame blocks]].
 
** Pistons will not push blocks into [[the Void]] or the top of the map.
 
** Extended (activated) pistons (both sticky and normal).
 
* [[Cactus]], [[pumpkin]]s, [[Jack-O-Lantern|jack-o-lantern]]s, [[Sugar Cane|sugar cane]], and [[Dragon Egg|dragon egg]]s 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.
 
* [[Cobweb]]s 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 [[lever]]s, [[torch]]es, [[redstone]], [[sign]]s, etc. They will be detached and drop as an item. Exceptions include:
 
** [[Trapdoor]]s, as long as their hinged side remains attached to a solid block in their new position.
 
** [[Rail]]s (and [[Powered Rail|powered rail]]s, [[Detector Rail|detector rail]]s) 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.
 
* 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" stone or cobblestone structure.
 
* Pistons cannot push a chain of blocks more than 12 blocks long. They will simply not extend.
 
  
== Powering Pistons ==
+
=== Crafting ===
  
* 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.
+
{{Title}}
* Pistons can be powered horizontally through single blocks by way of either redstone or repeaters.
+
{{:Sticky Piston}}
* 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 Rail|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.
 
 
 
<gallery>
 
File:PistonTrick.png|Pistons powered by one line of redstone.
 
</gallery>
 
 
 
== Common Usage ==
 
 
 
[[File:Mcelevator-aerial.jpg|thumb|An elevator constructed from pistons (aerial view).]]
 
[[File:Mcelevator-ground.jpg|thumb|An elevator constructed from pistons (ground view).]]
 
[[File:8x8elevator.png|thumb|An elevator constructed from pistons (simpler design with 8x8 footprint).]]
 
[[File:Bridge-down.png|thumb|An automatic bridge constructed from pistons (submerged).]]
 
[[File:Bridge-up.png|thumb|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,<ref>http://www.youtube.com/watch?v=QtK8GZWu6rM&context=C3893bdbADOEgsToPDskLW5b-kjZSHFFWWBe-q9mpr</ref> gates and to create traps.
 
* Pistons can be used to make self-repairing bridges by using cobblestone from a [[Tutorials/Cobblestone Farming|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 torch]]es,  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.<ref>http://www.youtube.com/watch?v=XkDUmdB9JFY</ref>
 
* 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.
 
 
 
== Tutorials ==
 
 
 
For potential uses of pistons, including secret entrances, doors and elevators, view the [[Tutorials/Piston Uses|tutorial page]].
 
 
 
== Video ==
 
 
 
{{/video}}
 
 
 
== History ==
 
 
 
{{History|Beta}}
 
{{History||1.7|Pistons were added in Beta 1.7.
 
|The original piston was a mod posted on the Minecraft Forums by Hippoplatimus.<ref>http://www.minecraftforum.net/viewtopic.php?t=247686&f=1032</ref> The code for that version was given to Jeb, who then worked on implementing pistons into vanilla Minecraft.
 
* Hippoplatimus is in [[The End|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,<ref>http://www.reddit.com/r/Minecraft/comments/hvkmo/attribution_of_the_piston_mod_in_vanilla_minecraft/</ref> including the idea of [[Tile Entity|Tile Entities]] to track moving blocks.<ref>http://imageshack.us/photo/my-images/51/jebf.jpg/</ref>
 
|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.}}
 
{{History||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.}}
 
{{History||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.}}
 
{{History|r}}
 
{{History||1.3.1|rowspan=3|snap=12w22a|Pistons and sticky pistons generate naturally inside jungle temples. |In the temples the pistons are used to form a puzzle mechanism. This marked the first time both types of pistons could be found naturally. They can also be taken by the player.}}
 
{{History|||snap=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 expand, but they still retract instantly.}}
 
{{History|foot}}
 
 
 
== Issues ==
 
 
 
{{issue list}}
 
 
 
== Trivia ==
 
 
 
*In the future, sticky pistons may also be used for pushing [[Spike Block]]s instead of having a spiky piston.<ref>[[jebtweet:78554788094160896]]</ref><ref>[[jebtweet:78559908211081216]]</ref>
 
* 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 [[Tutorials/Piston circuits|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 arrow turret.
 
* 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
 
 
 
== Gallery ==
 
 
 
<gallery>
 
Image:OldPiston.png|Pistons as seen in the original mod.
 
Image:Pistonscreen.png|First screenshot of pistons. Notice they still have the band on the head.
 
Image:PistonParadox.png|Notch's explanation on how the rod fits into the piston box.<ref>[[notchtweet:83513677654929408]]</ref>
 
File:Pistongates.png|Fundamental logic gates, implemented purely with pistons and [[Redstone Repeater|redstone repeaters]], clockwise from upper left: AND, OR, XOR, and NOT.
 
File:Pistonslowclockgenerator.png|(Very) slow clock generator with pistons and redstone.
 
File:Sticky Piston Mechanic.jpg|An illustration on the mechanics of sticky pistons in Beta 1.7.
 
File:Piston Waterflow control.png|An example of a piston-controlled waterflow.
 
File:Glassp.gif|An example of Sticky Piston use with [[Glass Pane]]s.
 
</gallery>
 
 
 
== See also ==
 
 
 
* [[Slimeball]]
 
* [[Tutorials/Piston Uses]]
 
 
 
== References ==
 
 
 
{{reflist|2}}
 
 
 
 
 
{{Redstone}}
 
{{Blocks}}
 
  
 
[[Category:Redstone mechanics]]
 
[[Category:Redstone mechanics]]

Latest revision as of 08:43, 21 December 2023

Piston
ItemPiston.png


Type

Solid Block

Stackable

Yes (64)

Damage

{{{damage}}}

Protection

{{{protection}}} x ArmorFull.png

Durability

{{{durability}}}

First Appearance

Beta 1.7

Filtering

{{{filters}}}

Buoyancy

{{{buoy}}}

Gravity

{{{gravity}}}

Flammable

{{{flammable}}}

Data Value

33

Pistons are devices capable of pushing most blocks when receiving redstone power, depending on the direction they are facing, providing options for mechanical movement of blocks and items when combined with redstone. A piston is strong enough to push up to 12 blocks in a row a distance of one block. To add the ability for the piston to pull blocks as the piston retracts, they can be crafted into sticky pistons.

Pistons can be used to create a lot of unique blocks through the Piston Packing mechanics, especially when used in combination with the Piston Shovel.

Piston Packing.png


Crafting

Name Ingredients Input » Output
Piston Wooden Siding,
Iron Ingot,
Stone Brick,
Soul Urn,
Redstone Latch
Wooden Siding
Iron_Ingot
Wooden Siding
Grid layout Arrow (small).png
Piston
Stone Brick Brick Stone Strata2 Brick Stone Strata3
Soul Urn
Stone Brick Brick Stone Strata2 Brick Stone Strata3
Stone Brick Brick Stone Strata2 Brick Stone Strata3
Redstone Latch
Stone Brick Brick Stone Strata2 Brick Stone Strata3
Piston Sticky Piston,
Soap
Sticky Piston
GridNumbersCSS.png
Soap
 
 
Grid layout Arrow Stewing Pot (small).png
Piston
GridNumbersCSS.png
 
 
 
 
 
 
 
 

Uses

Pistons cannot push bedrock, obsidian, monster spawners or blocks of soulforged steel due to their density. They also cannot push blocks that are larger than one block, such as doors. This means that a piston can push a second piston if the latter is retracted, but not if it is extended.

Pistons will also turn most non-solid blocks into items, such as torches, but they will push rails normally.

Adding a piston shovel in front of a piston allows it to break dirt, sand, and other blocks of similar consistency into items.

Crafting

Name Ingredients Input » Output
Sticky Piston Slimeball,
Piston
Slimeball
 
Grid layout Arrow (small).png
Sticky Piston
Piston