Requires https://notabug.org/redo/luainc
terrain.lua provides
GenerateTerrain(
position {x, y, z} - Real world position of southwest corner of map
box - {minX, minY, maxX, maxY} - Range of positions to query height/color for and build
cubeHeight - 0.25, 0.5, 0.75, 1, or 2 - modter height ratio
getHeight(x, y) - function that returns height (in cubes) at a given position
getColor(x, y) - function that returns colorID at a given position
printName - name of print to apply to modter bricks i.e. "letters/A"
) - Creates a terrain object
BuildTerrain(terrain) - Plant bricks for terrain object
DeleteTerrain(terrain) - Remove bricks that were planted for terrain object
ReplaceTerrain(oldTerrain, newTerrain) - Replace one terrain object's bricks with another, preserving unmodified bricks