Check for existance of default mod

This commit is contained in:
Wuzzy 2016-09-01 18:28:37 +02:00 committed by rubenwardy
parent 90bf9b061a
commit a04f3df1e2

580
init.lua
View File

@ -30,41 +30,6 @@ dofile(minetest.get_modpath("awards").."/unified_inventory.lua")
dofile(minetest.get_modpath("awards").."/triggers.lua") dofile(minetest.get_modpath("awards").."/triggers.lua")
awards.set_intllib(S) awards.set_intllib(S)
-- Light it up
awards.register_achievement("award_lightitup",{
title = S("Light It Up"),
description = S("Place 100 torches."),
icon = "awards_novicebuilder.png^awards_level1.png",
trigger = {
type = "place",
node = "default:torch",
target = 100
}
})
-- Light ALL the things!
awards.register_achievement("award_well_lit",{
title = S("Well Lit"),
description = S("Place 1,000 torches."),
icon = "awards_novicebuilder.png^awards_level2.png",
trigger = {
type = "place",
node = "default:torch",
target = 1000
}
})
awards.register_achievement("award_meselamp",{
title = S("Really Well Lit"),
description = S("Craft 10 mese lamps."),
icon = "default_meselamp.png",
trigger = {
type = "craft",
item = "default:meselamp",
target = 10
}
})
-- Saint-Maclou -- Saint-Maclou
if minetest.get_modpath("moreblocks") then if minetest.get_modpath("moreblocks") then
awards.register_achievement("award_saint_maclou",{ awards.register_achievement("award_saint_maclou",{
@ -142,7 +107,43 @@ if minetest.get_modpath("fire") then
end end
end end
awards.register_achievement("awards_stonebrick", { if minetest.get_modpath("default") then
-- Light it up
awards.register_achievement("award_lightitup",{
title = S("Light It Up"),
description = S("Place 100 torches."),
icon = "awards_novicebuilder.png^awards_level1.png",
trigger = {
type = "place",
node = "default:torch",
target = 100
}
})
-- Light ALL the things!
awards.register_achievement("award_well_lit",{
title = S("Well Lit"),
description = S("Place 1,000 torches."),
icon = "awards_novicebuilder.png^awards_level2.png",
trigger = {
type = "place",
node = "default:torch",
target = 1000
}
})
awards.register_achievement("award_meselamp",{
title = S("Really Well Lit"),
description = S("Craft 10 mese lamps."),
icon = "default_meselamp.png",
trigger = {
type = "craft",
item = "default:meselamp",
target = 10
}
})
awards.register_achievement("awards_stonebrick", {
title = S("Outpost"), title = S("Outpost"),
description = S("Craft 200 stone bricks."), description = S("Craft 200 stone bricks."),
icon = "default_stone_brick.png^awards_level1.png", icon = "default_stone_brick.png^awards_level1.png",
@ -151,9 +152,9 @@ awards.register_achievement("awards_stonebrick", {
item = "default:stonebrick", item = "default:stonebrick",
target = 200 target = 200
} }
}) })
awards.register_achievement("awards_stonebrick2", { awards.register_achievement("awards_stonebrick2", {
title = S("Watchtower"), title = S("Watchtower"),
description = S("Craft 800 stone bricks."), description = S("Craft 800 stone bricks."),
icon = "default_stone_brick.png^awards_level2.png", icon = "default_stone_brick.png^awards_level2.png",
@ -162,9 +163,9 @@ awards.register_achievement("awards_stonebrick2", {
item = "default:stonebrick", item = "default:stonebrick",
target = 800 target = 800
} }
}) })
awards.register_achievement("awards_stonebrick3", { awards.register_achievement("awards_stonebrick3", {
title = S("Fortress"), title = S("Fortress"),
description = S("Craft 3,200 stone bricks."), description = S("Craft 3,200 stone bricks."),
icon = "default_stone_brick.png^awards_level3.png", icon = "default_stone_brick.png^awards_level3.png",
@ -173,9 +174,9 @@ awards.register_achievement("awards_stonebrick3", {
item = "default:stonebrick", item = "default:stonebrick",
target = 3200 target = 3200
} }
}) })
awards.register_achievement("awards_desert_stonebrick", { awards.register_achievement("awards_desert_stonebrick", {
title = S("Desert Dweller"), title = S("Desert Dweller"),
description = S("Craft 400 desert stone bricks."), description = S("Craft 400 desert stone bricks."),
icon = "default_desert_stone_brick.png", icon = "default_desert_stone_brick.png",
@ -184,9 +185,9 @@ awards.register_achievement("awards_desert_stonebrick", {
item = "default:desert_stonebrick", item = "default:desert_stonebrick",
target = 400 target = 400
} }
}) })
awards.register_achievement("awards_desertstonebrick", { awards.register_achievement("awards_desertstonebrick", {
title = S("Pharaoh"), title = S("Pharaoh"),
description = S("Craft 100 sandstone bricks."), description = S("Craft 100 sandstone bricks."),
icon = "default_sandstone_brick.png", icon = "default_sandstone_brick.png",
@ -195,9 +196,9 @@ awards.register_achievement("awards_desertstonebrick", {
item = "default:sandstonebrick", item = "default:sandstonebrick",
target = 100 target = 100
} }
}) })
awards.register_achievement("awards_bookshelf", { awards.register_achievement("awards_bookshelf", {
title = S("Little Library"), title = S("Little Library"),
description = S("Craft 7 bookshelves."), description = S("Craft 7 bookshelves."),
icon = "default_bookshelf.png", icon = "default_bookshelf.png",
@ -206,9 +207,9 @@ awards.register_achievement("awards_bookshelf", {
item = "default:bookshelf", item = "default:bookshelf",
target = 7 target = 7
} }
}) })
awards.register_achievement("awards_obsidian", { awards.register_achievement("awards_obsidian", {
title = S("Lava and Water"), title = S("Lava and Water"),
description = S("Mine your first obsidian."), description = S("Mine your first obsidian."),
icon = "default_obsidian.png^awards_level1.png", icon = "default_obsidian.png^awards_level1.png",
@ -218,10 +219,10 @@ awards.register_achievement("awards_obsidian", {
node = "default:obsidian", node = "default:obsidian",
target = 1 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"),
description = S("Mine 50 obsidian."), description = S("Mine 50 obsidian."),
icon = "default_obsidian.png^awards_level2.png", icon = "default_obsidian.png^awards_level2.png",
@ -231,26 +232,26 @@ awards.register_achievement("award_obsessed_with_obsidian",{
node = "default:obsidian", node = "default:obsidian",
target = 50 target = 50
} }
}) })
-- Proof that player has found lava -- Proof that player has found lava
awards.register_achievement("award_lavaminer",{ awards.register_achievement("award_lavaminer",{
title = S("Lava Miner"), title = S("Lava Miner"),
description = S("Mine any block while being very close to lava."), description = S("Mine any block while being very close to lava."),
background = "awards_bg_mining.png", background = "awards_bg_mining.png",
icon = "default_lava.png", icon = "default_lava.png",
}) })
awards.register_on_dig(function(player,data) awards.register_on_dig(function(player,data)
local pos = player:getpos() local pos = player:getpos()
if pos and (minetest.find_node_near(pos, 1, "default:lava_source") ~= nil or if pos and (minetest.find_node_near(pos, 1, "default:lava_source") ~= nil or
minetest.find_node_near(pos, 1, "default:lava_flowing") ~= nil) then minetest.find_node_near(pos, 1, "default:lava_flowing") ~= nil) then
return "award_lavaminer" return "award_lavaminer"
end end
return nil return nil
end) end)
-- On the way -- On the way
awards.register_achievement("award_on_the_way", { awards.register_achievement("award_on_the_way", {
title = S("On The Way"), title = S("On The Way"),
description = S("Place 100 rails."), description = S("Place 100 rails."),
icon = "default_rail.png", icon = "default_rail.png",
@ -259,9 +260,9 @@ awards.register_achievement("award_on_the_way", {
node = "default:rail", node = "default:rail",
target = 100 target = 100
} }
}) })
awards.register_achievement("award_lumberjack_firstday", { awards.register_achievement("award_lumberjack_firstday", {
title = S("First Day in the Woods"), title = S("First Day in the Woods"),
description = S("Dig 6 tree blocks."), description = S("Dig 6 tree blocks."),
icon = "default_tree.png^awards_level1.png", icon = "default_tree.png^awards_level1.png",
@ -270,10 +271,10 @@ awards.register_achievement("award_lumberjack_firstday", {
node = "default:tree", node = "default:tree",
target = 6 target = 6
} }
}) })
-- Lumberjack -- Lumberjack
awards.register_achievement("award_lumberjack", { awards.register_achievement("award_lumberjack", {
title = S("Lumberjack"), title = S("Lumberjack"),
description = S("Dig 36 tree blocks."), description = S("Dig 36 tree blocks."),
icon = "default_tree.png^awards_level2.png", icon = "default_tree.png^awards_level2.png",
@ -282,10 +283,10 @@ awards.register_achievement("award_lumberjack", {
node = "default:tree", node = "default:tree",
target = 36 target = 36
} }
}) })
-- Semi-pro Lumberjack -- Semi-pro Lumberjack
awards.register_achievement("award_lumberjack_semipro", { awards.register_achievement("award_lumberjack_semipro", {
title = S("Semi-pro Lumberjack"), title = S("Semi-pro Lumberjack"),
description = S("Dig 216 tree blocks."), description = S("Dig 216 tree blocks."),
icon = "default_tree.png^awards_level3.png", icon = "default_tree.png^awards_level3.png",
@ -294,10 +295,10 @@ awards.register_achievement("award_lumberjack_semipro", {
node = "default:tree", node = "default:tree",
target = 216 target = 216
} }
}) })
-- Professional Lumberjack -- Professional Lumberjack
awards.register_achievement("award_lumberjack_professional", { awards.register_achievement("award_lumberjack_professional", {
title = S("Professional Lumberjack"), title = S("Professional Lumberjack"),
description = S("Dig 1,296 tree blocks."), description = S("Dig 1,296 tree blocks."),
icon = "default_tree.png^awards_level4.png", icon = "default_tree.png^awards_level4.png",
@ -306,10 +307,10 @@ awards.register_achievement("award_lumberjack_professional", {
node = "default:tree", node = "default:tree",
target = 1296 target = 1296
} }
}) })
-- Junglebaby -- Junglebaby
awards.register_achievement("award_junglebaby", { awards.register_achievement("award_junglebaby", {
title = S("Junglebaby"), title = S("Junglebaby"),
description = S("Dig 100 jungle tree blocks."), description = S("Dig 100 jungle tree blocks."),
icon = "default_jungletree.png^awards_level1.png", icon = "default_jungletree.png^awards_level1.png",
@ -318,10 +319,10 @@ awards.register_achievement("award_junglebaby", {
node = "default:jungletree", node = "default:jungletree",
target = 100 target = 100
} }
}) })
-- Jungleman -- Jungleman
awards.register_achievement("award_jungleman", { awards.register_achievement("award_jungleman", {
title = S("Jungleman"), title = S("Jungleman"),
description = S("Dig 1,000 jungle tree blocks."), description = S("Dig 1,000 jungle tree blocks."),
icon = "default_jungletree.png^awards_level2.png", icon = "default_jungletree.png^awards_level2.png",
@ -330,10 +331,10 @@ awards.register_achievement("award_jungleman", {
node = "default:jungletree", node = "default:jungletree",
target = 1000 target = 1000
} }
}) })
-- 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("Mine your first mese ore."), description = S("Mine your first mese ore."),
icon = "default_stone.png^default_mineral_mese.png", icon = "default_stone.png^default_mineral_mese.png",
@ -343,10 +344,10 @@ awards.register_achievement("award_mesefind", {
node = "default:stone_with_mese", node = "default:stone_with_mese",
target = 1 target = 1
} }
}) })
-- Mese Block -- Mese Block
awards.register_achievement("award_meseblock", { awards.register_achievement("award_meseblock", {
secret = true, secret = true,
title = S("Mese Mastery"), title = S("Mese Mastery"),
description = S("Mine a mese block."), description = S("Mine a mese block."),
@ -357,12 +358,10 @@ awards.register_achievement("award_meseblock", {
node = "default:mese", node = "default:mese",
target = 1 target = 1
} }
}) })
-- You're a copper
awards.register_achievement("award_youre_a_copper", {
-- You're a copper
awards.register_achievement("award_youre_a_copper", {
title = S("Youre a copper"), title = S("Youre a copper"),
description = S("Dig 1,000 copper ores."), description = S("Dig 1,000 copper ores."),
icon = "default_stone.png^default_mineral_copper.png", icon = "default_stone.png^default_mineral_copper.png",
@ -372,10 +371,10 @@ awards.register_achievement("award_youre_a_copper", {
node = "default:stone_with_copper", node = "default:stone_with_copper",
target = 1000 target = 1000
} }
}) })
-- Found a Nyan cat! -- Found a Nyan cat!
awards.register_achievement("award_nyanfind", { awards.register_achievement("award_nyanfind", {
secret = true, secret = true,
title = S("A Cat in a Pop-Tart?!"), title = S("A Cat in a Pop-Tart?!"),
description = S("Mine a nyan cat."), description = S("Mine a nyan cat."),
@ -385,10 +384,10 @@ awards.register_achievement("award_nyanfind", {
node = "default:nyancat", node = "default:nyancat",
target = 1 target = 1
} }
}) })
-- Mini Miner -- Mini Miner
awards.register_achievement("award_mine2", { awards.register_achievement("award_mine2", {
title = S("Mini Miner"), title = S("Mini Miner"),
description = S("Dig 100 stone blocks."), description = S("Dig 100 stone blocks."),
icon = "awards_miniminer.png^awards_level1.png", icon = "awards_miniminer.png^awards_level1.png",
@ -398,10 +397,10 @@ awards.register_achievement("award_mine2", {
node = "default:stone", node = "default:stone",
target = 100 target = 100
} }
}) })
-- 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^awards_level2.png", icon = "awards_miniminer.png^awards_level2.png",
@ -411,10 +410,10 @@ awards.register_achievement("award_mine3", {
node = "default:stone", node = "default:stone",
target = 1000 target = 1000
} }
}) })
-- Master Miner -- Master Miner
awards.register_achievement("award_mine4", { awards.register_achievement("award_mine4", {
title = S("Master Miner"), title = S("Master Miner"),
description = S("Dig 10,000 stone blocks."), description = S("Dig 10,000 stone blocks."),
icon = "awards_miniminer.png^awards_level3.png", icon = "awards_miniminer.png^awards_level3.png",
@ -424,10 +423,10 @@ awards.register_achievement("award_mine4", {
node = "default:stone", node = "default:stone",
target = 10000 target = 10000
} }
}) })
-- Marchand de sable -- Marchand de sable
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", icon = "default_sand.png",
@ -437,9 +436,9 @@ awards.register_achievement("award_marchand_de_sable", {
node = "default:sand", node = "default:sand",
target = 1000 target = 1000
} }
}) })
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("Craft 100 sticks."), description = S("Craft 100 sticks."),
icon = "default_stick.png", icon = "default_stick.png",
@ -448,9 +447,9 @@ awards.register_achievement("awards_crafter_of_sticks", {
item = "default:stick", item = "default:stick",
target = 100 target = 100
} }
}) })
awards.register_achievement("awards_junglegrass", { awards.register_achievement("awards_junglegrass", {
title = S("Jungle Discoverer"), title = S("Jungle Discoverer"),
description = S("Mine your first jungle grass."), description = S("Mine your first jungle grass."),
icon = "default_junglegrass.png", icon = "default_junglegrass.png",
@ -459,9 +458,9 @@ awards.register_achievement("awards_junglegrass", {
node = "default:junglegrass", node = "default:junglegrass",
target = 1 target = 1
} }
}) })
awards.register_achievement("awards_grass", { awards.register_achievement("awards_grass", {
title = S("Grasslands Discoverer"), title = S("Grasslands Discoverer"),
description = S("Mine some grass."), description = S("Mine some grass."),
icon = "default_grass_3.png", icon = "default_grass_3.png",
@ -470,9 +469,9 @@ awards.register_achievement("awards_grass", {
node = "default:grass_1", node = "default:grass_1",
target = 1 target = 1
} }
}) })
awards.register_achievement("awards_dry_grass", { awards.register_achievement("awards_dry_grass", {
title = S("Savannah Discoverer"), title = S("Savannah Discoverer"),
description = S("Mine some dry grass."), description = S("Mine some dry grass."),
icon = "default_dry_grass_3.png", icon = "default_dry_grass_3.png",
@ -481,9 +480,9 @@ awards.register_achievement("awards_dry_grass", {
node = "default:dry_grass_3", node = "default:dry_grass_3",
target = 1 target = 1
} }
}) })
awards.register_achievement("awards_cactus", { awards.register_achievement("awards_cactus", {
title = S("Desert Discoverer"), title = S("Desert Discoverer"),
description = S("Mine your first cactus."), description = S("Mine your first cactus."),
icon = "default_cactus_side.png", icon = "default_cactus_side.png",
@ -492,9 +491,9 @@ awards.register_achievement("awards_cactus", {
node = "default:cactus", node = "default:cactus",
target = 1 target = 1
} }
}) })
awards.register_achievement("awards_dry_shrub", { awards.register_achievement("awards_dry_shrub", {
title = S("Far Lands"), title = S("Far Lands"),
description = S("Mine your first dry shrub."), description = S("Mine your first dry shrub."),
icon = "default_dry_shrub.png", icon = "default_dry_shrub.png",
@ -503,9 +502,9 @@ awards.register_achievement("awards_dry_shrub", {
node = "default:dry_shrub", node = "default:dry_shrub",
target = 1 target = 1
} }
}) })
awards.register_achievement("awards_ice", { awards.register_achievement("awards_ice", {
title = S("Glacier Discoverer"), title = S("Glacier Discoverer"),
description = S("Mine your first ice."), description = S("Mine your first ice."),
icon = "default_ice.png", icon = "default_ice.png",
@ -514,10 +513,10 @@ awards.register_achievement("awards_ice", {
node = "default:ice", node = "default:ice",
target = 1 target = 1
} }
}) })
-- Proof that player visited snowy lands -- Proof that player visited snowy lands
awards.register_achievement("awards_snowblock", { awards.register_achievement("awards_snowblock", {
title = S("Very Simple Snow Man"), title = S("Very Simple Snow Man"),
description = S("Place two snow blocks."), description = S("Place two snow blocks."),
icon = "default_snow.png", icon = "default_snow.png",
@ -526,7 +525,178 @@ awards.register_achievement("awards_snowblock", {
node = "default:snowblock", node = "default:snowblock",
target = 2 target = 2
} }
}) })
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^awards_level1.png",
background = "awards_bg_mining.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^awards_level2.png",
background = "awards_bg_mining.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^awards_level1.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^awards_level2.png",
background = "awards_bg_mining.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_achievement("award_furnace", {
title = S("Smelter"),
description = S("Craft 10 furnaces."),
icon = "default_furnace_front.png",
trigger = {
type = "craft",
item= "default:furnace",
target = 10
}
})
awards.register_achievement("award_chest", {
title = S("Treasurer"),
description = S("Craft 15 chests."),
icon = "default_chest_front.png",
trigger = {
type = "craft",
item= "default:chest",
target = 15
}
})
awards.register_achievement("award_chest2", {
title = S("Bankier"),
description = S("Craft 30 locked chests."),
icon = "default_chest_lock.png",
trigger = {
type = "craft",
item= "default:chest_locked",
target = 30
}
})
awards.register_achievement("award_brick", {
title = S("Bricker"),
description = S("Craft 200 brick blocks."),
icon = "default_brick.png",
trigger = {
type = "craft",
item= "default:brick",
target = 200
}
})
awards.register_achievement("award_obsidianbrick", {
title = S("House of Obsidian"),
description = S("Craft 100 obsidian bricks."),
icon = "default_obsidian_brick.png",
trigger = {
type = "craft",
item= "default:obsidianbrick",
target = 100
}
})
awards.register_achievement("award_placestone", {
title = S("Build a Cave"),
description = S("Place 100 stone."),
icon = "default_stone.png",
trigger = {
type = "place",
node = "default:stone",
target = 100
}
})
awards.register_achievement("award_woodladder", {
title = S("Long Ladder"),
description = S("Place 400 wooden ladders."),
icon = "default_ladder_wood.png",
trigger = {
type = "place",
node = "default:ladder_wood",
target = 400
}
})
awards.register_achievement("award_steelladder", {
title = S("Industrial Age"),
description = S("Place 40 steel ladders."),
icon = "default_ladder_steel.png",
trigger = {
type = "place",
node = "default:ladder_steel",
target = 40
}
})
end
if minetest.get_modpath("vessels") then
awards.register_achievement("award_vessels_shelf", {
title = S("Glasser"),
icon = "vessels_shelf.png",
description = S("Craft 14 vessels shelves."),
trigger = {
type = "craft",
item= "vessels:shelf",
target = 14
}
})
end
if minetest.get_modpath("farming") then if minetest.get_modpath("farming") then
awards.register_achievement("awards_farmer", { awards.register_achievement("awards_farmer", {
@ -587,176 +757,6 @@ if minetest.get_modpath("wool") and minetest.get_modpath("farming") then
}) })
end end
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^awards_level1.png",
background = "awards_bg_mining.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^awards_level2.png",
background = "awards_bg_mining.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^awards_level1.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^awards_level2.png",
background = "awards_bg_mining.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
}
})
if minetest.get_modpath("vessels") then
awards.register_achievement("award_vessels_shelf", {
title = S("Glasser"),
icon = "vessels_shelf.png",
description = S("Craft 14 vessels shelves."),
trigger = {
type = "craft",
item= "vessels:shelf",
target = 14
}
})
end
awards.register_achievement("award_furnace", {
title = S("Smelter"),
description = S("Craft 10 furnaces."),
icon = "default_furnace_front.png",
trigger = {
type = "craft",
item= "default:furnace",
target = 10
}
})
awards.register_achievement("award_chest", {
title = S("Treasurer"),
description = S("Craft 15 chests."),
icon = "default_chest_front.png",
trigger = {
type = "craft",
item= "default:chest",
target = 15
}
})
awards.register_achievement("award_chest2", {
title = S("Bankier"),
description = S("Craft 30 locked chests."),
icon = "default_chest_lock.png",
trigger = {
type = "craft",
item= "default:chest_locked",
target = 30
}
})
awards.register_achievement("award_brick", {
title = S("Bricker"),
description = S("Craft 200 brick blocks."),
icon = "default_brick.png",
trigger = {
type = "craft",
item= "default:brick",
target = 200
}
})
awards.register_achievement("award_obsidianbrick", {
title = S("House of Obsidian"),
description = S("Craft 100 obsidian bricks."),
icon = "default_obsidian_brick.png",
trigger = {
type = "craft",
item= "default:obsidianbrick",
target = 100
}
})
awards.register_achievement("award_placestone", {
title = S("Build a Cave"),
description = S("Place 100 stone."),
icon = "default_stone.png",
trigger = {
type = "place",
node = "default:stone",
target = 100
}
})
awards.register_achievement("award_woodladder", {
title = S("Long Ladder"),
description = S("Place 400 wooden ladders."),
icon = "default_ladder_wood.png",
trigger = {
type = "place",
node = "default:ladder_wood",
target = 400
}
})
awards.register_achievement("award_steelladder", {
title = S("Industrial Age"),
description = S("Place 40 steel ladders."),
icon = "default_ladder_steel.png",
trigger = {
type = "place",
node = "default:ladder_steel",
target = 40
}
})
if minetest.get_modpath("beds") then if minetest.get_modpath("beds") then
awards.register_achievement("award_bed", { awards.register_achievement("award_bed", {
title = S("Hotelier"), title = S("Hotelier"),