Mirage Wells: Desert Dunes, Oasis and Ruins Kit
README.md
Desert
Drops a whole walkable desert into a world. Add it to any entity (its position is the desert's centre): size, kind (duneSea, mesaCountry, oasisValley, saltPan, buriedCity), dunes (auto, crescent, linear, star, transverse, barchanoid, parabolic, dome, reversing), duneHeight, density, seed, sand (auto, ochre, red, pale), look, route, spawnAtCamp, horizon, quality, keepClear. Every field is synced and the desert is built from the fields alone on every machine, so every player walks the same dunes; changing a field rebuilds it. It needs no sibling components; add a WorldClock and a DesertAtmosphere for time of day, weather and sound. :desert() answers the built desert, :status() where it is in its life, :rebuild() builds it again.
keepClear (text, empty by default) keeps props off corridors and circles, such as a race track: entries split by ;, each a corridor x1,z1,x2,z2,halfWidth or a circle x,z,r, in world metres. A prop whose footprint reaches into one is left out with its collider; the ground is not changed or cooked again. require("desertKit.DesertBuilder").clearPath(points, halfWidth) builds the string from a closed list of {x, y, z} points.