2018-04-04 23:57:27 +02:00
|
|
|
|
-- Copyright (c) 2013-18 rubenwardy and Wuzzy. MIT.
|
|
|
|
|
|
2018-04-04 18:01:55 +02:00
|
|
|
|
local S = awards.gettext
|
|
|
|
|
|
2019-08-20 12:28:15 +02:00
|
|
|
|
|
2018-04-04 18:01:55 +02:00
|
|
|
|
-- Saint-Maclou
|
|
|
|
|
if minetest.get_modpath("moreblocks") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_saint_maclou",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Saint-Maclou"),
|
|
|
|
|
description = S("Place 20 coal checkers."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_saint_maclou.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "moreblocks:coal_checker",
|
|
|
|
|
target = 20
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Castorama
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_castorama",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Castorama"),
|
|
|
|
|
description = S("Place 20 iron checkers."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_castorama.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "moreblocks:iron_checker",
|
|
|
|
|
target = 20
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Sam the Trapper
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_sam_the_trapper",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Sam the Trapper"),
|
|
|
|
|
description = S("Place 2 trap stones."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_sam_the_trapper.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "moreblocks:trap_stone",
|
|
|
|
|
target = 2
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- This award can't be part of Unified Inventory, it would make a circular dependency
|
|
|
|
|
if minetest.get_modpath("unified_inventory") then
|
|
|
|
|
if minetest.get_all_craft_recipes("unified_inventory:bag_large") ~= nil then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_ui_bags", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Backpacker"),
|
|
|
|
|
description = S("Craft 4 large bags."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_backpacker.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "unified_inventory:bag_large",
|
|
|
|
|
target = 4
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("fire") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_pyro", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Pyromaniac"),
|
|
|
|
|
description = S("Craft 8 times flint and steel."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_pyromaniac.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "fire:flint_and_steel",
|
|
|
|
|
target = 8
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if minetest.settings:get_bool("disable_fire") ~= true then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_firefighter", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Firefighter"),
|
|
|
|
|
description = S("Put out 1000 fires."),
|
|
|
|
|
icon = "awards_firefighter.png",
|
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "fire:basic_flame",
|
|
|
|
|
target = 1000
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
2019-09-15 19:14:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Burned to death
|
|
|
|
|
awards.register_award("award_burn", {
|
|
|
|
|
title = S("You're a witch!"),
|
|
|
|
|
description = S("Burn to death in a fire."),
|
|
|
|
|
secret = true,
|
|
|
|
|
})
|
|
|
|
|
awards.register_on_death(function(player,data)
|
2020-04-19 21:05:06 +02:00
|
|
|
|
local pos = player:get_pos()
|
2019-09-15 19:14:58 +02:00
|
|
|
|
if pos and minetest.find_node_near(pos, 2, "fire:basic_flame") ~= nil then
|
|
|
|
|
return "award_burn"
|
|
|
|
|
end
|
|
|
|
|
return nil
|
|
|
|
|
end)
|
2018-04-04 18:01:55 +02:00
|
|
|
|
end
|
|
|
|
|
|
2019-09-15 19:14:58 +02:00
|
|
|
|
-- You Suck!
|
|
|
|
|
awards.register_award("award_you_suck", {
|
|
|
|
|
title = S("You Suck!"),
|
|
|
|
|
description = S("Die 100 times."),
|
|
|
|
|
trigger = {
|
|
|
|
|
type = "death",
|
|
|
|
|
target = 100
|
|
|
|
|
},
|
|
|
|
|
secret = true,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Die hi
|
|
|
|
|
awards.register_award("award_deep_down", {
|
|
|
|
|
title = S("Death in the Deeps"),
|
|
|
|
|
description = S("Die below -10000"),
|
|
|
|
|
secret = true,
|
|
|
|
|
})
|
|
|
|
|
awards.register_on_death(function(player,data)
|
2020-04-19 21:05:06 +02:00
|
|
|
|
local pos = player:get_pos()
|
2019-09-15 19:14:58 +02:00
|
|
|
|
if pos and pos.y < -10000 then
|
|
|
|
|
return "award_deep_down"
|
|
|
|
|
end
|
|
|
|
|
return nil
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- Die near diamond ore
|
|
|
|
|
awards.register_award("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)
|
2020-04-19 21:05:06 +02:00
|
|
|
|
local pos = player:get_pos()
|
2019-09-15 19:14:58 +02:00
|
|
|
|
if pos and pos.y > 10000 then
|
|
|
|
|
return "award_no_screen"
|
|
|
|
|
end
|
|
|
|
|
return nil
|
|
|
|
|
end)
|
|
|
|
|
|
2018-04-04 18:01:55 +02:00
|
|
|
|
if minetest.get_modpath("default") then
|
|
|
|
|
-- Light it up
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_lightitup",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Light It Up"),
|
|
|
|
|
description = S("Place 100 torches."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_light_it_up.png^awards_level1.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.01,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "default:torch",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Light ALL the things!
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_well_lit",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Well Lit"),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_well_lit.png^awards_level2.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
description = S("Place 1,000 torches."),
|
|
|
|
|
difficulty = 0.01,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "default:torch",
|
|
|
|
|
target = 1000
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_meselamp",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Really Well Lit"),
|
|
|
|
|
description = S("Craft 10 mese lamps."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_really_well_lit.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.2,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:meselamp",
|
|
|
|
|
target = 10
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_stonebrick", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Outpost"),
|
|
|
|
|
description = S("Craft 200 stone bricks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_outpost.png^awards_level1.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.08,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:stonebrick",
|
|
|
|
|
target = 200
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_stonebrick2", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Watchtower"),
|
|
|
|
|
description = S("Craft 800 stone bricks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_watchtower.png^awards_level2.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.08,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:stonebrick",
|
|
|
|
|
target = 800
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_stonebrick3", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Fortress"),
|
|
|
|
|
description = S("Craft 3,200 stone bricks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_fortress.png^awards_level3.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.08,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:stonebrick",
|
|
|
|
|
target = 3200
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_desert_stonebrick", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Desert Dweller"),
|
|
|
|
|
description = S("Craft 400 desert stone bricks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_desert_dweller.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.09,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:desert_stonebrick",
|
|
|
|
|
target = 400
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_desertstonebrick", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Pharaoh"),
|
|
|
|
|
description = S("Craft 100 sandstone bricks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_pharaoh.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.09,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:sandstonebrick",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_bookshelf", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Little Library"),
|
|
|
|
|
description = S("Craft 7 bookshelves."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_little_library.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.2,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:bookshelf",
|
|
|
|
|
target = 7
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_obsidian", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Lava and Water"),
|
|
|
|
|
description = S("Mine your first obsidian."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_lava_and_water.png^awards_level1.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1.5,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:obsidian",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Obsessed with Obsidian
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_obsessed_with_obsidian",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Obsessed with Obsidian"),
|
|
|
|
|
description = S("Mine 50 obsidian."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_obsessed_with_obsidian.png^awards_level2.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1.5,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:obsidian",
|
|
|
|
|
target = 50
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Proof that player has found lava
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_lavaminer",{
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Lava Miner"),
|
|
|
|
|
description = S("Mine any block while being very close to lava."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_lava_miner.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
})
|
|
|
|
|
awards.register_on_dig(function(player,data)
|
2018-04-04 22:11:40 +02:00
|
|
|
|
local pos = player:get_pos()
|
|
|
|
|
if pos and (minetest.find_node_near(pos, 1, "default:lava_source") or
|
|
|
|
|
minetest.find_node_near(pos, 1, "default:lava_flowing")) then
|
2018-04-04 18:01:55 +02:00
|
|
|
|
return "award_lavaminer"
|
|
|
|
|
end
|
|
|
|
|
return nil
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- On the way
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_on_the_way", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("On The Way"),
|
|
|
|
|
description = S("Place 100 rails."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_on_the_way.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "default:rail",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_lumberjack_firstday", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("First Day in the Woods"),
|
|
|
|
|
description = S("Dig 6 tree blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_first_day_in_the_woods.png^awards_level1.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.03,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
2022-10-21 10:00:51 +02:00
|
|
|
|
node = "group:tree",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
target = 6
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Lumberjack
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_lumberjack", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Lumberjack"),
|
|
|
|
|
description = S("Dig 36 tree blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_lumberjack.png^awards_level2.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.03,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
2022-10-21 10:00:51 +02:00
|
|
|
|
node = "group:tree",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
target = 36
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Semi-pro Lumberjack
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_lumberjack_semipro", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Semi-pro Lumberjack"),
|
|
|
|
|
description = S("Dig 216 tree blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_semi_pro_lumberjack.png^awards_level3.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.03,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
2022-10-21 10:00:51 +02:00
|
|
|
|
node = "group:tree",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
target = 216
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Professional Lumberjack
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_lumberjack_professional", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Professional Lumberjack"),
|
|
|
|
|
description = S("Dig 1,296 tree blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_professional_lumberjack.png^awards_level4.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.03,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
2022-10-21 10:00:51 +02:00
|
|
|
|
node = "group:tree",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
target = 1296
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Junglebaby
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_junglebaby", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Junglebaby"),
|
|
|
|
|
description = S("Dig 100 jungle tree blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_junglebaby.png^awards_level1.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.05,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:jungletree",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Jungleman
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_jungleman", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Jungleman"),
|
|
|
|
|
description = S("Dig 1,000 jungle tree blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_jungleman.png^awards_level2.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.05,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:jungletree",
|
|
|
|
|
target = 1000
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Found some Mese!
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_mesefind", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("First Mese Find"),
|
|
|
|
|
description = S("Mine your first mese ore."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_first_mese_find.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone_with_mese",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Mese Block
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_meseblock", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
secret = true,
|
|
|
|
|
title = S("Mese Mastery"),
|
|
|
|
|
description = S("Mine a mese block."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_mese_mastery.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1.1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:mese",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- You're a copper
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_youre_a_copper", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("You’re a copper"),
|
|
|
|
|
description = S("Dig 1,000 copper ores."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_youre_a_copper.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.2,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone_with_copper",
|
|
|
|
|
target = 1000
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Mini Miner
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_mine2", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Mini Miner"),
|
|
|
|
|
description = S("Dig 100 stone blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_mini_miner.png^awards_level1.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.02,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Hardened Miner
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_mine3", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Hardened Miner"),
|
|
|
|
|
description = S("Dig 1,000 stone blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_hardened_miner.png^awards_level2.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.02,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone",
|
|
|
|
|
target = 1000
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Master Miner
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_mine4", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Master Miner"),
|
|
|
|
|
description = S("Dig 10,000 stone blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_master_miner.png^awards_level3.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.02,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone",
|
|
|
|
|
target = 10000
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Marchand de sable
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_marchand_de_sable", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Marchand De Sable"),
|
|
|
|
|
description = S("Dig 1,000 sand."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_marchand_de_sable.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.05,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:sand",
|
|
|
|
|
target = 1000
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_crafter_of_sticks", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Crafter of Sticks"),
|
|
|
|
|
description = S("Craft 100 sticks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_crafter_of_sticks.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.01,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:stick",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_junglegrass", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Jungle Discoverer"),
|
|
|
|
|
description = S("Mine your first jungle grass."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_jungle_discoverer.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.009,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:junglegrass",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_grass", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Grasslands Discoverer"),
|
|
|
|
|
description = S("Mine some grass."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_grasslands_discoverer.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.009,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:grass_1",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_dry_grass", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Savannah Discoverer"),
|
|
|
|
|
description = S("Mine some dry grass."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_savannah_discoverer.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.009,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:dry_grass_3",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_cactus", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Desert Discoverer"),
|
|
|
|
|
description = S("Mine your first cactus."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_desert_discoverer.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.03,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:cactus",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_dry_shrub", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Far Lands"),
|
|
|
|
|
description = S("Mine your first dry shrub."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_far_lands.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.009,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:dry_shrub",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_ice", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Glacier Discoverer"),
|
|
|
|
|
description = S("Mine your first ice."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_glacier_discoverer.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.02,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:ice",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
-- Proof that player visited snowy lands
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_snowblock", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Very Simple Snow Man"),
|
|
|
|
|
description = S("Place two snow blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_very_simple_snow_man.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.02,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "default:snowblock",
|
|
|
|
|
target = 2
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_gold_ore", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("First Gold Find"),
|
|
|
|
|
description = S("Mine your first gold ore."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_first_gold_find.png^awards_level1.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.9,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone_with_gold",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_gold_rush", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Gold Rush"),
|
|
|
|
|
description = S("Mine 45 gold ores."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_gold_rush.png^awards_level2.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.9,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone_with_gold",
|
|
|
|
|
target = 45
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_diamond_ore", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Wow, I am Diamonds!"),
|
|
|
|
|
description = S("Mine your first diamond ore."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_wow_i_am_diamonds.png^awards_level1.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone_with_diamond",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_diamond_rush", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Girl's Best Friend"),
|
|
|
|
|
description = S("Mine 18 diamond ores."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_girls_best_friend.png^awards_level2.png",
|
2021-01-10 18:55:42 +01:00
|
|
|
|
hud_background = "awards_bg_mining.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:stone_with_diamond",
|
|
|
|
|
target = 18
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_diamondblock", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Hardest Block on Earth"),
|
|
|
|
|
description = S("Craft a diamond block."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_hardest_block_on_earth.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1.1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "default:diamondblock",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_mossycobble", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("In the Dungeon"),
|
|
|
|
|
description = S("Mine a mossy cobblestone."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_in_the_dungeon.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.9,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "default:mossycobble",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_furnace", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Smelter"),
|
|
|
|
|
description = S("Craft 10 furnaces."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_smelter.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.08,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "default:furnace",
|
|
|
|
|
target = 10
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_chest", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Treasurer"),
|
|
|
|
|
description = S("Craft 15 chests."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_treasurer.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.08,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "default:chest",
|
|
|
|
|
target = 15
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_chest2", {
|
2019-08-20 12:28:15 +02:00
|
|
|
|
title = S("Banker"),
|
2018-04-04 18:01:55 +02:00
|
|
|
|
description = S("Craft 30 locked chests."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_banker.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.08,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "default:chest_locked",
|
|
|
|
|
target = 30
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_brick", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Bricker"),
|
|
|
|
|
description = S("Craft 200 brick blocks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_bricker.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.03,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "default:brick",
|
|
|
|
|
target = 200
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_obsidianbrick", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("House of Obsidian"),
|
|
|
|
|
description = S("Craft 100 obsidian bricks."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_house_of_obsidian.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.4,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "default:obsidianbrick",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_placestone", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Build a Cave"),
|
|
|
|
|
description = S("Place 100 stone."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_build_a_cave.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "default:stone",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_woodladder", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Long Ladder"),
|
|
|
|
|
description = S("Place 400 wooden ladders."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_long_ladder.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "default:ladder_wood",
|
|
|
|
|
target = 400
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_steelladder", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Industrial Age"),
|
|
|
|
|
description = S("Place 40 steel ladders."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_industrial_age.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "default:ladder_steel",
|
|
|
|
|
target = 40
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_apples", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Yummy!"),
|
|
|
|
|
description = S("Eat 80 apples."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_yummy.png",
|
2018-04-17 23:29:13 +02:00
|
|
|
|
difficulty = 0.1,
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "eat",
|
|
|
|
|
item = "default:apple",
|
|
|
|
|
target = 80
|
|
|
|
|
}
|
|
|
|
|
})
|
2019-09-15 19:14:58 +02:00
|
|
|
|
|
|
|
|
|
-- Died in flowing lava
|
|
|
|
|
awards.register_award("award_in_the_flow", {
|
|
|
|
|
title = S("In the Flow"),
|
|
|
|
|
description = S("Die in flowing lava."),
|
|
|
|
|
secret = true,
|
|
|
|
|
})
|
|
|
|
|
awards.register_on_death(function(player,data)
|
2020-04-19 21:05:06 +02:00
|
|
|
|
local pos = player:get_pos()
|
2019-09-15 19:14:58 +02:00
|
|
|
|
if pos and (minetest.find_node_near(pos, 2, "default:lava_flowing") ~= nil or
|
|
|
|
|
minetest.find_node_near(pos, 2, "default:lava_source") ~= nil) then
|
|
|
|
|
return "award_in_the_flow"
|
|
|
|
|
end
|
|
|
|
|
return nil
|
|
|
|
|
end)
|
|
|
|
|
|
|
|
|
|
-- Die near diamond ore
|
|
|
|
|
awards.register_award("award_this_is_sad", {
|
|
|
|
|
title = S("This is Sad"),
|
|
|
|
|
description = S("Die near diamond ore."),
|
|
|
|
|
secret = true,
|
|
|
|
|
})
|
|
|
|
|
awards.register_on_death(function(player,data)
|
2020-04-19 21:05:06 +02:00
|
|
|
|
local pos = player:get_pos()
|
2019-09-15 19:14:58 +02:00
|
|
|
|
if pos and minetest.find_node_near(pos, 5, "default:stone_with_diamond") ~= nil then
|
|
|
|
|
return "award_this_is_sad"
|
|
|
|
|
end
|
|
|
|
|
return nil
|
|
|
|
|
end)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("bones") then
|
|
|
|
|
-- Die near bones
|
|
|
|
|
awards.register_award("award_the_stack", {
|
|
|
|
|
title = S("Graveyard"),
|
|
|
|
|
description = S("Die near bones."),
|
|
|
|
|
secret = true,
|
|
|
|
|
})
|
|
|
|
|
awards.register_on_death(function(player,data)
|
2020-04-19 21:05:06 +02:00
|
|
|
|
local pos = player:get_pos()
|
2019-09-15 19:14:58 +02:00
|
|
|
|
if pos and minetest.find_node_near(pos, 5, "bones:bones") ~= nil then
|
|
|
|
|
return "award_the_stack"
|
|
|
|
|
end
|
|
|
|
|
return nil
|
|
|
|
|
end)
|
2018-04-04 18:01:55 +02:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("vessels") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_vessels_shelf", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Glasser"),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_glasser.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
description = S("Craft 14 vessels shelves."),
|
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "vessels:shelf",
|
|
|
|
|
target = 14
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("farming") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_farmer", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Farming Skills Acquired"),
|
|
|
|
|
description = S("Harvest a fully grown wheat plant."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_farming_skills_acquired.png^awards_level1.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "farming:wheat_8",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_farmer2", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Field Worker"),
|
|
|
|
|
description = S("Harvest 25 fully grown wheat plants."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_field_worker.png^awards_level2.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "farming:wheat_8",
|
|
|
|
|
target = 25
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_farmer3", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Aspiring Farmer"),
|
|
|
|
|
description = S("Harvest 125 fully grown wheat plants."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_aspiring_farmer.png^awards_level3.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "farming:wheat_8",
|
|
|
|
|
target = 125
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_farmer4", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Wheat Magnate"),
|
|
|
|
|
description = S("Harvest 625 fully grown wheat plants."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_wheat_magnate.png^awards_level4.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "farming:wheat_8",
|
|
|
|
|
target = 625
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_bread", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Baker"),
|
|
|
|
|
description = S("Eat 10 loaves of bread."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_baker.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "eat",
|
|
|
|
|
item = "farming:bread",
|
|
|
|
|
target = 10
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("wool") and minetest.get_modpath("farming") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_wool", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Wool Over Your Eyes"),
|
|
|
|
|
description = S("Craft 250 white wool."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_wool_over_your_eyes.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "wool:white",
|
|
|
|
|
target = 250
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("beds") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_bed", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Hotelier"),
|
|
|
|
|
description = S("Craft 15 fancy beds."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_hotelier.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "beds:fancy_bed_bottom",
|
|
|
|
|
target = 15
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("stairs") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_stairs_goldblock", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Filthy Rich"),
|
|
|
|
|
description = S("Craft 24 gold block stairs."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_filthy_rich.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "stairs:stair_goldblock",
|
|
|
|
|
target = 24
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("dye") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_dye_red", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Roses Are Red"),
|
|
|
|
|
description = S("Craft 400 red dyes."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_roses_are_red.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "dye:red",
|
|
|
|
|
target = 400
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_dye_yellow", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Dandelions are Yellow"),
|
|
|
|
|
description = S("Craft 400 yellow dyes."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_dandelions_are_yellow.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "dye:yellow",
|
|
|
|
|
target = 400
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_dye_blue", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Geraniums are Blue"),
|
|
|
|
|
description = S("Craft 400 blue dyes."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_geraniums_are_blue.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "dye:blue",
|
|
|
|
|
target = 400
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_dye_white", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("White Color Stock"),
|
|
|
|
|
description = S("Craft 100 white dyes."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_white_color_stock.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item= "dye:white",
|
|
|
|
|
target = 100
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("flowers") then
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_brown_mushroom1", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Tasty Mushrooms"),
|
|
|
|
|
description = S("Eat 3 brown mushrooms."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_tasty_mushrooms.png^awards_level1.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "eat",
|
|
|
|
|
item= "flowers:mushroom_brown",
|
|
|
|
|
target = 3,
|
|
|
|
|
}
|
|
|
|
|
})
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_brown_mushroom2", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Mushroom Lover"),
|
|
|
|
|
description = S("Eat 33 brown mushrooms."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_mushroom_lover.png^awards_level2.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "eat",
|
|
|
|
|
item= "flowers:mushroom_brown",
|
|
|
|
|
target = 33,
|
|
|
|
|
}
|
|
|
|
|
})
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_brown_mushroom3", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Underground Mushroom Farmer"),
|
|
|
|
|
description = S("Eat 333 brown mushrooms."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_underground_mushroom_farmer.png^awards_level3.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "eat",
|
|
|
|
|
item= "flowers:mushroom_brown",
|
|
|
|
|
target = 333,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- This ensures the following code is executed after all items have been registered
|
|
|
|
|
minetest.after(0, function()
|
|
|
|
|
-- Check whether there is at least one node which can be built by the player
|
|
|
|
|
local building_is_possible = false
|
|
|
|
|
for _, def in pairs(minetest.registered_nodes) do
|
|
|
|
|
if (def.description and def.pointable ~= false and not def.groups.not_in_creative_inventory) then
|
|
|
|
|
building_is_possible = true
|
|
|
|
|
break
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- The following awards require at least one node which can be built
|
|
|
|
|
if not building_is_possible then
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_builder1", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Builder"),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_builder.png^awards_level1.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
target = 1000,
|
|
|
|
|
},
|
|
|
|
|
})
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_builder2", {
|
2019-08-20 12:28:15 +02:00
|
|
|
|
title = S("Engineer"),
|
|
|
|
|
icon = "awards_engineer.png^awards_level2.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
target = 5000,
|
|
|
|
|
},
|
|
|
|
|
})
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_builder3", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Architect"),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_architect.png^awards_level3.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
target = 10000,
|
|
|
|
|
},
|
|
|
|
|
})
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("awards_builder4", {
|
2018-04-04 18:01:55 +02:00
|
|
|
|
title = S("Master Architect"),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_master_architect.png^awards_level4.png",
|
2018-04-04 18:01:55 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
target = 25000,
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
end)
|
2018-04-05 00:01:50 +02:00
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("nyancat") then
|
|
|
|
|
-- Found a Nyan cat!
|
2018-04-05 18:09:42 +02:00
|
|
|
|
awards.register_award("award_nyanfind", {
|
2018-04-05 00:01:50 +02:00
|
|
|
|
secret = true,
|
|
|
|
|
title = S("A Cat in a Pop-Tart?!"),
|
|
|
|
|
description = S("Mine a nyan cat."),
|
2019-08-20 12:28:15 +02:00
|
|
|
|
icon = "awards_a_cat_in_a_pop_tart.png",
|
2018-04-05 00:01:50 +02:00
|
|
|
|
trigger = {
|
|
|
|
|
type = "dig",
|
|
|
|
|
node = "nyancat:nyancat",
|
|
|
|
|
target = 1
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
2019-09-15 19:14:58 +02:00
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("pipeworks") then
|
|
|
|
|
awards.register_award("award_pipeworks_transporter", {
|
|
|
|
|
title = S("Item transporter"),
|
|
|
|
|
description = S("Place 10000 tubes."),
|
|
|
|
|
difficulty = 0.05,
|
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "pipeworks:tube_1",
|
|
|
|
|
target = 2000,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
awards.register_award("award_pipeworks_automator", {
|
|
|
|
|
title = S("Factory"),
|
|
|
|
|
description = S("Place 5 autocrafters."),
|
|
|
|
|
difficulty = 3,
|
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
|
|
|
|
node = "pipeworks:autocrafter",
|
|
|
|
|
target = 5,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("mesecons") then
|
|
|
|
|
awards.register_award("awards_mesecons", {
|
|
|
|
|
title = S("Electical Engineer"),
|
|
|
|
|
description = S("Place 500 mesecon wires."),
|
|
|
|
|
difficulty = 0.2,
|
|
|
|
|
trigger = {
|
|
|
|
|
type = "place",
|
2020-06-16 09:47:41 +02:00
|
|
|
|
node = "mesecons:wire_00000000_off",
|
2019-09-15 19:14:58 +02:00
|
|
|
|
target = 500,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("basic_materials") then
|
|
|
|
|
awards.register_award("awards_oil", {
|
|
|
|
|
title = S("Oil Typhoon"),
|
2020-06-16 09:47:41 +02:00
|
|
|
|
description = S("Craft 500 times oil extract."),
|
2019-09-15 19:14:58 +02:00
|
|
|
|
|
|
|
|
|
trigger = {
|
|
|
|
|
type = "craft",
|
|
|
|
|
item = "basic_materials:oil_extract",
|
|
|
|
|
target = 500,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
end
|