From 280e1a2512c71ef0d38643d8b245c40b285879ae Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 31 Mar 2012 12:30:11 +0300 Subject: Allow group:groupname in ABM definition and implement minetest.hash_node_position() --- doc/lua_api.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/lua_api.txt') 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 -- cgit v1.2.3