diff --git a/df_achievements/dig.lua b/df_achievements/dig.lua index 4e9a9d9..cd7f163 100644 --- a/df_achievements/dig.lua +++ b/df_achievements/dig.lua @@ -19,17 +19,33 @@ awards.register_achievement("dfcaverns_destroyed_gas_seep", { }, }) -awards.register_achievement("dfcaverns_giant_web", { - title = S("Collect Giant Webbing"), - description = S("Collect a piece of giant webbing found in a cave."), - icon ="dfcaverns_awards_backgroundx32.png^big_webs_item.png^dfcaverns_awards_foregroundx32.png", - difficulty = 1, - trigger = { - type = "dig", - node = "big_webs:webbing", - target = 1 - }, -}) +if minetest.get_modpath("big_webs") then + awards.register_achievement("dfcaverns_giant_web", { + title = S("Collect Giant Webbing"), + description = S("Collect a piece of giant webbing found in a cave."), + icon ="dfcaverns_awards_backgroundx32.png^big_webs_item.png^dfcaverns_awards_foregroundx32.png", + difficulty = 1, + trigger = { + type = "dig", + node = "big_webs:webbing", + target = 1 + }, + }) +end + +if minetest.get_modpath("bubblesponge") then + awards.register_achievement("dfcaverns_bubblesponge", { + title = S("Collect Bubblesponge Frond"), + description = S("Collect a piece of bubblesponge."), + icon ="dfcaverns_awards_backgroundx32.png^bubblesponge_frond.png^dfcaverns_awards_foregroundx32.png", + difficulty = 1, + trigger = { + type = "dig", + node = "bubblesponge:frond", + target = 1 + }, + }) +end -- too common --awards.register_achievement("dfcaverns_glow_worms", { diff --git a/df_achievements/mod.conf b/df_achievements/mod.conf index 11fb8e7..b7b77ac 100644 --- a/df_achievements/mod.conf +++ b/df_achievements/mod.conf @@ -1,4 +1,4 @@ name=df_achievements description=Achievements for DFCaverns depends=df_caverns, df_trees, df_farming, df_mapitems, df_dependencies, pit_caves -optional_depends=df_underworld_items, hunter_statue, awards \ No newline at end of file +optional_depends=df_underworld_items, hunter_statue, awards, big_webs, bubblesponge \ No newline at end of file