aboutsummaryrefslogtreecommitdiff
path: root/data/mods
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-03 18:18:59 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 18:18:59 +0200
commit7d37913ea4f83807c508cec81b39744d69f481f8 (patch)
treeeaf6e035f40e8a82a5aabe06fdb73bcfce895224 /data/mods
parentac56053c74387caad518a2233accad14d7d855ef (diff)
downloadminetest-7d37913ea4f83807c508cec81b39744d69f481f8.tar.gz
minetest-7d37913ea4f83807c508cec81b39744d69f481f8.tar.bz2
minetest-7d37913ea4f83807c508cec81b39744d69f481f8.zip
Add ABM required neighbor check
Diffstat (limited to 'data/mods')
-rw-r--r--data/mods/default/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 2e07b5412..7383996b1 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -73,6 +73,7 @@
-- minetest.register_node(name, node definition)
-- minetest.register_craftitem(name, craftitem definition)
-- minetest.register_craft(recipe)
+-- minetest.register_abm(abm definition)
-- minetest.register_globalstep(func(dtime))
-- minetest.register_on_placenode(func(pos, newnode, placer))
-- minetest.register_on_dignode(func(pos, oldnode, digger))
@@ -285,6 +286,16 @@
-- }
-- }
--
+-- ABM (ActiveBlockModifier) definition:
+-- {
+-- nodenames = {"lava_source"},
+-- neighbors = {"water_source", "water_flowing"}, -- (any of these)
+-- ^ If left out or empty, any neighbor will do
+-- ^ This might get removed in the future
+-- interval = 1.0, -- (operation interval)
+-- chance = 1, -- (chance of trigger is 1.0/this)
+-- action = func(pos, node, active_object_count, active_object_count_wider),
+-- }
-- print("minetest dump: "..dump(minetest))