1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2024-12-29 04:00:38 +01:00

Add new awards, remove death awards

This commit is contained in:
Wuzzy 2016-08-01 19:00:12 +02:00 committed by rubenwardy
parent 9b6e93dd9a
commit f5ea95ad35

306
init.lua
View File

@ -93,6 +93,62 @@ if minetest.get_modpath("moreblocks") then
}) })
end end
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 -- Obsessed with Obsidian
awards.register_achievement("award_obsessed_with_obsidian",{ awards.register_achievement("award_obsessed_with_obsidian",{
title = S("Obsessed with Obsidian"), title = S("Obsessed with Obsidian"),
@ -193,8 +249,8 @@ awards.register_achievement("award_jungleman", {
-- Found some Mese! -- Found some Mese!
awards.register_achievement("award_mesefind", { awards.register_achievement("award_mesefind", {
title = S("First Mese Find"), title = S("First Mese Find"),
description = S("Find some Mese."), description = S("Mine your first mese ore."),
icon = "default_mese_block.png", icon = "default_stone.png^default_mineral_mese.png",
background = "awards_bg_mining.png", background = "awards_bg_mining.png",
trigger = { trigger = {
type = "dig", type = "dig",
@ -203,6 +259,22 @@ awards.register_achievement("award_mesefind", {
} }
}) })
-- 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 -- You're a copper
awards.register_achievement("award_youre_a_copper", { awards.register_achievement("award_youre_a_copper", {
title = S("You're a copper"), title = S("You're a copper"),
@ -218,8 +290,9 @@ awards.register_achievement("award_youre_a_copper", {
-- Found a Nyan cat! -- Found a Nyan cat!
awards.register_achievement("award_nyanfind", { awards.register_achievement("award_nyanfind", {
title = S("OMG, Nyan Cat!"), secret = true,
description = S("Find a nyan cat."), title = S("A Cat in a Pop-Tart?!"),
description = S("Mine a nyan cat."),
icon = "nyancat_front.png", icon = "nyancat_front.png",
trigger = { trigger = {
type = "dig", type = "dig",
@ -244,7 +317,7 @@ awards.register_achievement("award_mine2", {
-- Hardened Miner -- Hardened Miner
awards.register_achievement("award_mine3", { awards.register_achievement("award_mine3", {
title = S("Hardened Miner"), title = S("Hardened Miner"),
description = S("Dig 1,000 stone blocks"), description = S("Dig 1,000 stone blocks."),
icon = "awards_miniminer.png", icon = "awards_miniminer.png",
background = "awards_bg_mining.png", background = "awards_bg_mining.png",
trigger = { trigger = {
@ -271,6 +344,7 @@ awards.register_achievement("award_mine4", {
awards.register_achievement("award_marchand_de_sable", { awards.register_achievement("award_marchand_de_sable", {
title = S("Marchand De Sable"), title = S("Marchand De Sable"),
description = S("Dig 1,000 sand."), description = S("Dig 1,000 sand."),
icon = "default_sand.png",
background = "awards_bg_mining.png", background = "awards_bg_mining.png",
trigger = { trigger = {
type = "dig", type = "dig",
@ -281,7 +355,8 @@ awards.register_achievement("award_marchand_de_sable", {
awards.register_achievement("awards_crafter_of_sticks", { awards.register_achievement("awards_crafter_of_sticks", {
title = S("Crafter of Sticks"), title = S("Crafter of Sticks"),
description = S("Create 100 Sticks"), description = S("Craft 100 sticks."),
icon = "default_stick.png",
trigger = { trigger = {
type = "craft", type = "craft",
item = "default:stick", item = "default:stick",
@ -289,124 +364,145 @@ awards.register_achievement("awards_crafter_of_sticks", {
} }
}) })
-- Join awards.register_achievement("awards_junglegrass", {
awards.register_achievement("award_join2", { title = S("Jungle Discoverer"),
title = S("Frequent Visitor"), description = S("Mine your first jungle grass."),
description = S("Connect to the server 50 times."), icon = "default_junglegrass.png",
trigger = { trigger = {
type = "join", type = "dig",
target = 50 node = "default:junglegrass",
}, target = 1
secret = true
})
-- Dying Spree
awards.register_achievement("award_dying_spree", {
title = S("Dying Spree"),
description = S("Die 5 times."),
trigger = {
type = "death",
target = 5
} }
}) })
-- Bot-like awards.register_achievement("awards_grass", {
awards.register_achievement("award_bot_like", { title = S("Grasslands Discoverer"),
title = S("Bot-like"), description = S("Mine some grass."),
description = S("Die 10 times."), icon = "default_grass_3.png",
trigger = { trigger = {
type = "death", type = "dig",
target = 10 node = "default:grass_1",
target = 1
} }
}) })
-- You Suck! awards.register_achievement("awards_dry_grass", {
awards.register_achievement("award_you_suck", { title = S("Savannah Discoverer"),
title = S("You Suck!"), description = S("Mine some dry grass."),
description = S("Die 100 times."), icon = "default_dry_grass_3.png",
trigger = { trigger = {
type = "death", type = "dig",
target = 100 node = "default:dry_grass_3",
}, target = 1
secret = true }
}) })
-- Burned to death awards.register_achievement("awards_cactus", {
awards.register_achievement("award_burn", { title = S("Desert Discoverer"),
title = S("You're a witch!"), description = S("Mine your first cactus."),
description = S("Burn to death in a fire.") icon = "default_cactus_side.png",
trigger = {
type = "dig",
node = "default:cactus",
target = 1
}
}) })
awards.register_onDeath(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 2, "fire:basic_flame") ~= nil then
return "award_burn"
end
return nil
end)
-- Died in flowing lava awards.register_achievement("awards_dry_shrub", {
awards.register_achievement("award_in_the_flow", { title = S("Far Lands"),
title = S("In the Flow"), description = S("Mine your first dry shrub."),
description = S("Die in flowing lava.") icon = "default_dry_shrub.png",
trigger = {
type = "dig",
node = "default:dry_shrub",
target = 1
}
}) })
awards.register_onDeath(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 2, "default:lava_flowing") ~= nil then
return "award_in_the_flow"
end
return nil
end)
-- Die near diamond ore awards.register_achievement("awards_farmer", {
awards.register_achievement("award_this_is_sad", { title = S("Farmer"),
title = S("This is Sad"), description = S("Dig a fully grown wheat plant."),
description = S("Die near diamond ore.") icon = "farming_wheat_8.png",
trigger = {
type = "dig",
node = "farming:wheat_8",
target = 1
}
}) })
awards.register_on_death(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 5, "default:stone_with_diamond") ~= nil then
return "award_this_is_sad"
end
return nil
end)
-- Die near diamond ore awards.register_achievement("awards_ice", {
awards.register_achievement("award_the_stack", { title = S("Glacier Discoverer"),
title = S("The Stack"), description = S("Mine your first ice."),
description = S("Die near bones.") icon = "default_ice.png",
trigger = {
type = "dig",
node = "default:ice",
target = 1
}
}) })
awards.register_on_death(function(player,data)
local pos = player:getpos()
if pos and minetest.find_node_near(pos, 5, "bones:bones") ~= nil then
return "award_the_stack"
end
return nil
end)
-- Die near diamond ore awards.register_achievement("awards_gold_ore", {
awards.register_achievement("award_deep_down", { title = S("First Gold Find"),
title = S("Deep Down"), description = S("Mine your first gold ore."),
description = S("Die below -10000"), icon = "default_stone.png^default_mineral_gold.png",
secret = true trigger = {
type = "dig",
node = "default:stone_with_gold",
target = 1
}
}) })
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("awards_gold_rush", {
awards.register_achievement("award_no_screen", { title = S("Gold Rush"),
title = S("In space, no one can hear you scream"), description = S("Mine 45 gold ores."),
description = S("Die above 10000"), icon = "default_stone.png^default_mineral_gold.png",
secret = true 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
}
}) })
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)