PropGallery.component
This package holds more than this page lists. See all of its files in its world.
README.md
PropGallery
Lays out every jungleProps kind (plants and structures) side by side and labelled, one band per look along +Z, each variant beside the next, so you can see what JungleProp builds. Fields: looks (all or a comma list), kinds (all, or kinds, categories such as emergent/canopy/fungi, or layers), detail, width, labels, floor, collide, maxSize (props wider than this many metres stand scaled down to fit, labelled with the scale), readFrom (front or back: which side the floor labels read from) and buildWithin (each look band stands only while the on-screen camera is within this many metres of it and is taken down 12 m further out; 0 = everything always). Hanging kinds hang from their own length, bark kinds sit on a post, the climbing vine gets a trunk. Everything is temporary, rebuilt on every machine and spread over frames. status() says which bands stand, how many props a full build holds, the gallery's size and the camera's distance. Attach to any empty entity far from your level; no sibling components needed.
entity.spawn("gallery", { position = { 0, 0, 200 } }).component.add("jungleProps.PropGallery", { looks = "real,toon", kinds = "emergent,canopy" })
-- beside a level: compact, cheap until someone walks over
entity.spawn("gallery", { position = { 270, -1, -253 }, rotation = { 0, 1, 0, 0 } }).component.add("jungleProps.PropGallery",
{ width = 360, maxSize = 4, detail = "auto", readFrom = "back", buildWithin = 30 })