diff --git a/README.md b/README.md index fc0053b..986a94a 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ To download you can play this game with the following minetest engines: * integrated the killme/game_commands were simplified into default mod, and provide CC-BY-SA-NC license * farming is default older but has build-in toolrank detection support * xdecor as `xdecor` [mods/xdecor](mods/xdecor) a super reduced version of homedecor pack, for performance + * sunglasses into `default` from https://github.com/niwla23/minetest_game_improved/tree/master/mods/armoraddons * sorceredkid auth mod * minetest Auth Redux as `auth_rx` [mods/auth_rx](mods/auth_rx) from https://codeberg.org/minenux/minetest-mod-auth_rx * so then minetest Formspecs as `formspecs` [mods/formspecs](mods/formspecs) from https://codeberg.org/minenux/minetest-mod-formspecs diff --git a/mods/default/README.md b/mods/default/README.md index 5c3e862..1706955 100644 --- a/mods/default/README.md +++ b/mods/default/README.md @@ -3,16 +3,20 @@ Minetest Game mod: default This mod is a base mod for almost any minetest game, it provide default nodes, blocks and biomes configuration. -This mod integrates player_api and autodetect older or newer model set for any protocol +This mod integrates player_api and autodetect older or newer model set for any protocol, integration code is CC-BY-SA-NC by mckaygerhard + +This mod integrates sunglasses and code is CC-BY-SA-NC by mckaygerhard cos original sources are not found! # License - Authors of source code ---------------------- Originally by celeron55, Perttu Ahola (LGPL 2.1) Various Minetest developers and contributors (LGPL 2.1) +integrations by mckaygerhard, PICCORO lenz Mckay gerardo +like the detection of newer and older api and sunglasses + Authors of media (textures, models and sounds) ---------------------------------------------- Everything not listed in here: diff --git a/mods/default/README.txt b/mods/default/README.txt index 75f869d..1706955 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -1,12 +1,22 @@ Minetest Game mod: default ========================== -See license.txt for license information. + +This mod is a base mod for almost any minetest game, it provide default nodes, blocks and biomes configuration. + +This mod integrates player_api and autodetect older or newer model set for any protocol, integration code is CC-BY-SA-NC by mckaygerhard + +This mod integrates sunglasses and code is CC-BY-SA-NC by mckaygerhard cos original sources are not found! + +# License Authors of source code ---------------------- Originally by celeron55, Perttu Ahola (LGPL 2.1) Various Minetest developers and contributors (LGPL 2.1) +integrations by mckaygerhard, PICCORO lenz Mckay gerardo +like the detection of newer and older api and sunglasses + Authors of media (textures, models and sounds) ---------------------------------------------- Everything not listed in here: diff --git a/mods/default/aliases.lua b/mods/default/aliases.lua index 6db3fc8..8c8e0f2 100644 --- a/mods/default/aliases.lua +++ b/mods/default/aliases.lua @@ -75,3 +75,8 @@ minetest.register_alias("default:pinewood", "default:pine_wood") minetest.register_alias("default:ladder", "default:ladder_wood") minetest.register_alias("default:sign_wall", "default:sign_wall_wood") + +if not minetest.get_modpath("armoraddons") then +minetest.register_alias("armoraddons:sunglasses", "default:sunglasses") +end + diff --git a/mods/default/crafting.lua b/mods/default/crafting.lua index 2d11d26..ce934b2 100644 --- a/mods/default/crafting.lua +++ b/mods/default/crafting.lua @@ -1152,3 +1152,13 @@ minetest.register_craft({ recipe = "default:sword_wood", burntime = 5, }) + +minetest.register_craft({ + type = "shaped", + output = "default:sunglasses", + recipe = { + {"default:sunglass", "default:stick", "default:sunglass"}, + {"default:sunglass", "default:stick", "default:sunglass"}, + {"default:sunglass", "default:stick", "default:sunglass"} + } +}) diff --git a/mods/default/textures/default_sunglasses.png b/mods/default/textures/default_sunglasses.png new file mode 100644 index 0000000..8d08542 Binary files /dev/null and b/mods/default/textures/default_sunglasses.png differ diff --git a/mods/default/textures/sunglasses.png b/mods/default/textures/sunglasses.png new file mode 100644 index 0000000..55317a3 Binary files /dev/null and b/mods/default/textures/sunglasses.png differ diff --git a/mods/default/tools.lua b/mods/default/tools.lua index 067613d..1f5cae0 100644 --- a/mods/default/tools.lua +++ b/mods/default/tools.lua @@ -1,4 +1,4 @@ --- mods/default/tools.lua +--- mods/default/tools.lua -- The hand minetest.register_item(":", { @@ -418,3 +418,18 @@ minetest.register_tool("default:key", { return nil end }) + +minetest.register_tool("default:sunglasses", { + description = "Sunglasses", + inventory_image = "sunglasses.png", + groups = {armor_head=15, armor_heal=0, armor_use=100}, + wear = 0, +}) + +minetest.register_tool("default:sunglass", { + description = "Glass head", + inventory_image = "armoraddons_glass.png", + groups = {armor_head=15, armor_heal=0, armor_use=100}, + wear = 0, +}) +