write something there
This commit is contained in:
commit
b4b6c08f4f
8546 changed files with 309825 additions and 0 deletions
15
mods/asuna/asuna_awards/awards/dont_touch_that.lua
Normal file
15
mods/asuna/asuna_awards/awards/dont_touch_that.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return function(award)
|
||||
minetest.register_on_player_hpchange(function(player, hp_change, reason)
|
||||
if reason.type == "node_damage" then
|
||||
awards.unlock(player:get_player_name(),award)
|
||||
end
|
||||
end)
|
||||
|
||||
return {
|
||||
title = "Don't Touch That",
|
||||
description = "Take damage from a harmful node",
|
||||
difficulty = 15,
|
||||
icon = "fire_basic_flame.png",
|
||||
condition = core.settings:get_bool("enable_damage"),
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue