Log inGet started
Package

AlpineProp.component

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

README.md

AlpineProp

Puts one alpineProps prop on its entity: any kind AlpineProps.kinds() lists (conifers, dead and fallen trees, and the shrubs, flowers, rocks and structures the other catalogs register). It builds one child per part, each a Model with a MeshLod swapping to the cheaper bakes as the prop shrinks on screen, and a static collider child from the catalog entry (sized per age for trees, tagged with the attribute forestSurface). The children are temporary and rebuilt from the synced fields, so every player builds the same prop and a reload rebuilds it. Needs nothing else on the entity.

local e = entity.spawn("spruce")
e.component.add("alpineProps.AlpineProp", { kind = "spruce", age = "old", season = "winter" })
FieldDefaultMeaning
kindspruceany kind AlpineProps lists
agematuresapling, young, mature, veteran ("old" = veteran)
seasonsummerspring, summer, autumn, winter (larch gold in autumn, bare in winter)
lookrealreal, painted, toon
variant1baked shape variant (wraps)
seed0non-zero picks the variant and a yaw from the seed (scattering)
detailautoauto swaps LODs by screen size; near, mid, far pin one
collidetruebuild the static collider
snowautosnow on the branches: auto (winter), on, off

For whole forests use forestKit's Forest / ForestRender, which draws the same kinds instanced.