Minecraft – Redstone avoid propagation upwards

minecraft-java-editionminecraft-redstone

I'm trying to create an elevator, but I'm stuck at powering them.
I have inputs for each piston, but I can't seem to separate them. It seems that the redstone powers the block beneath it, and all 3 pistons are extended.

p 
p - rt
p

Is there a way to power pistons that are on top of each other?
I am trying to avoid powering of the lower piston in the picture below.

enter image description here

Best Answer

Pistons are weird. Let me rephrase that: redstone is weird. It never behaves how you would expect it to, consistently. This is especially the case, however, with pistons.

Here's one example:

Pistons versus lamps 1

As you can see, the redstone lamps transfer power in a normal manner (solid block receiving direct power will power the adjacent blocks indirectly). The pistons, on the other hand, behave a little strangely. The first extended piston is powered directly, so it extends. The piston below that one is receiving power indirectly from the block that the redstone is placed on (the lamps behave similarly if you take away the middle lamp). But where the heck is that bottom piston getting power from?

Apparently, pistons can receive power diagonally, or from two blocks above. It was considered a bug for a long time, however, it has since been marked as "Works As Intended". There's a more specific bug report here as well.

Even adding a block in between the redstone and the piston doesn't fix it:

Pistons versus Lamps 2

So how do you fix this? Well, that depends on your intended design. If you're going where I think you're going, and going for something similar to a zipper elevator, you actually don't need to worry about this; the zipper design works despite the fact that pistons are activated 2 at a time. Otherwise, you might have to adjust your design, since no combination of blocks and redstone will power just one piston in a vertical tower of pistons. It all depends.