Piston


Obtaining

A piston can be broken using any tool with equal efficiency, and will always drop itself.

Block
Piston
Hardness 0.5
Breaking "Punch" redirects here. For the enchantment, see Enchanting#Punch. The Player punches trees and gets wood (click to view animation). Breaking, digging, punching, or mining is one of the most fundamental activities in Minecraft, performed (by minecraft time
Hand 0.75
  1. ⃢₆ₑ Times are for unenchanted tools in seconds.

Trivia

  • As of the 1.7.3 Beta update, it is impossible to place a jack-o-lantern onto a sticky piston.
  • Sticky piston transparency for redstone wire is affected by the extension of the pusher.
  • Sticky pistons can push and pull rails.
  • They naturally spawn in Jungle Temples.

Info

Pistons are blocks Blocks may refer to: Block - cubes that make up the Minecraft world as a whole. Blocks music disc This disambiguation page lists articles associated with the same title. If an internal link led you capable of pushing most blocks, depending on the direction they are facing. They come in two varieties: a
regular piston
, and a
sticky piston
, which can also pull movable blocks.

Videos

Natural generation

Three sticky pistons generate as part of each jungle temple Jungle Temple Biome Jungle Consists of See Blocks Can generate post-generation No First appearances See History Jungle temples are generated structures found in jungle biomes. Contents 1 Generation 2 Structure 2.1 Puzzle 2.2 Trap 2.3 minecraft .

Crafting

Name Ingredients Crafting Crafting is the method by which many blocks, tools, and materials are made in Minecraft. In order to craft something, players must move items from their inventory to a crafting grid. A 2×2 crafting grid minecraft recipe
Piston Any Wood Planks Wood Planks Transparency No Luminance No Blast resistance 15 Tool Renewable Yes Stackable Yes (64) Flammable Yes Drops Itself Data value dec: 05 hex: 5 bin: 101 Name planks Wood planks are common blocks used in many crafting minecraft +
Cobblestone+
Iron Ingot+
Redstone


























Sticky Piston Slimeball+
Piston











Usage

See also: Piston uses Since pistons were introduced in Beta 1.7, players have been experimenting with their potential uses. Below are some demonstrations and guides. The interest in pistons is their ability to manipulate the position of other blocks. minecraft and Piston circuits Pistons have allowed players to design circuits that are smaller and/or faster than the standard, redstone-only counterparts. An understanding of standard redstone circuits is helpful, as this tutorial is focused on the circuit design rather minecraft

Pistons are always placed facing towards the player. When powered, the piston`s wooden surface (head) extends outward by one block for 1.5 redstone ticks (0.15 seconds, barring lag), which can be heard within a 31x31x31 cube centered on the activating piston, the piston can push up to 12 blocks in a line with it. Any entities in the path of the extending head will be pushed with the blocks. If there is no place for the entities to go, the block will push inside the mob, suffocating it if the block is not transparent.

When a piston loses power, it will retract by simply pulling its head back instantly (0 redstone ticks), unless it is a sticky piston, in which case it will also pull the block in front of the head.

Sticky pistons only stick to a block when retracting, so a block next to the piston head can be pushed aside by another piston and sticky pistons cannot hold falling blocks horizontally against gravity. They also don`t pull blocks 1 redstone tick (0.1 seconds, barring lag) later after pushing them. This can be done by using a 1-tick on pulse.

A piston that pushes a slime block Slime Block Transparency Partial (does not block light, mob spawning possible) Luminance No Blast resistance 0 Tool Any tool Renewable Yes Stackable Yes (64) Flammable No Availability Survival, but not on Peaceful Drops Itself Data minecraft will bounce any entity that it displaces in the direction the piston is facing.

Blocks that stick to walls (such as levers) can be placed on pistons or sticky pistons. Pocket⃂edition only Pocket Edition Author(s) Mojang AB Jens Bergensten Aron Nieminen Daniel Kaplan Tommaso Checchi Shoghi Cervantes Jason Major Daniel Wustenhoff Tomas Alaeus Mikael "Slicedlime" Hedberg @@@#@@@Microsoft(microsoft.com)###@### Studios 1] Platform(s) Written in C++ 2] Latest version 1.1.2 minecraft

Limitations

