Now after getting all the necessary items as shown above, the next step is to place them on a crafting table to create a piston as shown below.
How to use sticky pistons and pistons
To use a sticky piston or piston you will need to power it up somehow. After placing a piston, you can power it up by sending it a redstone signal. There are several ways to do this, however all of these methods involve the use of Redstone in one way or another. Placing a redstone torch next to a piston will activate it, causing it to extend its head and push any blocks in front of it. Breaking the Redstone Torch will cause the opposite effect, causing the head to retract. This is the easiest way to activate and deactivate a piston, there are many more convenient and complex methods.
Using Redstone Dust to draw lines on the ground will allow you to create a circuit. A simple Redstone circuit can be a single Redstone powder line connecting a piston to a power source. A highly recommended power source for switching between the on and off states of a piston is a lever. Placing the lever at the end of a simple circuit as mentioned will allow you to use your plunger with ease. Turning the lever once will extend the head, while turning the lever again will retract the head.
Things you should know about the piston in Minecraft
Pistons are activated by a signal from Redstone. Pistons can block fluids. Therefore, they can be used as a controlled block. Also, they don’t burn in lava.
The only drawback is that you cannot push certain blocks like chest, stove, plate, generator, obsidian, portal blocks and a few others.
What is a piston?
A Piston pushes blocks, players and mobs in one direction when hit with a Redstone pulse and was introduced in patch 1.7. The piston has a pushing force of 12 blocks, if it exceeds this limit, it does not push. A piston will only push, it cannot pull like the sticky piston. The piston is a transparent block, which means it will not drive other blocks around it. The piston is a component to craft the sticky piston by creating a slime ball with a piston. To craft a piston, you can use any type of wooden planks, but you need cobblestone, not black stone. Honestly, you should be able to craft a piston out of Blackstone, but the developers consider it intentional.
Pistons and such are the cornerstone of Redstone. Pistons have allowed for many builds that would otherwise never be possible. Flying machines have automated many types of farms because their movement mechanisms use pistons, Sticky Piston to be exact. plunger feed belt, color-coded locking systems, etc. are possible with pistons. The imagination is the limit. You can think of anything and there will be a craft.
Place the wooden plank with the redstone dust ingots and cobblestones on the workbench exactly as follows:
Just move the piston you created in your inventory and voila!
good article