awards/init.lua

509 lines
12 KiB
Lua
Raw Normal View History

2014-09-26 21:36:40 +02:00
-- AWARDS
2015-06-10 19:48:20 +02:00
--
-- Copyright (C) 2013-2015 rubenwardy
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU Lesser General Public License as published by
-- the Free Software Foundation; either version 2.1 of the License, or
-- (at your option) any later version.
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU Lesser General Public License for more details.
-- You should have received a copy of the GNU Lesser General Public License along
-- with this program; if not, write to the Free Software Foundation, Inc.,
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--
2013-02-22 18:53:42 +01:00
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
2013-02-22 21:43:40 +01:00
dofile(minetest.get_modpath("awards").."/api.lua")
dofile(minetest.get_modpath("awards").."/chat_commands.lua")
2016-08-01 23:39:32 +02:00
dofile(minetest.get_modpath("awards").."/sfinv.lua")
2016-08-01 21:38:19 +02:00
dofile(minetest.get_modpath("awards").."/unified_inventory.lua")
2015-06-10 20:18:56 +02:00
dofile(minetest.get_modpath("awards").."/triggers.lua")
2015-06-11 18:35:32 +02:00
awards.set_intllib(S)
2013-02-22 21:38:01 +01:00
2013-02-23 15:44:23 +01:00
-- Light it up
awards.register_achievement("award_lightitup",{
title = S("Light It Up"),
description = S("Place 100 torches."),
icon = "awards_novicebuilder.png",
2014-05-02 19:42:25 +02:00
trigger = {
type = "place",
node = "default:torch",
target = 100
2014-05-02 20:11:21 +02:00
}
2013-02-23 15:44:23 +01:00
})
-- Light ALL the things!
2016-07-29 17:32:58 +02:00
awards.register_achievement("award_well_lit",{
title = S("Well Lit"),
description = S("Place 1,000 torches."),
icon = "awards_novicebuilder.png",
trigger = {
type = "place",
node = "default:torch",
target = 1000
}
})
-- Saint-Maclou
if minetest.get_modpath("moreblocks") then
awards.register_achievement("award_saint_maclou",{
title = S("Saint-Maclou"),
description = S("Place 20 coal checkers."),
icon = "awards_novicebuilder.png",
trigger = {
type = "place",
node = "moreblocks:coal_checker",
target = 20
}
})
-- Castorama
awards.register_achievement("award_castorama",{
title = S("Castorama"),
description = S("Place 20 iron checkers."),
icon = "awards_novicebuilder.png",
trigger = {
type = "place",
node = "moreblocks:iron_checker",
target = 20
}
})
-- Sam the Trapper
awards.register_achievement("award_sam_the_trapper",{
title = S("Sam the Trapper"),
description = S("Place 2 trap stones."),
icon = "awards_novicebuilder.png",
trigger = {
type = "place",
node = "moreblocks:trap_stone",
target = 2
}
})
end
2016-08-01 19:00:12 +02:00
awards.register_achievement("awards_stonebrick", {
title = S("Home Improvement"),
description = S("Craft 200 stone bricks."),
icon = "default_stone_brick.png",
trigger = {
type = "craft",
item = "default:stonebrick",
target = 200
}
})
awards.register_achievement("awards_desert_stonebrick", {
title = S("Desert Dweller"),
description = S("Craft 400 desert stone bricks."),
icon = "default_desert_stone_brick.png",
trigger = {
type = "craft",
item = "default:desert_stonebrick",
target = 400
}
})
awards.register_achievement("awards_desertstonebrick", {
title = S("Pharaoh"),
description = S("Craft 100 sandstone bricks."),
icon = "default_sandstone_brick.png",
trigger = {
type = "craft",
item = "default:sandstonebrick",
target = 100
}
})
awards.register_achievement("awards_bookshelf", {
title = S("Little Library"),
description = S("Craft 7 bookshelves."),
icon = "default_bookshelf.png",
trigger = {
type = "craft",
item = "default:bookshelf",
target = 7
}
})
awards.register_achievement("awards_obsidian", {
title = S("Lava and Water"),
description = S("Mine your first obsidian."),
icon = "default_obsidian.png",
trigger = {
type = "dig",
node = "default:obsidian",
target = 1
}
})
-- Obsessed with Obsidian
awards.register_achievement("award_obsessed_with_obsidian",{
title = S("Obsessed with Obsidian"),
description = S("Mine 50 obsidian."),
icon = "awards_miniminer.png",
background = "awards_bg_mining.png",
trigger = {
type = "dig",
node = "default:obsidian",
target = 50
}
})
-- On the way
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_on_the_way", {
title = S("On The Way"),
description = S("Place 100 rails."),
icon = "awards_novicebuilder.png",
trigger = {
type = "place",
node = "default:rail",
target = 100
}
})
-- Lumberjack
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_lumberjack", {
title = S("Lumberjack"),
description = S("Dig 100 tree blocks."),
icon = "default_tree.png",
trigger = {
type = "dig",
node = "default:tree",
target = 100
}
})
-- Semi-pro Lumberjack
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_lumberjack_semipro", {
title = S("Semi-pro Lumberjack"),
description = S("Dig 1,000 tree blocks."),
icon = "default_tree.png",
2014-05-02 19:42:25 +02:00
trigger = {
type = "dig",
node = "default:tree",
target = 1000
}
})
-- Professional Lumberjack
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_lumberjack_professional", {
title = S("Professional Lumberjack"),
description = S("Dig 10,000 tree blocks."),
icon = "default_tree.png",
trigger = {
type = "dig",
node = "default:tree",
target = 10000
}
})
-- L33T Lumberjack
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_lumberjack_leet", {
title = S("L33T Lumberjack"),
description = S("Dig 100,000 tree blocks."),
icon = "default_tree.png",
trigger = {
type = "dig",
node = "default:tree",
target = 100000
}
})
-- Junglebaby
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_junglebaby", {
title = S("Junglebaby"),
description = S("Dig 100 jungle tree blocks."),
icon = "default_jungletree.png",
trigger = {
type = "dig",
node = "default:jungletree",
2014-05-02 20:56:36 +02:00
target = 100
2014-05-02 20:11:21 +02:00
}
2013-02-23 15:44:23 +01:00
})
-- Jungleman
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_jungleman", {
title = S("Jungleman"),
description = S("Dig 1,000 jungle tree blocks."),
icon = "default_jungletree.png",
trigger = {
type = "dig",
node = "default:jungletree",
target = 1000
}
})
2013-02-22 21:43:40 +01:00
-- Found some Mese!
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_mesefind", {
title = S("First Mese Find"),
2016-08-01 19:00:12 +02:00
description = S("Mine your first mese ore."),
icon = "default_stone.png^default_mineral_mese.png",
background = "awards_bg_mining.png",
2014-05-02 19:42:25 +02:00
trigger = {
type = "dig",
2014-09-26 20:36:58 +02:00
node = "default:stone_with_mese",
2014-05-02 20:56:36 +02:00
target = 1
2014-05-02 20:11:21 +02:00
}
2013-02-22 18:53:42 +01:00
})
2016-08-01 19:00:12 +02:00
-- Mese Block
awards.register_achievement("award_meseblock", {
secret = true,
title = S("Mese Mastery"),
description = S("Mine a mese block."),
icon = "default_mese_block.png",
background = "bg_mining.png",
trigger = {
type = "dig",
node = "default:mese",
target = 1
}
})
-- You're a copper
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_youre_a_copper", {
title = S("You're a copper"),
description = S("Dig 1,000 copper ores."),
icon = "awards_miniminer.png",
background = "awards_bg_mining.png",
trigger = {
type = "dig",
node = "default:stone_with_copper",
target = 1000
}
})
2013-02-23 18:31:40 +01:00
-- Found a Nyan cat!
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_nyanfind", {
2016-08-01 19:00:12 +02:00
secret = true,
title = S("A Cat in a Pop-Tart?!"),
description = S("Mine a nyan cat."),
2016-07-29 17:25:39 +02:00
icon = "nyancat_front.png",
2014-05-02 19:42:25 +02:00
trigger = {
type = "dig",
node = "default:nyancat",
2014-05-02 20:56:36 +02:00
target = 1
2014-05-02 20:11:21 +02:00
}
2013-02-23 18:31:40 +01:00
})
2013-02-23 15:44:23 +01:00
-- Mini Miner
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_mine2", {
title = S("Mini Miner"),
description = S("Dig 100 stone blocks."),
icon = "awards_miniminer.png",
background = "awards_bg_mining.png",
2014-05-02 19:42:25 +02:00
trigger = {
type = "dig",
node = "default:stone",
2014-05-02 20:56:36 +02:00
target = 100
2014-05-02 20:11:21 +02:00
}
2013-02-23 15:44:23 +01:00
})
2013-02-22 21:38:01 +01:00
2013-02-23 15:44:23 +01:00
-- Hardened Miner
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_mine3", {
title = S("Hardened Miner"),
2016-08-01 19:00:12 +02:00
description = S("Dig 1,000 stone blocks."),
icon = "awards_miniminer.png",
background = "awards_bg_mining.png",
2014-05-02 19:42:25 +02:00
trigger = {
type = "dig",
node = "default:stone",
2014-05-02 20:56:36 +02:00
target = 1000
2014-05-02 20:11:21 +02:00
}
2013-02-23 15:44:23 +01:00
})
-- Master Miner
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_mine4", {
title = S("Master Miner"),
description = S("Dig 10,000 stone blocks."),
icon = "awards_miniminer.png",
background = "awards_bg_mining.png",
2014-05-02 19:42:25 +02:00
trigger = {
type = "dig",
node = "default:stone",
2014-05-02 20:56:36 +02:00
target = 10000
2014-05-02 20:11:21 +02:00
}
2013-02-23 16:13:21 +01:00
})
-- Marchand de sable
2015-06-10 19:39:22 +02:00
awards.register_achievement("award_marchand_de_sable", {
title = S("Marchand De Sable"),
description = S("Dig 1,000 sand."),
2016-08-01 19:00:12 +02:00
icon = "default_sand.png",
background = "awards_bg_mining.png",
trigger = {
type = "dig",
node = "default:sand",
target = 1000
}
})
awards.register_achievement("awards_crafter_of_sticks", {
title = S("Crafter of Sticks"),
2016-08-01 19:00:12 +02:00
description = S("Craft 100 sticks."),
icon = "default_stick.png",
trigger = {
type = "craft",
item = "default:stick",
target = 100
}
})
2016-08-01 19:00:12 +02:00
awards.register_achievement("awards_junglegrass", {
title = S("Jungle Discoverer"),
description = S("Mine your first jungle grass."),
icon = "default_junglegrass.png",
trigger = {
2016-08-01 19:00:12 +02:00
type = "dig",
node = "default:junglegrass",
target = 1
}
})
2016-08-01 19:00:12 +02:00
awards.register_achievement("awards_grass", {
title = S("Grasslands Discoverer"),
description = S("Mine some grass."),
icon = "default_grass_3.png",
trigger = {
2016-08-01 19:00:12 +02:00
type = "dig",
node = "default:grass_1",
target = 1
}
})
2016-08-01 19:00:12 +02:00
awards.register_achievement("awards_dry_grass", {
title = S("Savannah Discoverer"),
description = S("Mine some dry grass."),
icon = "default_dry_grass_3.png",
2014-05-02 19:42:25 +02:00
trigger = {
2016-08-01 19:00:12 +02:00
type = "dig",
node = "default:dry_grass_3",
target = 1
2014-05-02 20:11:21 +02:00
}
2013-02-23 18:04:20 +01:00
})
2016-08-01 19:00:12 +02:00
awards.register_achievement("awards_cactus", {
title = S("Desert Discoverer"),
description = S("Mine your first cactus."),
icon = "default_cactus_side.png",
trigger = {
2016-08-01 19:00:12 +02:00
type = "dig",
node = "default:cactus",
target = 1
}
})
awards.register_achievement("awards_dry_shrub", {
title = S("Far Lands"),
description = S("Mine your first dry shrub."),
icon = "default_dry_shrub.png",
trigger = {
type = "dig",
node = "default:dry_shrub",
target = 1
}
})
awards.register_achievement("awards_farmer", {
title = S("Farmer"),
description = S("Dig a fully grown wheat plant."),
icon = "farming_wheat_8.png",
trigger = {
type = "dig",
node = "farming:wheat_8",
target = 1
}
})
awards.register_achievement("awards_ice", {
title = S("Glacier Discoverer"),
description = S("Mine your first ice."),
icon = "default_ice.png",
trigger = {
type = "dig",
node = "default:ice",
target = 1
}
})
awards.register_achievement("awards_gold_ore", {
title = S("First Gold Find"),
description = S("Mine your first gold ore."),
icon = "default_stone.png^default_mineral_gold.png",
trigger = {
type = "dig",
node = "default:stone_with_gold",
target = 1
}
})
awards.register_achievement("awards_gold_rush", {
title = S("Gold Rush"),
description = S("Mine 45 gold ores."),
icon = "default_stone.png^default_mineral_gold.png",
trigger = {
type = "dig",
node = "default:stone_with_gold",
target = 45
}
})
awards.register_achievement("awards_diamond_ore", {
title = S("Wow, I am Diamonds!"),
description = S("Mine your first diamond ore."),
icon = "default_stone.png^default_mineral_diamond.png",
trigger = {
type = "dig",
node = "default:stone_with_diamond",
target = 1
}
})
awards.register_achievement("awards_diamond_rush", {
title = S("Girl's Best Friend"),
description = S("Mine 18 diamond ores."),
icon = "default_stone.png^default_mineral_diamond.png",
trigger = {
type = "dig",
node = "default:stone_with_diamond",
target = 18
}
})
awards.register_achievement("awards_diamondblock", {
title = S("Hardest Block on Earth"),
description = S("Craft a diamond block."),
icon = "default_diamond_block.png",
trigger = {
type = "craft",
item = "default:diamondblock",
target = 1
}
})
awards.register_achievement("awards_mossycobble", {
title = S("In the Dungeon"),
description = S("Mine a mossy cobblestone."),
icon = "default_mossycobble.png",
trigger = {
type = "dig",
node = "default:mossycobble",
target = 1
}
})