diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-01-06 00:12:33 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-06 00:12:33 +0200 |
commit | 4f2c1e36a10ee00c6779a02dd4441fa680fb3497 (patch) | |
tree | 5987efecaf095260f72e91b69a3d215b699db205 /data/mods/default | |
parent | bc743ca7ced997e75ee72b8f493f6ffb14879aad (diff) | |
download | minetest-4f2c1e36a10ee00c6779a02dd4441fa680fb3497.tar.gz minetest-4f2c1e36a10ee00c6779a02dd4441fa680fb3497.tar.bz2 minetest-4f2c1e36a10ee00c6779a02dd4441fa680fb3497.zip |
Implement minetest.register_on_dieplayer()
Diffstat (limited to 'data/mods/default')
-rw-r--r-- | data/mods/default/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 8de651efa..aa03eabe8 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -101,8 +101,10 @@ -- minetest.register_on_punchnode(func(pos, node, puncher)) -- minetest.register_on_generated(func(minp, maxp)) -- minetest.register_on_newplayer(func(ObjectRef)) +-- minetest.register_on_dieplayer(func(ObjectRef)) -- minetest.register_on_respawnplayer(func(ObjectRef)) -- ^ return true in func to disable regular player placement +-- ^ currently called _before_ repositioning of player occurs -- minetest.register_on_chat_message(func(name, message)) -- minetest.add_to_creative_inventory(itemstring) -- minetest.setting_get(name) -> string or nil |