Open Sesame: Doors, Switches, Locks and Chests Kit
README.md
Door
One of seven doors (hinged, double, sliding, garage roll-up, portcullis, secret bookcase, sci-fi airlock) in one of six looks (wood, scifi, cartoon, dungeon, neon, royal), chosen by its kind and look fields. Put it on an entity spawned with entity.spawnSynced so every player shares its open state. It builds its own frame, leaf and colliders as unsaved child parts; an open door is walkable. Needs nothing beside it; add interactKit.Interactable to change its prompt and interactKit.Lock to lock it. targets / playerOperable connect it to switches and trigger zones. wall builds wall pieces beside the frame, and wallMaterial puts your own wall's material on the door's stonework (those pieces, and a portcullis's jambs and gatehouse) so it matches the wall it is set into; with wallMaterial empty and matchWalls on (the default) the door takes the material and colour of the wall beside its frame by itself.