3-High Working Castle Gate

This 3-high working castle gate uses tileable vertical triple piston extenders to push a wall of fences up and down, creating a full-height portcullis opening tall enough to ride a horse through. Controlled by a copper bulb toggle with buttons on both sides, it makes an impressive main entrance for medieval castles and survival bases in Minecraft Bedrock.

Piston DoorsIntermediateBedrock Edition
3-High Working Castle Gate video tutorial

Video: Minecraft Bedrock: How To Build a WORKING CASTLE GATE! 1.21 Tutorial by Tomco

How to build it

  1. Dig the Foundation

    Clear a trench that is 4 blocks deep (front-to-back) and at least 3 blocks longer than your desired gate width. The floor level of your gate will sit 3 blocks above the bottom of this trench.

  2. Place the Bottom Sticky Pistons

    At the far right of your gate line, stack 3 sticky pistons facing upward, and place a solid block on top of the highest one. On the back of the top sticky piston, attach 1 more sticky piston facing up with an observer on top of it facing forward toward the stack.

  3. Wire the First Extender Slice

    On the front of the bottom sticky piston, place redstone dust on the floor. Put a top slab against the middle sticky piston with dust on it, another top slab behind it on the side with dust, and a solid block one step higher at the back with dust on top.

  4. Build the Pulse Driver Circuit

    To the right of the front floor dust, feed a 1-tick repeater into it from a solid block with dust behind that block. Place a solid block behind that dust, run a comparator into it, place blocks behind and on top of the comparator, and wire dust across the top so it forms a small comparator pulse loop.

  5. Add the Lower Timers and Observers

    Under the comparator loop's side block, attach a downward-facing observer leading into a 3-tick repeater, and place a solid block with dust next to the middle slab. From the front block, run a 3-tick repeater toward the back into a block, and below it place a 1-tick repeater facing the opposite way with an upward observer and dust on top.

  6. Stack the Gate Fences

    Leave a 3-block air gap above the solid block on your triple piston extender (use temporary blocks), then stack your fences between 6 and 9 blocks high. Break the 3 temporary blocks underneath when done.

  7. Install the Top Downward Pistons

    Directly above the top fence post, leave a 3-block gap and hang a vertical stack of 3 regular pistons facing downward. Behind the middle regular piston, place an observer watching it, another observer two blocks below watching the top fence position, and a top slab between them with redstone dust on everything.

  8. Wire the Buttons and Copper Bulb Toggle

    At floor level on the right side of the frame, place your inside and outside buttons separated by 3 blocks. Connect both button outputs with dust and a 1-tick repeater into a block adjacent to a Copper Bulb.

  9. Connect the Toggle to the Bottom Extender

    Read the Copper Bulb with a comparator running into a solid block. Attach a downward-facing sticky piston to that block with a downward-facing observer underneath it so that toggling the bulb pulses the bottom triple extender circuit.

  10. Run the Torch Tower to the Top Pistons

    From the comparator output block, build a vertical redstone torch tower all the way up to the top piston assembly, adjusting it so the very top torch defaults to ON. Place a sticky piston on the top torch pushing an observer that powers the top downward-piston dust line when the torch turns off.

  11. Expand the Gate Width

    To widen the gate (up to 13 blocks wide), repeat the 3 upward sticky pistons, the rear sticky piston with its forward observer, the slabs, and the dust lines straight across to the left. Do the same for the fence columns and the 3 downward regular pistons at the top, replacing the extra top rear observers with top slabs and dust.

How it works

This castle gate operates by pairing two opposing triple piston extenders for every column of fences—one pushing up from underground and one pushing down from the archway roof:

  • Copper Bulb T Flip-Flop: Pressing either button powers the Copper Bulb, toggling its lit state on or off. A comparator reads this state continuously.
  • Opening the Gate (Pushing Up): When the bulb turns on, the comparator powers the bottom circuit and turns off the top torch in the vertical torch tower. Turning off the top torch retracts the top sticky piston, ensuring the upper assembly stays out of the way, while the bottom downward sticky piston pulses the lower comparator/repeater loop. The bottom 3 sticky pistons fire in a timed sequence to push the solid floor block and the entire fence column 3 blocks upward.
  • Closing the Gate (Pushing Down): Pressing the button again toggles the Copper Bulb off. The bottom triple extender retracts the floor block back down 3 spaces. Simultaneously, the top torch in the tower turns back on, extending its sticky piston to move an observer into position, which triggers the 3 downward regular pistons to cycle and push the fence column 3 blocks back down to floor level.

Tips & variations

  • Maximum Gate Size: You can make the gate up to 9 fences tall and up to 13 blocks wide. Going wider than 13 blocks exceeds the 15-block redstone signal strength limit along the horizontal dust lines.
  • Save Quartz on the Top Row: Only the first column of downward pistons at the top needs the two rear observers; for all additional columns to the left, you can simply run top slabs with redstone dust across behind the pistons.
  • Top Torch State: Depending on whether your fence height is an odd or even number of blocks, your torch tower may end on an OFF torch. If it does, offset one torch to the side by one block to invert the signal so the final torch is ON while the gate is closed.
  • Bedrock Exclusive: This specific triple extender timing relies on Minecraft Bedrock piston and observer behavior and will not work properly in Java Edition.

Frequently asked questions

How wide and tall can I make this castle gate?
Each column can hold up to 9 fences vertically, and you can tile the gate up to 13 blocks wide without needing signal repeaters in the middle of the door.
Does this 3-high castle gate work on Minecraft Java Edition?
No, this design relies on Bedrock Edition's piston and observer timings and will break if built in Java Edition.
Why are my top pistons firing at the wrong time?
Check the very top redstone torch of your vertical torch tower while the gate is in its closed state. That top torch must be ON before you place the final sticky piston and observer on it; if it is off, add a one-block step in the tower to invert it.

Components used

More bigger doors