From 4bf7b7dfa3726d24b8bb9eb2969146c3101e8179 Mon Sep 17 00:00:00 2001 From: Dirkfried <> Date: Tue, 22 Mar 2022 22:24:11 +0100 Subject: [PATCH] add first awards for testing --- illuna_aestival/init.lua | 1 + illuna_aestival/mod.conf | 1 + illuna_aestival/src/awards.lua | 43 ++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100755 illuna_aestival/src/awards.lua diff --git a/illuna_aestival/init.lua b/illuna_aestival/init.lua index f780634..f4c6682 100755 --- a/illuna_aestival/init.lua +++ b/illuna_aestival/init.lua @@ -20,6 +20,7 @@ dofile(path .. "/portal.lua") dofile(path .. "/moreblocks.lua") dofile(path .. "/functions.lua") dofile(path .. "/farming.lua") +dofile(path .. "/awards.lua") -- to be refactored minetest.register_alias('hangglider:hangglider', 'hangglider_regular:hangglider') diff --git a/illuna_aestival/mod.conf b/illuna_aestival/mod.conf index 4921b88..f888184 100755 --- a/illuna_aestival/mod.conf +++ b/illuna_aestival/mod.conf @@ -1,2 +1,3 @@ name = illuna_aestival depends = default, hudbars, bonemeal, cloudlands, moretrees, signs_lib, shields, nether_mobs, nether, livingnether, obsidianstuff, other_worlds, sickles +optional_depends = awards, tmw_slimes, moreores diff --git a/illuna_aestival/src/awards.lua b/illuna_aestival/src/awards.lua new file mode 100755 index 0000000..1929402 --- /dev/null +++ b/illuna_aestival/src/awards.lua @@ -0,0 +1,43 @@ +-- Custom awards for the illuna_aestival server + +if minetest.get_modpath("awards") then + if minetest.get_modpath("tmw_slimes") then + awards.register_award("awards_slime_uber", { + title = "Master of slimes", + description = "Craft an uber slime.", + secret = true, + --icon = "uber_slime.png^[colorize:#FD0:200", + difficulty = 2.0, + trigger = { + type = "craft", + node = "tmw_slimes:uber_slime", + target = 1, + } + }) + -- awards.register_award("awards_slime_jungle", { + -- title = "Jungle slime", + -- description = "Craft a jungle slime.", + -- icon = "douglasie_wood.png", + -- --icon = "tmw_slime_inventory.png^[colorize:#0A1:180", + -- difficulty = 1.2, + -- trigger = { + -- type = "craft", + -- node = "tmw_slimes:jungle_slime", + -- target = 1, + -- } + -- }) + end + if minetest.get_modpath("moreores") then + awards.register_award("awards_mithril_mineral", { + title = "Mithril lays deep!", + description = "Mine your first mithril mineral.", + --icon = "awards_wow_i_am_diamonds.png^awards_level1.png", + difficulty = 1.4, + trigger = { + type = "dig", + node = "moreores:mineral_mithril", + target = 1 + } + }) + end +end