diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 67 |
1 files changed, 43 insertions, 24 deletions
@@ -4,12 +4,20 @@ -- this is the init file for the award mod ------------------------------------------------------- +local S +if (intllib) then + dofile(minetest.get_modpath("intllib").."/intllib.lua") + S = intllib.Getter(minetest.get_current_modname()) +else + S = function ( s ) return s end +end + dofile(minetest.get_modpath("awards").."/api.lua") -- Light it up awards.register_achievement("award_lightitup",{ - title = "Light It Up", - description = "You have placed 100 torches", + title = S("Light It Up"), + description = S("Place 100 torches"), icon = "novicebuilder.png", trigger = { type = "place", @@ -20,8 +28,8 @@ awards.register_achievement("award_lightitup",{ -- Lumber Jack awards.register_achievement("award_lumberjack",{ - title = "Lumber Jack", - description = "You have dug 100 tree blocks", + title = S("Lumber Jack"), + description = S("Dig 100 tree blocks"), trigger = { type = "dig", node = "default:tree", @@ -31,21 +39,21 @@ awards.register_achievement("award_lumberjack",{ -- Found some Mese! awards.register_achievement("award_mesefind",{ - title = "First Mese Find", - description = "Found some Mese!", + title = S("First Mese Find"), + description = S("Found some Mese!"), icon = "mese.png", background = "bg_mining.png", trigger = { type = "dig", node = "default:stone_with_mese", - target = 100, + target = 1, } }) -- Found a Nyan cat! awards.register_achievement("award_nyanfind",{ - title = "OMG, Nyan Cat!", - description = "Find a nyan cat", + title = S("OMG, Nyan Cat!"), + description = S("Find a nyan cat"), trigger = { type = "dig", node = "default:nyancat", @@ -55,8 +63,8 @@ awards.register_achievement("award_nyanfind",{ -- Just entered the mine awards.register_achievement("award_mine1",{ - title = "Entering the mine", - description = "You have dug 10 stone blocks", + title = S("Entering the mine"), + description = S("You have dug 10 stone blocks"), icon = "miniminer.png", background = "bg_mining.png", trigger = { @@ -68,8 +76,8 @@ awards.register_achievement("award_mine1",{ -- Mini Miner awards.register_achievement("award_mine2",{ - title = "Mini Miner", - description = "You have dug 100 stone blocks", + title = S("Mini Miner"), + description = S("You have dug 100 stone blocks"), icon = "miniminer.png", background = "bg_mining.png", trigger = { @@ -81,8 +89,8 @@ awards.register_achievement("award_mine2",{ -- Hardened Miner awards.register_achievement("award_mine3",{ - title = "Hardened Miner", - description = "You have dug 1000 stone blocks", + title = S("Hardened Miner"), + description = S("You have dug 1000 stone blocks"), icon = "miniminer.png", background = "bg_mining.png", trigger = { @@ -94,8 +102,8 @@ awards.register_achievement("award_mine3",{ -- Master Miner awards.register_achievement("award_mine4",{ - title = "Master Miner", - description = "You have dug 10000 stone blocks", + title = S("Master Miner"), + description = S("You have dug 10000 stone blocks"), icon = "miniminer.png", background = "bg_mining.png", trigger = { @@ -107,8 +115,8 @@ awards.register_achievement("award_mine4",{ -- First Death awards.register_achievement("award_death1",{ - title = "First Death", - description = "Oh well, it does not matter\nyou have more lives than a cat", + title = S("First Death"), + description = S("You have more lives than a cat!"), trigger = { type = "death", target = 1, @@ -117,18 +125,29 @@ awards.register_achievement("award_death1",{ -- Burned to death awards.register_achievement("award_burn",{ - title = "You're a witch!", - description = "Burn to death in a fire", + title = S("You're a witch!"), + description = S("Burn to death in a fire"), }) -- 1 sentence awards.register_achievement("award_chat1",{ - title = "First Word", - description = "Use the chat to talk to players", + title = S("First Word"), + description = S("Use the chat to talk to players"), trigger = { type = "chat", target = 1, - }, + } +}) + + +-- Join +awards.register_achievement("award_join1",{ + title = S("Welcome!"), + description = S("Connect to the server"), + trigger = { + type = "join", + target = 1, + } }) awards.register_onDeath(function(player,data) |