diff options
author | rubenwardy <rubenwardy@gmail.com> | 2016-07-29 16:32:58 +0100 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2016-07-29 16:32:58 +0100 |
commit | 3c4f6e50b1f7842cd14ecfa981a6ef1df2a4e462 (patch) | |
tree | cd6540ea2dd8c9108907dae165308180ab7edb38 /init.lua | |
parent | 116889080c77a3df230df237f7aaad109122f2a3 (diff) |
Add and remove a few awards
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 48 |
1 files changed, 31 insertions, 17 deletions
@@ -36,13 +36,13 @@ awards.register_achievement("award_lightitup",{ trigger = { type = "place", node = "default:torch", - target = 1 + target = 500 } }) -- Light ALL the things! -awards.register_achievement("award_light_all_the_things",{ - title = S("Light ALL The Things!"), +awards.register_achievement("award_well_lit",{ + title = S("Well Lit"), description = S("Place 1,000 torches."), icon = "novicebuilder.png", trigger = { @@ -214,20 +214,6 @@ awards.register_achievement("award_youre_a_copper", { } }) --- You're winner -awards.register_achievement("award_youre_winner", { - title = S("YOU'RE A WINNER!"), - description = S("Dig 1 mossy cobblestone."), - icon = "miniminer.png", - background = "bg_mining.png", - trigger = { - type = "dig", - node = "default:mossycobble", - target = 1 - }, - secret = true, -}) - -- Found a Nyan cat! awards.register_achievement("award_nyanfind", { title = S("OMG, Nyan Cat!"), @@ -394,3 +380,31 @@ awards.register_on_death(function(player,data) end return nil end) + +-- Die near diamond ore +awards.register_achievement("award_deep_down", { + title = S("Deep Down"), + description = S("Die below -10000"), + secret = true +}) +awards.register_on_death(function(player,data) + local pos = player:getpos() + if pos and pos.y < -10000 then + return "award_deep_down" + end + return nil +end) + +-- Die near diamond ore +awards.register_achievement("award_no_screen", { + title = S("In space, no one can hear you scream"), + description = S("Die above 10000"), + secret = true +}) +awards.register_on_death(function(player,data) + local pos = player:getpos() + if pos and pos.y > 10000 then + return "award_no_screen" + end + return nil +end) |