Minecraft wiki entry for Headless_pistons, associated text: Using Debug Sticks, and a Block of Redstone, the player can place down the piston, then power it with the redstone block. The player can then set the piston’s “extended” state to true using the debug stick, then do the usual procedures with headless pistons.