mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Allow group:groupname in ABM definition and implement minetest.hash_node_position()
This commit is contained in:
parent
1518b8f753
commit
280e1a2512
5 changed files with 54 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue