How to Make a Piston in Minecraft

Cobblestone Generator

From monster traps to automated farms, pistons can be used in all manner of weird and wonderful ways.

A piston works by extending and pushing up to 12 blocks. If you want pulling power, you can modify a piston to create a sticky piston. These sticky machines will pull up to 12 blocks towards the piston block. 

There are plenty of tutorials out there that can show you how to make amazing machines using pistons. Once we’ve taught you how to make them you should have a look.

Pistons are also GREAT for making a Cobblestone Generator, an excellent Redstone machine to constantly create Cobblestone when you need it.

Be sure to check out our other guides that give step-by-step instructions on how to do anything Minecraft.


Platform Information

Pistons are supported on all platforms. 

Platform Version Added Supported?
Java (PC/Mac) 1.7 Yes
Pocket Edition 0.15.0 Yes
Xbox 360 TU3 Yes
Xbox One CU1 Yes
PS3 1.0 Yes
PS4 1.0 Yes
Wii U Patch 1 Yes
Nintendo Switch 1.01 Yes
Windows 10 1.0 Yes
Education Edition 1.0 Yes

Finding a Piston in Creative Mode

To get a piston in creative mode, you just need to know which menu to use.

The menu names and categories have changed between versions and across consoles. 

Platform Version Menu
Java (PC/Mac) 1.8 -1.16.2 Redstone
Pocket Edition 0.15.0 – 1.1.3

1.2 – 1.16.20



Xbox 360 TU35 – TU69 Redstone and transportation
Xbox One CU23 -CU43

1.2.5 – 1.16.20

Redstone and transportation


PS3 1.26 -1.76 Redstone and transportation
PS4 1.26-1.91

1.14.0 – 1.16.20

Redstone and transportation


Wii U Patch 3- Patch 38 Redstone and transportation
Nintendo Switch 1.04 -1.11

1.5.0 – 1.16.20

Redstone and transportation


Windows 10 0.15.0 – 1.1.3

1.2 – 1.16.20

Redstone and transportation


Education Edition 1.0 – 1.0.18

1.0.21 – 1.14.31



Crafting a Piston in Survival Mode

Required Materials

You will need 3 planks of wood, 1 iron ingot, 1 redstone dust, and 4 cobblestones.

It doesn’t matter what wooden planks you use as long as you have 3 of a kind. The type of wood won’t change the appearance of the piston or its function.

Iron ingots can be acquired by smelting iron ore in a furnace. 

Redstone dust is crafted by placing redstone blocks into the crafting grid. You will need an iron or diamond pickaxe to mine redstone.

Cobblestones are collected when you break up stones with any pickaxe.

How to Craft a Piston

1. Open the crafting menu

You will need to use a crafting table to make a piston.

When you approach a crafting table, press the appropriate button to open up the crafting menu. 

Platform Control
Java (PC/Mac) Right-click
Pocket Edition Tap 
Xbox 360 LT button
Xbox One LT button
PS3 R2 button
PS4 R2 button
Wii U ZL button
Nintendo Switch ZL button
Windows 10 Right-click
Education Edition Right-click

2. Place the materials

When the crafting menu opens, you will see a 3×3 grid and your inventory. The grid is where the crafting happens! 

You will need to place your materials in a specific arrangement. Just throwing them into the grid as you like will only create a mess! 

For a piston you need to place the wooden planks in the first row. The second row should be cobblestone, then iron ingot, then cobblestone. The third row should be cobblestone, redstone dust, cobblestone. 

If you prefer a visual representation, take a look at the following diagram.




W= wooden planks, C= cobblestone, R= redstone dust, and I= iron ingot.

3. Collect your piston

When you place the last material in the correct place, a piston will appear in the box to the right of the grid. 

You must select this piston and move it to your inventory to complete the crafting process. 

If you exit the crafting menu without collecting your piston, all the materials will drop to the floor around the crafting table. 

You’ll have to pick them all up and start the crafting process again. This is annoying. So remember to collect your crafted items! 

Item ID and Name

Platform ID Name Minecraft ID Data Value Version
Java (PC/Mac) minecraft:piston




0 1.8-1.12

1.13 -1.16.3

Pocket Edition minecraft:piston 33 0 0.16.0 – 1.16.50
Xbox 360 N/A N/A N/A N/A
Xbox One minecraft:piston 33 0 1.6.0 – 1.16.40
PS4 minecraft:piston 33 0 1.14.0 – 1.16.40
Wii U N/A N/A N/A N/A
Nintendo Switch minecraft:piston 33 0 1.6.0 – 1.16.40
Windows 10 minecraft:piston 33 0 0.16.0 – 1.16.40
Education Edition minecraft:piston 33 0 1.0 – 1.14.31

Give Command 

Platform Give command
Java (PC/Mac)

Java (versions 1.8 onwards)

/give @p piston 1

/give @p piston 1 0

Pocket Edition /give @p piston 1 0
Xbox 360 N/A
Xbox One /give @p piston 1 0
PS4 /give @p piston 1 0
Wii U N/A
Nintendo Switch /give @p piston 1 0
Windows 10 /give @p piston 1 0
Education Edition /give @p piston 1 0

Using a Piston

There are so many different machines you can make using a piston. However, the first thing you are going to need to know is how to make a sticky piston. 

After all, most machines and automations need a pulling action to oppose the pushing action. 

Sticky pistons are crafted using a piston and a slimeball. It really is as simple as that! 

Whatever machine or trap or process you decide to use your piston in, you will need to power it. 

Redstone torches are used to power pistons while switches, pressure plates and tripwires can be used to activate the power. 

You really should search up some automated machine you can build using pistons. It will save you so much time on repetitive tasks like farming and wood chopping!