mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-11-30 03:03:44 +01:00
burn to death
This commit is contained in:
parent
4cf05cbc47
commit
01059d0af4
17
init.lua
17
init.lua
@ -92,3 +92,20 @@ awards.register_achievement("award_death1",{
|
|||||||
target=1,
|
target=1,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- 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)
|
Loading…
Reference in New Issue
Block a user