VOOZH about

URL: https://minecraft.wiki/w/Piston_head

⇱ Piston/Technical components – Minecraft Wiki


Piston/Technical components

From Minecraft Wiki
(Redirected from Piston head)
Jump to navigation Jump to search

Pistons and sticky pistons have 2 technical blocks that cannot be obtained. These include the piston head and moving piston blocks.

Piston head

[edit | edit source]
Piston Head
Renewable Yes
Stackable No
Tool 👁 SlotSprite Pickaxe Required.png: Sprite image for Pickaxe Required in Minecraft
Blast resistance 1.5
Hardness 1.5
Luminous No
Transparent Yes
Flammable No
Catches fire
from lava
No
Map color
 11 STONE
Note block instrument Default (Harp)
{
 "title": "Piston Head",
 "rows": [
 {
 "field": "Yes",
 "label": "(link to Renewable resource article, displayed as Renewable)"
 },
 {
 "field": "No",
 "label": "Stackable"
 },
 {
 "field": "<span class=\"sprite-file\" style=\"height:32px;width:32px;--vertical-align:middle\">(link to File:SlotSprite Pickaxe Required.png article, displayed as 32x32px|link=|alt=SlotSprite Pickaxe Required.png: Sprite image for Pickaxe Required in Minecraft|class=pixel-image|This block can be broken with any tool, but a pickaxe is the quickest)</span>",
 "label": "Tool"
 },
 {
 "field": "1.5",
 "label": "(link to Explosion#Blast resistance article, displayed as Blast resistance)"
 },
 {
 "field": "1.5",
 "label": "(link to Breaking#Blocks by hardness article, displayed as Hardness)"
 },
 {
 "field": "No",
 "label": "(link to Light article, displayed as Luminous)"
 },
 {
 "field": "Yes",
 "label": "(link to Opacity article, displayed as Transparent)"
 },
 {
 "field": "No",
 "label": "(link to Flammable article, displayed as Flammable)"
 },
 {
 "field": "No",
 "label": "Catches fire<br>from (link to lava article, displayed as lava)"
 },
 {
 "field": "<span style=\"white-space: nowrap;\"><span style=\"display: inline-block; background-color: rgb(112, 112, 112); border: 1px solid #888; border-radius: 0.3em; color: transparent; width: 1em; height: 1em; vertical-align: -0.36em; margin-right: -0.1em\"><br></span> 11 STONE</span>",
 "label": "(link to Map color article, displayed as Map color)"
 },
 {
 "field": "Default (Harp)",
 "label": "(link to Note Block#Instruments article, displayed as Note block instrument)"
 }
 ],
 "invimages": [
 "Piston Arm Collision",
 "Sticky Piston Arm Collision"
 ],
 "images": [
 "Piston Head.png",
 "Piston Head BE.png",
 "Sticky Piston Head.png",
 "Sticky Piston Head BE.png"
 ]
}

The piston head (in Java Edition) or (sticky) piston arm collision (in Bedrock Edition) is a technical block that appears as the front part of an extended piston. It is not available in the Creative inventory and does not drop anything when removed.

Normally, piston heads are created automatically when a piston extends. However, they can also be placed manually using the /setblock command. Alternatively a debug stick[Java Edition only] can be used to change the facing direction of a piston head that's currently attached to a piston base. Piston heads that do not have a valid support block behind them will be removed when receiving a shape update from behind in Java Edition, or when receiving a block update from any direction in Bedrock Edition.

In rare cases, a client-side, duplicate piston head can appear when placing a piston next to a power source in Java Edition, due to client-server desync issues.[1] These client-side piston heads cannot be broken directly but can be removed by placing another block in the same location.

In Java Edition, normal and sticky piston heads are distinguished by a block state. In Bedrock Edition, they use separate block IDs. The normal and sticky piston heads can be obtained as items in Bedrock Edition with the commands /give @s piston_arm_collision and /give @s sticky_piston_arm_collision. They face down when placed.

In Bedrock Edition, piston head blocks do not actually have a texture, as the piston arm texture is part of the piston block entity, and piston heads that aren't connected to a piston base have neither collisions nor an interaction box.

Natural generation

[edit | edit source]

Heads of sticky pistons powered with redstone generate in jungle pyramid and ancient city.

Block states

[edit | edit source]
See also: Block states

Java Edition:

Name Default value Allowed values Description
facingnorthdown
east
north
south
up
west
The direction the piston head is pointing.
shortfalsefalse
true
If true, the piston arm is shorter than usual, by 4 pixels.
typenormalnormal
sticky
The type of piston head.

Bedrock Edition:
Piston Head:

