Retractable Fences
Turn any fence into a castle portcullis. Build a wall of retractable fences, click it, and watch every column slide smoothly up into its top fence, leaving only the top row as a lintel. Click again (or wait a few seconds) and it comes back down.
Works with any fence from any mod: a retractable fence copies the look and connections of the fence it was made from.

Features
- Smooth animation: the whole gate rises and lowers together, and each fence hides inside the top fence of its column. Nothing pokes through the blocks above.
- Any fence, any mod: vanilla fences and fences from other mods keep their original appearance and connections. Fences added later work too.
- Auto-close: the gate closes by itself after 12 seconds (configurable), or with another click.
- Safe closing: mobs and players standing under the gate are pushed aside like a piston would. If there is no room, the gate opens again.
- Winch: a hand-cranked winch that controls up to 8 gates from up to 32 blocks away. Crank it by hand or power it with redstone.
- Redstone links: link a gate to any block that emits a signal: levers, buttons, pressure plates, sculk sensors, calibrated sculk sensors, and redstone blocks from other mods. A lever keeps it open while powered; a button, plate or sensor opens it and it closes by itself.
- Secure: a linked gate ignores direct clicks, so nobody can open your castle from outside.
- Gate inspector: click a gate with the Linker to see which fences belong to it, and which ones are missing a mechanism.
- Custom sounds: wooden creaks while moving and a wooden thud at the end.
- JEI support: recipes for every compatible fence.
- Lightweight: no per-tick work while gates are idle.
How to use
- Craft Retractable Fences: 1 Mechanism + 1 to 4 identical fences (shapeless) gives the same number of Retractable Fences. You can also use a Mechanism directly on a placed fence.
- Build a gate: stack them into a wall. All touching retractable fences form one gate (up to 256 blocks and 24 high).
- Open it: right-click any fence of the gate.
- Remote control: take the Linker, click a Winch or any redstone source, then click the gate. Sneak + click the gate with the Linker to unlink.
Recipes
- Mechanism: iron ingot + redstone dust + string (shapeless).
- Retractable Fence: 1 Mechanism + 1 to 4 identical fences (shapeless).
- Winch: stick on

