Snowline Pass: Alpine Mountains and Pine Forest to Walk, with a Mountain Builder
README.md
Cabin
Stands a whole mountain hut on its entity: logHut (notched log walls, shingle roof, stone chimney, bench and woodpile), stoneHut (dry-stone walls, slate roof, deep small windows, bench and water trough) or aFrame (steep shingle A-frame on a stone base with a timber gable, porch deck and stovepipe). The hut is assembled by alpineProps.Cabin from baked parts as temporary child entities with a box collider per part, rebuilt from the synced fields, so every player sees and bumps into the same hut. The door faces the entity's +Z; the footprint is about 5 x 6 m centred on the entity. Needs no other component.
local hut = entity.spawn("lakeHut", { position = { 40, 0, 12 } })
hut.component.add("alpineProps.CabinHut", { style = "stoneHut", season = "winter" })
| Field | Default | Meaning |
|---|---|---|
style | logHut | logHut, stoneHut, aFrame |
season | summer | spring, summer, autumn, winter |
look | real | real, painted, toon |
snow | auto | snow on roof, rails and sills: auto (winter), on, off |
seed | 1 | turns the loose props (bench, woodpile, trough) a little differently |
component:hut() returns { root, style, parts, colliders } once built.