diff options
author | Rubenwardy <anjayward@gmail.com> | 2013-02-23 14:53:08 +0000 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2013-02-23 14:53:08 +0000 |
commit | e1c4402f4c406d0d50462d861266fe51739634ad (patch) | |
tree | 57c923da4504ee44b26367236cbcee0cc35932ac | |
parent | 90cd09f7ca0c486415c40beef6f61eab9b348509 (diff) |
onDeath table
-rw-r--r-- | triggers.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/triggers.lua b/triggers.lua index 03d7703..8b51b01 100644 --- a/triggers.lua +++ b/triggers.lua @@ -4,10 +4,11 @@ -- this is the trigger handler file for the awards mod ------------------------------------------------------- --- Function for Triggers +-- Function and table holders for Triggers awards.onDig={} awards.onPlace={} awards.onTick={} +awards.onDeath={} -- Player functions @@ -116,7 +117,7 @@ minetest.register_on_placenode(function(pos, newnode, placer) for i=1,# awards.onPlace do local res=nil - + if type(awards.onPlace[i]) == "function" then -- run the function print(i.." is a function") |