diff --git a/.gitmodules b/.gitmodules index 0046fac..206c557 100644 --- a/.gitmodules +++ b/.gitmodules @@ -76,3 +76,6 @@ [submodule "mods/BBQ"] path = mods/BBQ url = https://github.com/Grizzly-Adam/BBQ.git +[submodule "mods/awards"] + path = mods/awards + url = https://github.com/rubenwardy/awards.git diff --git a/menu/icon.png b/menu/icon.png new file mode 100644 index 0000000..a5ee6ae Binary files /dev/null and b/menu/icon.png differ diff --git a/minetest.conf b/minetest.conf index a664c83..87aa8c8 100644 --- a/minetest.conf +++ b/minetest.conf @@ -29,3 +29,5 @@ radiant_damage_mese_interval = 5 protector_radius = 20 protector_spawn = 30 protector_night_pvp = true + +awards.add_defaults = false diff --git a/mods/awards b/mods/awards new file mode 160000 index 0000000..4e8d175 --- /dev/null +++ b/mods/awards @@ -0,0 +1 @@ +Subproject commit 4e8d17571413f1d712b8dc69591a485b97f6214e diff --git a/mods/wbg_awards/.gitignore b/mods/wbg_awards/.gitignore new file mode 100644 index 0000000..d907c43 --- /dev/null +++ b/mods/wbg_awards/.gitignore @@ -0,0 +1 @@ +*.lua diff --git a/mods/wbg_awards/init.moon b/mods/wbg_awards/init.moon new file mode 100644 index 0000000..cac94d0 --- /dev/null +++ b/mods/wbg_awards/init.moon @@ -0,0 +1,35 @@ +S = awards.gettext + +if minetest.get_modpath "fire" + awards.register_award "awards_pyro", { + title: S "Pyromaniac" + description: S "Craft 8 times flint and steel." + icon: "awards_pyromaniac.png" + trigger: { + type: "craft" + item: "fire:flint_and_steel" + target: 8 + } + } + if minetest.settings\get_bool("disable_fire") ~= true + awards.register_award "awards_firefighter", { + title: S "Firefighter" + description: S "Put out 1000 fires." + icon: "awards_firefighter.png" + trigger: { + type: "dig" + node: "fire:basic_flame" + target: 1000 + } + } + -- 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 (player,data)-> + pos = player\get_pos! + if pos and minetest.find_node_near(pos, 2, "fire:basic_flame") ~= nil then + return "award_burn" + return nil diff --git a/mods/wbg_awards/mod.conf b/mods/wbg_awards/mod.conf new file mode 100644 index 0000000..3f5d623 --- /dev/null +++ b/mods/wbg_awards/mod.conf @@ -0,0 +1,3 @@ +name = wbg_awards +depends = awards +