added crude menu icon, added awards submodule, added wbg_awards for registering our own because the defaults are a bit strange

master
Kyra Zimmer 2020-08-10 01:25:07 +02:00
parent 0fecd7a1c5
commit 370949d1f4
7 changed files with 45 additions and 0 deletions

3
.gitmodules vendored
View File

@ -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

BIN
menu/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -29,3 +29,5 @@ radiant_damage_mese_interval = 5
protector_radius = 20
protector_spawn = 30
protector_night_pvp = true
awards.add_defaults = false

1
mods/awards Submodule

@ -0,0 +1 @@
Subproject commit 4e8d17571413f1d712b8dc69591a485b97f6214e

1
mods/wbg_awards/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.lua

35
mods/wbg_awards/init.moon Normal file
View File

@ -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

3
mods/wbg_awards/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = wbg_awards
depends = awards