summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua19
1 files changed, 18 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index f538d87..5ca29d9 100644
--- a/init.lua
+++ b/init.lua
@@ -91,4 +91,21 @@ awards.register_achievement("award_death1",{
type="death",
target=1,
},
-}) \ No newline at end of file
+})
+
+-- Burned to death
+awards.register_achievement("award_burn",{
+ title = "you're a witch!",
+ description = "Burn to death in a fire",
+})
+
+awards.register_onDeath(function(player,data)
+ print ("running on death function")
+ local pos=player:getpos()
+
+ if pos and minetest.env:find_node_near(pos, 1, "fire:basic_flame")~=nil then
+ return "award_burn"
+ end
+
+ return nil
+end) \ No newline at end of file