Pistons can push most blocks, and sticky pistons can pull most blocks, except those listed in the table below. Sticky pistons will simply leave a block behind if it cannot pull it.

Pistons will not push blocks into the void The void is pure black. The void is the name given to the empty space below layer 0. Contents 1 Effects 1.1 Pocket Edition 1.2 Console Edition 2 Video 3 History 4 Issues 5 Trivia minecraft or beyond the top of the map. They also cannot push more than 12 blocks. In these situations, the piston simply will not extend.

Blocks that cannot be pushed or pulled
Block Effect (Java & Console Edition) Effect (Pocket Edition)
Cannot be pushed or pulled.
Can be pushed, but not pulled. Can be pushed or pulled.
Cannot be pushed or pulled.
Can be pushed or pulled, but separates the two chests.
Breaks when pushed, turning to drops
Breaks when pushed, turning to drops when applicable. Can not be pulled.
Turns into flowing water directly after being pushed or pulled.
Can be pushed or pulled as normal, but will fall rather than remain attached to sticky pistons.

Pistons will not move blocks that are "attached to a block," as they will be detached and drop as an item.

Exceptions

  • Rails
    : as long as they remain on top of a solid block in their new position, and that block isn`t moving at the same time.
    • An exception is when the rail and block supporting it are on two parallel extended pistons at which the rail remains attached. Trying to move both on the same piston using slime blocks does not work, nor does moving them on perpendicular pistons (although the latter will temporarily appear to work because of a bug MC-75716).
    • Rails will re-orient themselves after being pushed similar to when placed manually.

  • Carpet

Powering pistons

Pistons powered by one line of redstone.

Pistons can be powered in various ways:

  • If a redstone wire is in a line shape towards the piston, as the wire will not automatically curve to the piston.Java⃂edition only
  • Pistons can be powered by a powered block directly adjacent to them, whether it is strongly powered or weakly powered.
  • Pistons can be powered by a redstone torch directly adjacent to them.
  • Pistons can be powered by any powered block one block above and to the side, including the "activated space" above it (if a piston, both sticky and normal were to be facing up and a Block of redstone on its head, it will extend when powered, but won`t retract when the power it receives from the side or back turns off). Be that as it may, the piston won`t extend or retract until it receives a block update. This property is called quasi-connectivity and can be used to make a BUD switch.
  • A repeater cannot transfer power through a piston, as pistons are a transparent block.
  • An upwards-facing piston can`t be powered by a block above it, unless it is extended.

Slime blocks


A


B




Piston A may extend because the slime block ignores the adjacent furnace. Piston B may not extend because the diamond block is prevented from moving by the furnace and so the slime block will also refuse to move.

When a slime block Slime Block Transparency Partial (does not block light, mob spawning possible) Luminance No Blast resistance 0 Tool Any tool Renewable Yes Stackable Yes (64) Flammable No Availability Survival, but not on Peaceful Drops Itself Data minecraft is pushed or pulled by a piston, while moving, adjacent blocks will also move with the slime block, unless a non-piston movable block stops the blocks that are "grabbed" by the slime blocks. These blocks may in turn push other blocks, not just the blocks in the line in front of the piston. For instance, a Slime Block sitting on the ground will attempt to move the ground block underneath itself, which will in turn have to push additional ground blocks in the direction of motion just as if it were being pushed directly by a piston.

Glazed terracotta is an exception; it will not move when adjacent slime blocks are moved.

The same occurs when a slime block is moved by an adjacent Slime Block. For instance, a 2⃗2⃗2 cube of Slime Blocks may be pushed or pulled as a unit by a single piston acting on any of the blocks in the cube.

A slime block adjacent to a block that cannot be moved by pistons will ignore the immobile block. But if an adjacent block could be moved but is prevented by the presence of an immobile block, the slime block will be prevented from moving.

Slime blocks are not pulled by a non-sticky piston, nor are they moved if an adjacent (non-Slime) block is moved by a piston.

The maximum of 12 blocks moved by a piston still applies. For instance, a 2⃗2⃗3 collection of Slime Blocks may be pushed or pulled by a sticky piston as long as no other movable blocks are adjacent to it.

