A simple, module based system to create value maps, sculpting the world or placing decorations and plants.
A system for creating value maps. A "value map" in this case is really just a 2D array with the values you give it and assign to it.
Example usage:
-- Create a new instance of TerraGenitor.
local terragenitor = TerraGenitor:new()
-- Register the modules.
terragenitor:register(ExampleModule:new())
terragenitor:register(OtherModule:new())
-- Register a function.
terragenitor:register(function(self, x, z, value, info, support)
return value, info
end)
-- Init the whole system.
terragenitor:init()
-- Gets a map starting at the coordinates 0 and 0.
-- The size of the map defaults to constants.block_size, which is most
-- likely 80.
local map = terragenitor:get_map(0, 0)
-- Gets the value for the coordinates x 25 and z 30
local value = map[25][30].value
A system for sculpting the world using the LuaVoxelManipulator.
A system for placing plants and/or decorations.