NameMetadata Bits Default value Allowed valuesValues for
Metadata Bits
Description
facing_direction0x1
0x2
0x4
00
1
2
3
4
5
0
1
2
3
4
5
The direction the piston head is pointing.
  • 0: facing up
  • 1: facing down
  • 2: facing south
  • 3: facing north
  • 4: facing east
  • 5: facing west

Sticky Piston Head:

NameMetadata Bits Default value Allowed valuesValues for
Metadata Bits
Description
facing_directionNot Supported00
1
2
3
4
5
UnsupportedThe direction the piston head is pointing.
  • 0: facing up
  • 1: facing down
  • 2: facing south
  • 3: facing north
  • 4: facing east
  • 5: facing west

Moving piston

[edit | edit source]
Moving Piston
Renewable Yes
Stackable No
Tool None
Blast resistance 0
Hardness -1
Luminous No
Transparent Yes
Flammable No
Catches fire
from lava
No
Map color
 11 STONE
Note block instrument Default (Harp)
{
 "title": "Moving Piston",
 "rows": [
 {
 "field": "Yes",
 "label": "(link to Renewable resource article, displayed as Renewable)"
 },
 {
 "field": "No",
 "label": "Stackable"
 },
 {
 "field": "None",
 "label": "Tool"
 },
 {
 "field": "0",
 "label": "(link to Explosion#Blast resistance article, displayed as Blast resistance)"
 },
 {
 "field": "-1",
 "label": "(link to Breaking#Blocks by hardness article, displayed as Hardness)"
 },
 {
 "field": "No",
 "label": "(link to Light article, displayed as Luminous)"
 },
 {
 "field": "Yes",
 "label": "(link to Opacity article, displayed as Transparent)"
 },
 {
 "field": "No",
 "label": "(link to Flammable article, displayed as Flammable)"
 },
 {
 "field": "No",
 "label": "Catches fire<br>from (link to lava article, displayed as lava)"
 },
 {
 "field": "<span style=\"white-space: nowrap;\"><span style=\"display: inline-block; background-color: rgb(112, 112, 112); border: 1px solid #888; border-radius: 0.3em; color: transparent; width: 1em; height: 1em; vertical-align: -0.36em; margin-right: -0.1em\"><br></span> 11 STONE</span>",
 "label": "(link to Map color article, displayed as Map color)"
 },
 {
 "field": "Default (Harp)",
 "label": "(link to Note Block#Instruments article, displayed as Note block instrument)"
 }
 ],
 "invimages": [
 "movingBlock"
 ],
 "images": []
}

The moving piston (in Java Edition) or moving block (in Bedrock Edition), also known as block 36 due to its pre-flattening block ID, is an unobtainable technical block that holds a block entity (unless it was placed with a command) which contains the block the piston is currently moving. Since moving blocks vary in how much of each grid cell they occupy, they can't be stored as normal blocks and are instead stored as block entity data. Multiple moving piston blocks may be used during the extension/retraction process, depending on how many blocks the piston is moving. At the end of the piston stroke, the moving piston blocks are replaced with either the carried block, the piston head (during extensions), or the piston itself (during retractions); but if it is placed with the use of commands it remains indefinitely.‌[Java Edition only]

When placed by commands, the game does not assign a block entity to the moving piston block,[verify] therefore its properties are different than usual: it's invisible, has no collisions, and cannot be broken without the use of TNT, commands, or a structure generating over it (such as the end platform). Although it is non-solid, fluids cannot pass through it. It also prevents players from building at its location. Mobs can see through it, but cannot walk through it. The game treats the block as a stone block when it comes to the player's footstep sounds. It is similar to invisible bedrock in properties with the exception that the player can walk through the moving piston but not invisible bedrock.

Block states

[edit | edit source]
See also: Block states

Java Edition:

Name Default value Allowed values Description
facingnorthdown
east
north
south
up
west
The direction the block is being pushed by the piston.
typenormalnormal
sticky
What piston base this has.

Block data

[edit | edit source]

The moving piston has a block entity associated with it that holds additional data about the block.

Java Edition:

  • [NBT Compound / JSON Object] Block entity data
    • Tags common to all block entities see Template:Nbt inherit/blockentity/template
    • [NBT Compound / JSON Object] blockState: The moving block represented by this block entity.
    • [Byte] extending: 1 or 0 (true/false) – true if the piston is extending instead of withdrawing.
    • [Int] facing: Direction that the piston pushes (0=down, 1=up, 2=north, 3=south, 4=west, 5=east).
    • [Float] progress: How far the block has been moved. Starts at 0.0, and increments by 0.5 each tick, including the tick on which moving the piston is created. If the value is 1.0 or higher at the start of a tick of the block entity (before incrementing), then the block transforms into the stored blockState. Negative values can be used to increase the time until transformation.
    • [Byte] source: 1 or 0 (true/false) – true if the block represents the piston head itself, false if it represents a block being pushed.

