summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-10 13:54:43 +0200
committerWuzzy <almikes@aol.com>2016-08-10 14:06:59 +0200
commit20eaf3b34fa1d96dc011d73e0594e4dc0e0ddabc (patch)
tree20735f8db654b42dbc7dfc57756c92084a61b7aa
parentcdf59bb9fdba4bfb29a219bc54dd94d7678796b5 (diff)
Add Lava Miner award (digging close to lava)
-rw-r--r--init.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index f35a93e..a2bc44a 100644
--- a/init.lua
+++ b/init.lua
@@ -232,6 +232,21 @@ awards.register_achievement("award_obsessed_with_obsidian",{
}
})
+-- Proof that player has found lava
+awards.register_achievement("award_lavaminer",{
+ title = S("Lava Miner"),
+ description = S("Mine any block while being very close to lava."),
+ icon = "default_lava.png",
+})
+awards.register_on_dig(function(player,data)
+ local pos = player:getpos()
+ if pos and (minetest.find_node_near(pos, 1, "default:lava_source") ~= nil or
+ minetest.find_node_near(pos, 1, "default:lava_flowing") ~= nil) then
+ return "award_lavaminer"
+ end
+ return nil
+end)
+
-- On the way
awards.register_achievement("award_on_the_way", {
title = S("On The Way"),