diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-06 04:18:04 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-06 13:53:35 -0500 |
commit | 5062b99cb0d252d9e377ff4560f7ecc9e66fd558 (patch) | |
tree | 3474c0734aac243cabfcf3af763becb4025da35b /doc | |
parent | 2b119e1e192ead701e69e261fe94ccb7382dbee7 (diff) | |
download | minetest-5062b99cb0d252d9e377ff4560f7ecc9e66fd558.tar.gz minetest-5062b99cb0d252d9e377ff4560f7ecc9e66fd558.tar.bz2 minetest-5062b99cb0d252d9e377ff4560f7ecc9e66fd558.zip |
Rewrite generate notification mechanism
Add support for notify-on-decoration
Clean up mapgen constructors
Clean up mapgen.cpp code style somewhat
Remove trailing whitespace from some files
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6c33d92d4..df4b59a05 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1533,10 +1533,11 @@ 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) +minetest.set_gen_notify(flags, {deco_ids}) ^ 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 +^ flags is a flag field with the available flags: +^ dungeon, temple, cave_begin, cave_end, large_cave_begin, large_cave_end, decoration +^ The second parameter is a list of IDS of decorations which notification is requested for minetest.get_mapgen_object(objectname) ^ Return requested mapgen object if available (see Mapgen objects) minetest.set_mapgen_params(MapgenParams) @@ -2220,7 +2221,9 @@ current mapgen. 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 +Possible fields of the table returned are: + dungeon, temple, cave_begin, cave_end, large_cave_begin, large_cave_end, decoration +Decorations have a key in the format of "decoration#id", where id is the numeric unique decoration ID. Registered entities -------------------- |