Go to file
Robert Zenz ac92a583a0 Fixed link. 2015-04-28 19:12:06 +02:00
deps Updated to changes in util. 2015-04-22 21:58:55 +02:00
doc The support object is now also used in the init process. 2015-02-07 11:45:52 +01:00
mods Fixed link. 2015-04-28 19:12:06 +02:00
test Added tests, and TerraGenitor can now also accept functions as modules. 2015-01-18 18:23:54 +01:00
.gitmodules Added everything. 2014-12-02 22:05:08 +01:00
LICENSE Initial commit 2014-12-02 21:55:08 +01:00
Makefile Added tests, and TerraGenitor can now also accept functions as modules. 2015-01-18 18:23:54 +01:00
README Extended with some information. 2015-01-31 11:16:35 +01:00
README.md Fixed link. 2014-12-02 22:05:56 +01:00
game.conf Added everything. 2014-12-02 22:05:08 +01:00

README.md

minetest-australopithecus-terragenitor

A simple, module based system to create value maps, sculpting the world or placing decorations and plants.

Terragenitor

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

Sculptor

A system for sculpting the world using the LuaVoxelManipulator.

Flora

A system for placing plants and/or decorations.