Press Win + R , type %appdata%\.minecraft , and hit Enter.
Collect at least 4 Sticky Pistons, 10-15 Redstone Dust, 2 Pressure Plates, and building blocks (stone or wood).
Find a flat area or a natural pathway where mobs (or unsuspecting players) usually walk. Step 2: Designing the Piston Trap