diff options
author | Rubenwardy <anjayward@gmail.com> | 2013-02-23 17:04:20 +0000 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2013-02-23 17:04:20 +0000 |
commit | 01059d0af48ebdebace86669684fdbdf79cb7f83 (patch) | |
tree | 6ab4773856c9fc860c7d234410b8044fee807493 | |
parent | 4cf05cbc47b5ddab616170097673947d69e93a29 (diff) |
burn to death
-rw-r--r-- | init.lua | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -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 |