Log inGet started
Package

CabinHut.component

This package holds more than this page lists. See all of its files in its world.

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" })
FieldDefaultMeaning
stylelogHutlogHut, stoneHut, aFrame
seasonsummerspring, summer, autumn, winter
lookrealreal, painted, toon
snowautosnow on roof, rails and sills: auto (winter), on, off
seed1turns the loose props (bench, woodpile, trough) a little differently

component:hut() returns { root, style, parts, colliders } once built.