Vegetation
Client only. Plants trees, bushes and the like in this game only, any kind of vegetation the level has, as an editor does while its author works. A plant stands solid and bends in the wind like the level's own. The server does not know about it, and no other player sees it. A resource's plants are taken away when it stops or the world goes.
vegetation.kinds()
Vegetation.kinds()The level's vegetation kinds as mesh paths, in lower case; a kind's index is its place in the list. An empty entry is a kind the level keeps no mesh for. An empty list outside a world.
vegetation.plant()
Vegetation.plant(kind, position, options)Plants a kind at the position. Returns null when the game could not: outside a world, or a kind the level does not have. Throws a TypeError for a bad position, kind or turn, a RangeError for a position out of the world or a scale outside 1/64 to 255/64.
vegetation.plantMany()
Vegetation.plantMany(list)Plants many at once, 256 to a question to the game instead of one (each question waits a frame, so thousands of plants one by one take minutes). Returns a Plant or null for each entry, in the list's order; null where the game could not, as plant(). Throws as plant() does for a bad entry.
vegetation.planted()
Vegetation.planted()Your resource's plants that still stand.