summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-12-14 01:52:06 -0500
committerkwolekr <kwolekr@minetest.net>2013-12-14 01:52:24 -0500
commitc3708b456e90bccf19e7c82c54a93c8cb7c8896c (patch)
tree2f23bf39c67a34fc9582db07220b6f72209e1c39 /doc
parent83853ccd413c06a4a37a3c91f8c2cb270e42109c (diff)
downloadminetest-c3708b456e90bccf19e7c82c54a93c8cb7c8896c.tar.gz
minetest-c3708b456e90bccf19e7c82c54a93c8cb7c8896c.tar.bz2
minetest-c3708b456e90bccf19e7c82c54a93c8cb7c8896c.zip
Add map feature generation notify Lua API
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 28d8b9cc8..abfb8f94b 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1289,6 +1289,10 @@ minetest.get_perlin(seeddiff, octaves, persistence, scale)
^ Return world-specific perlin noise (int(worldseed)+seeddiff)
minetest.get_voxel_manip()
^ Return voxel manipulator object
+minetest.set_gen_notify(flags)
+^ Set the types of on-generate notifications that should be collected
+^ flags is a comma-delimited combination of:
+^ dungeon, temple, cave_begin, cave_end, large_cave_begin, large_cave_end
minetest.get_mapgen_object(objectname)
^ Return requested mapgen object if available (see Mapgen objects)
minetest.set_mapgen_params(MapgenParams)
@@ -1894,6 +1898,12 @@ the current mapgen.
Returns an array containing the humidity values of nodes in the most recently generated chunk by the
current mapgen.
+- gennotify
+ Returns a table mapping requested generation notification types to arrays of positions at which the
+corresponding generated structures are located at within the current chunk. To set the capture of positions
+of interest to be recorded on generate, use minetest.set_gen_notify().
+Possible fields of the table returned are: dungeon, temple, cave_begin, cave_end, large_cave_begin, large_cave_end
+
Registered entities
--------------------
- Functions receive a "luaentity" as self: