diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 12:30:11 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-31 12:30:11 +0300 |
commit | 280e1a2512c71ef0d38643d8b245c40b285879ae (patch) | |
tree | 93b8517ea206e8ceaeeb57e7aca964fc24b35a99 /doc | |
parent | 1518b8f7538aad3b64a2a8a4ddf285fd22469b94 (diff) | |
download | minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.tar.gz minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.tar.bz2 minetest-280e1a2512c71ef0d38643d8b245c40b285879ae.zip |
Allow group:groupname in ABM definition and implement minetest.hash_node_position()
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index e253d2a28..ba610da8b 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -542,6 +542,8 @@ minetest.after(time, func, param) Random: minetest.get_connected_players() -> list of ObjectRefs +minetest.hash_node_position({x=,y=,z=}) -> 48-bit integer +^ Gives a unique hash number for a node position (16+16+16=48bit) Global objects: minetest.env - environment reference @@ -768,6 +770,7 @@ Entity definition (register_entity) ABM (ActiveBlockModifier) definition (register_abm) { + -- In the following two fields, also group:groupname will work. nodenames = {"default:lava_source"}, neighbors = {"default:water_source", "default:water_flowing"}, -- (any of these) ^ If left out or empty, any neighbor will do |