Bedrock Edition:

See Bedrock Edition level format/Block entity format.

Data values

[edit | edit source]

Java Edition:

NameIdentifierFormBlock tags Translation key
👁 BlockSprite piston-head.png: Sprite image for piston-head in Minecraft
Piston Head
piston_headBlockNone block.minecraft.piston_head
👁 BlockSprite moving-piston.png: Sprite image for moving-piston in Minecraft
Moving Piston
moving_pistonBlockdragon_immune
wither_immune
block.minecraft.moving_piston
NameIdentifier
👁 BlockSprite moving-piston.png: Sprite image for moving-piston in Minecraft
Block entity
piston

Bedrock Edition:

NameIdentifierAlias ID Numeric ID FormItem ID[i 1] Translation key
👁 BlockSprite piston-arm-collision.png: Sprite image for piston-arm-collision in Minecraft
Piston Arm Collision
piston_arm_collisionpistonArmCollision34Block & Ungiveable Item[i 2]Identical[i 3] tile.piston_arm_collision.name
👁 BlockSprite piston-head.png: Sprite image for piston-head in Minecraft
Sticky Piston Arm Collision
sticky_piston_arm_collisionstickyPistonArmCollision472Block & Ungiveable Item[i 2]Identical[i 3]
(Numeric: -217)
tile.sticky_piston_arm_collision.name
👁 BlockSprite moving-piston.png: Sprite image for moving-piston in Minecraft
Moving Block
moving_blockmovingBlock250Block & Ungiveable Item[i 2]Identical[i 3]
  1. ID of block's direct item form, which is used in savegame files and addons.
  2. a b c Unavailable with /give command
  3. a b c The block's direct item form has the same ID as the block.
NameSavegame ID
👁 BlockSprite moving-piston.png: Sprite image for moving-piston in Minecraft
Block entity
MovingBlock

History

[edit | edit source]
There is an associated technical blocks page for the internal item form of this block; see Technical blocks/Pistons.
Java Edition Beta
1.7👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

Added piston head and moving piston blocks.
Java Edition
1.814w17a👁 Image
👁 Image
👁 Image
👁 Image
The models for piston and related blocks when facing up and down have been changed.
14w27bThe moving piston block no longer has a selection outline.
14w29a👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

There are now "short" piston heads. Their model is used during a piston's extension/retraction to avoid having part of the head's texture poke out of the back of the piston.
1.1418w43a👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

The textures associated with piston heads have been changed.
While the texture for oak planks was later updated in subsequent snapshots, the piston texture is yet to be changed to reflect this.[2]
1.1922w17a👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

Changed piston textures, to match the color of the oak planks on the piston head.

Data history

[edit | edit source]

Java Edition

[edit | edit source]
Java Edition
1.814w29aAdded the "short=true/false" block state to piston_head.
1.11.116w50aAdded a new byte tag source for the piston_extension block entity, which is true if the block represents the piston head itself, and false if it represents a block being pushed.
1.1317w47aThe moving block ID of pistons has been changed from piston_extension to moving_piston.
Prior to The Flattening, these blocks' numeral IDs were 34 and 36.

Bedrock Edition

[edit | edit source]
Pocket Edition Alpha
v0.16.0build 5The movingblock block for pistons can no longer be placed using commands.
Bedrock Edition
1.13.0beta 1.13.0.9Sticky piston heads are now a separate block from normal heads, instead of being differentiated by a block state. The namespaced ID is now stickypistonarmcollision, while the numerical ID is 472.
1.18.30beta 1.18.30.26The ID of pistonarmcollision is changed to piston_arm_collision
The ID of stickypistonarmcollision is changed to sticky_piston_arm_collision
The ID of movingblock is changed to moving_block

Trivia

[edit | edit source]
  • Mobs can spawn inside the piston head block.
  • In Bedrock Edition, the piston head is invisible and non-solid when placed with commands. The moving piston disappears shortly after being placed with commands in this edition.
  • The moving_piston is transparent and does not emit light.
    • If a light-emitting block is moved, the player can see it turn dark briefly. If an opaque block is moved, the player may see light passing through it.

References

[edit | edit source]
  1. MC-254385
  2. MC-248841 – resolved as "Works As Intended".

Navigation

[edit | edit source]
Retrieved from "https://minecraft.wiki/w/Piston/Technical_components?oldid=3619787#Piston_head"

Navigation menu