Minecraft wiki entry for Flying_machines, associated text: A one-way extensinon has 2 parts: a normal piston in the rear, and a slime block (or more) with a power source in the front with space between them.