A piston cannot move itself via a "hook" constructed of slime blocks, but self-propelled contraptions can be created with multiple pistons. For that, see the article Tutorials/Flying technologies.

Piston head

The piston head (a.k.a. "block 34") is a technical block used as the second block of an extended piston. A block state defines whether it is a normal or a sticky piston head. It can only be placed using the /setblock command, though if not part of a proper piston, it will disappear after receiving any block tick, such as when a block is placed next to it.

Block state

See also: Block states

The minecraft:piston and minecraft:sticky_piston blocks use following block states:

Name Value Description

⃂extended
true
false
If true, the piston is extended.

⃂facing
north
south
east
west
up
down
The direction the piston head is pointing.
The opposite from the direction the player faces while placing the piston.

Piston extension

The piston extension (a.k.a. "Block Being Moved By Piston" or simply "block 36") is an unobtainable technical block that contains part of a piston head, and/or part of one or two blocks that the piston is carrying into or out of the grid cell (including blocks carried indirectly via slime blocks). Since moving blocks vary in how much of each grid cell they occupy, they can`t be stored as normal blocks Blocks may refer to: Block - cubes that make up the Minecraft world as a whole. Blocks music disc This disambiguation page lists articles associated with the same title. If an internal link led you and are instead stored as block entities. It is overwritten with air, the piston head or the carried block at the end of the piston stroke; but if it is placed by a command and no piston is connected, it will remain indefinitely.

It is invisible, non-solid, and cannot be broken without the use of commands. It decreases the light level of light passing through by 1. Although it is non-solid, fluids cannot pass through it. It also prevents from building at its location. The game treats the block as a stone block when it comes to their breaking animation and the player`s footstep sounds.

Block entity

See also: Block entity format

The minecraft:piston_extension technical block has a block entity associated with it that holds additional data about the block. The block`s block entity ID is piston.


  • Block entity data
    • Tags common to all block entities see Template:Nbt inherit/blockentity/template

    • blockId: Block IDs of the block being moved.

    • blockData: Data value of the block being moved.

    • facing: Direction in which the block will be pushed. (0=down, 1=up, 2=north, 3=south, 4=west, 5=east)

    • progress: How far the block has been moved.

    • extending: 1 or 0 (true/false) - true if the block is being pushed.

    • source: 1 or 0 (true/false) - true if the block represents the piston head itself, false if it represents a block being pushed.

ID

Block ID Name (PC) Numerical ID (PC) ID Name (PE) Numerical ID (PE)
Piston piston 33 piston 33
Sticky Piston sticky_piston 29 sticky_piston 29
Piston Head piston_head 34 pistonarmcollision 34
Piston Extension piston_extension 36 movingblock 250

Block data

See also: Data values See values from the latest PC version of Minecraft. For values from Classic, see Data values/Classic. For values from Indev, see Data values/Indev. For values from the Pocket Edition, see Pocket Edition minecraft
Bits Values
0x0 facing down
0x1 facing up
0x2 facing north
0x3 facing south
0x4 facing west
0x5 facing east
0x6, 0x7 6-sided piston
0x8 (bit flag) When 1, the piston is extended.

Achievements

Icon Achievement In-game description Actual requirements (if different) Availability Xbox points earned Trophy type (PS)
Xbox PS Pocket Wii U

Inception Push a piston with a piston, then pull the original piston with that piston. No No Yes No 20G ⃢₀ₔ

Video

History

Beta
1.7 Added pistons.
The original piston was a mod posted on the Minecraft Forums by Hippoplatimus. 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, including the idea of Tile Entities to track moving blocks.
Be that as it may, 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. At long last, 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.
The piston texture as screen-captured while in development had iron bands running over the head. The bands were removed for the release, leaving only iron brackets around the corners and edges.
1.7_01 Sticky pistons do not stick when they aren`t retracting.
1.7.3 It is now impossible to place a jack o`lantern onto a sticky piston.
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.
1.7.2 13w37a Block 34 (Piston Head) and Block 36 (Piston Extension) are removed from the /give command.
1.8 14w17a When all blocks were converted to use block states, block/data-value combinations 33/6, 33/7, 29/6 and 29/7 (6-sided pistons) were removed.
14w18a

Crafting

Sticky Piston
None None None
None
Slimeball
None
None
Piston
None