diff options
author | kwolekr <kwolekr@minetest.net> | 2014-02-08 17:50:26 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-02-08 17:50:59 -0500 |
commit | 83bafbe08b508266d31a6a76f1ffc2cddc662390 (patch) | |
tree | 555f877e367a8e1a00200c3fe3fa889538169291 /doc/lua_api.txt | |
parent | f4f98c9550325aa8178f99cd32ea8806669aa280 (diff) | |
download | minetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.tar.gz minetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.tar.bz2 minetest-83bafbe08b508266d31a6a76f1ffc2cddc662390.zip |
Make flag strings clear specified flag with 'no' prefix
Remove flagmask field from set_mapgen_params table
Add small bits of needed documentation
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 5536d0bfd..aef17bec8 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1360,11 +1360,10 @@ minetest.get_mapgen_object(objectname) minetest.set_mapgen_params(MapgenParams) ^ Set map generation parameters ^ Function cannot be called after the registration period; only initialization and on_mapgen_init -^ Takes a table as an argument with the fields mgname, seed, water_level, flags, and flagmask. +^ Takes a table as an argument with the fields mgname, seed, water_level, and flags. ^ Leave field unset to leave that parameter unchanged -^ flagmask field must be set to all mapgen flags that are being modified -^ flags contains only the flags that are being set -^ flags and flagmask are in the same format and have the same options as 'mgflags' in minetest.conf +^ flags contains a comma-delimited string of flags to set, or if the prefix "no" is attached, clears instead. +^ flags is in the same format and has the same options as 'mg_flags' in minetest.conf minetest.clear_objects() ^ clear all objects in the environments minetest.line_of_sight(pos1, pos2, stepsize) -> true/false, pos |