mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2025-02-17 00:12:23 +01:00
onDeath table
This commit is contained in:
@ -4,10 +4,11 @@
|
|||||||
-- this is the trigger handler file for the awards mod
|
-- this is the trigger handler file for the awards mod
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
|
||||||
-- Function for Triggers
|
-- Function and table holders for Triggers
|
||||||
awards.onDig={}
|
awards.onDig={}
|
||||||
awards.onPlace={}
|
awards.onPlace={}
|
||||||
awards.onTick={}
|
awards.onTick={}
|
||||||
|
awards.onDeath={}
|
||||||
|
|
||||||
-- Player functions
|
-- Player functions
|
||||||
|
|
||||||
@ -116,7 +117,7 @@ minetest.register_on_placenode(function(pos, newnode, placer)
|
|||||||
|
|
||||||
for i=1,# awards.onPlace do
|
for i=1,# awards.onPlace do
|
||||||
local res=nil
|
local res=nil
|
||||||
|
|
||||||
if type(awards.onPlace[i]) == "function" then
|
if type(awards.onPlace[i]) == "function" then
|
||||||
-- run the function
|
-- run the function
|
||||||
print(i.." is a function")
|
print(i.." is a function")
|
||||||
|
Reference in New Issue
Block a user