![Image](https://raw.githubusercontent.com/minetest-mods/castle_gates/master/screenshot.png)
This mod contains parts for building large multi-node swinging doors, sliding portcullises, sliding doors, and drawbridges. Currently all of the included nodes and textures are medieval-themed but there's a generic API that can be used to add new gate nodes relatively easily if someone wants to make something in a different style.
When building a swinging door, make sure that all of the hinge blocks line up with each other. Otherwise the gate won't be able to calculate what axis it's supposed to swing around and won't move. If you're building a double door, use the "edge" nodes to create the dividing line where the two doors meet. Edge nodes aren't strictly required for a door that stands on its own, they're only needed to keep doors from accidentally "fusing" with neighbors they aren't supposed to fuse with.
A swinging door only exists in 90-degree rotation steps, but it does check to ensure that the space it's swinging through between rotation steps are clear and won't swing through them if there's an obstruction.
This mod supports the doc system for providing in-game documentation.
Links