diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..b5923f0 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,26 @@ +[mod] 3d_armor_gauntlets +======================= + +License Source Code +------------------- + +Copyright (C) 2012-2019 stujones11, Stuart Jones + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public License along +with this program; if not, write to the Free Software Foundation, Inc., +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +License Textures +---------------- + +Copyright (C) 2017-2019 davidthecreator - CC-BY-SA 3.0 diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..2e255a3 --- /dev/null +++ b/README.txt @@ -0,0 +1,7 @@ +[mod] 3d_armor_gloves +======================= + +Adds gloves/gauntlets to 3d_armor + +Depends: 3d_armor + diff --git a/crafting_guide.txt b/crafting_guide.txt new file mode 100644 index 0000000..d1c2e7f --- /dev/null +++ b/crafting_guide.txt @@ -0,0 +1,22 @@ +3d_Armor_Gloves -- Crafting Guide +-------------------------- + ++---+---+---+ +| X | | X | ++---+---+---+ +| S | | S | ++---+---+---+ +| | | | ++---+---+---+ + +[3d_armor_gloves:gloves_wood] X = [default:wood], S = [farming:string] +[3d_armor_gloves:gloves_cactus] X = [default:cactus], S = [farming:string] +[3d_armor_gloves:gloves_steel] X = [default:steel_ingot], S = [farming:string] +[3d_armor_gloves:gloves_bronze] X = [default:bronze_ingot], S = [farming:string] +[3d_armor_gloves:gloves_diamond] X = [default:diamond], S = [farming:string] +[3d_armor_gloves:gloves_gold] X = [default:gold_ingot], S = [farming:string] +[3d_armor_gloves:gloves_mithril] X = [moreores:mithril_ingot], S = [farming:string] +[3d_armor_gloves:gloves_crystal] X = [ethereal:crystal_ingot], S = [farming:string] + + + diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..5ab0f93 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Adds visible gloves/gauntlets to 3d armor. diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..a04c6d2 --- /dev/null +++ b/init.lua @@ -0,0 +1,117 @@ +-- support for i18n +local S = minetest.get_translator(minetest.get_current_modname()) + + +if minetest.global_exists("armor") and armor.elements then + table.insert(armor.elements, "hands") + local mult = armor.config.level_multiplier or 1 + armor.config.level_multiplier = mult * 0.9 +end + +-- Regisiter Gloves/Gauntlets + +if armor.materials.wood then + armor:register_armor("3d_armor_gloves:gloves_wood", { + description = S("Wood Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_wood.png", + groups = {armor_hands=1, armor_heal=0, armor_use=2000, flammable=1}, + armor_groups = {fleshy=5}, + damage_groups = {cracky=3, snappy=2, choppy=3, crumbly=2, level=1}, + }) + + minetest.register_craft({ + type = "fuel", + recipe = "shields:shield_wood", + burntime = 4, + }) +end + +if armor.materials.cactus then + armor:register_armor("3d_armor_gloves:gloves_cactus", { + description = S("Cactus Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_cactus.png", + groups = {armor_hands=1, armor_heal=0, armor_use=1000}, + armor_groups = {fleshy=5}, + damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1}, + }) + + minetest.register_craft({ + type = "fuel", + recipe = "3d_armor_gloves:gloves_cactus", + burntime = 8, + }) +end + +if armor.materials.steel then + armor:register_armor("3d_armor_gloves:gloves_steel", { + description = S("Steel Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_steel.png", + groups = {armor_hands=1, armor_heal=0, armor_use=800, + physics_speed=-0.01, physics_gravity=0.01}, + armor_groups = {fleshy=10}, + damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2}, + }) +end + +if armor.materials.bronze then + armor:register_armor("3d_armor_gloves:gloves_bronze", { + description = S("Bronze Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_bronze.png", + groups = {armor_hands=1, armor_heal=6, armor_use=400, + physics_speed=-0.01, physics_gravity=0.01}, + armor_groups = {fleshy=10}, + damage_groups = {cracky=3, snappy=2, choppy=2, crumbly=1, level=2}, + }) +end + +if armor.materials.diamond then + armor:register_armor("3d_armor_gloves:gloves_diamond", { + description = S("Diamond Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_diamond.png", + groups = {armor_hands=1, armor_heal=12, armor_use=200}, + armor_groups = {fleshy=15}, + damage_groups = {cracky=2, snappy=1, choppy=1, level=3}, + }) +end + +if armor.materials.gold then + armor:register_armor("3d_armor_gloves:gloves_gold", { + description = S("Gold Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_gold.png", + groups = {armor_hands=1, armor_heal=6, armor_use=300, + physics_speed=-0.02, physics_gravity=0.02}, + armor_groups = {fleshy=10}, + damage_groups = {cracky=1, snappy=2, choppy=2, crumbly=3, level=2}, + }) +end + +if armor.materials.mithril then + armor:register_armor("3d_armor_gloves:gloves_mithril", { + description = S("Mithril Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_mithril.png", + groups = {armor_hands=1, armor_heal=12, armor_use=100}, + armor_groups = {fleshy=15}, + damage_groups = {cracky=2, snappy=1, level=3}, + }) +end + +if armor.materials.crystal then + armor:register_armor("3d_armor_gloves:gloves_crystal", { + description = S("Crystal Gauntlets"), + inventory_image = "3d_armor_gloves_inv_gloves_crystal.png", + groups = {armor_hands=1, armor_heal=12, armor_use=100, physics_speed=1, + physics_jump=0.5, armor_fire=1}, + armor_groups = {fleshy=15}, + damage_groups = {cracky=2, snappy=1, level=3}, + }) +end + +for k, v in pairs(armor.materials) do + minetest.register_craft({ + output = "3d_armor_gloves:gloves_"..k, + recipe = { + {v, "", v}, + {"farming:string", "", "farming:string"}, + }, + }) +end diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..48d9170 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,14 @@ +# textdomain: 3d_armor_gloves + + +### init.lua ### + +Wood Gauntlets= +Cactus Gauntlets= +Steel Gauntlets= +Bronze Gauntlets= +Diamond Gauntlets= +Gold Gauntlets= +Mithril Gauntlets= +Crystal Gauntlets= + diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..716b808 --- /dev/null +++ b/mod.conf @@ -0,0 +1,3 @@ +name = 3d_armor_gloves +depends = default, farming, 3d_armor +description = Adds visible gloves/gauntlets to 3d armor. diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..354b7f1 Binary files /dev/null and b/screenshot.png differ diff --git a/textures/3d_armor_gloves_gloves_bronze.png b/textures/3d_armor_gloves_gloves_bronze.png new file mode 100644 index 0000000..d5a3842 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_bronze.png differ diff --git a/textures/3d_armor_gloves_gloves_bronze_preview.png b/textures/3d_armor_gloves_gloves_bronze_preview.png new file mode 100644 index 0000000..513a99b Binary files /dev/null and b/textures/3d_armor_gloves_gloves_bronze_preview.png differ diff --git a/textures/3d_armor_gloves_gloves_cactus.png b/textures/3d_armor_gloves_gloves_cactus.png new file mode 100644 index 0000000..5561673 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_cactus.png differ diff --git a/textures/3d_armor_gloves_gloves_cactus_preview.png b/textures/3d_armor_gloves_gloves_cactus_preview.png new file mode 100644 index 0000000..87ccee0 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_cactus_preview.png differ diff --git a/textures/3d_armor_gloves_gloves_crystal.png b/textures/3d_armor_gloves_gloves_crystal.png new file mode 100644 index 0000000..12b3076 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_crystal.png differ diff --git a/textures/3d_armor_gloves_gloves_crystal_preview.png b/textures/3d_armor_gloves_gloves_crystal_preview.png new file mode 100644 index 0000000..6056ebe Binary files /dev/null and b/textures/3d_armor_gloves_gloves_crystal_preview.png differ diff --git a/textures/3d_armor_gloves_gloves_diamond.png b/textures/3d_armor_gloves_gloves_diamond.png new file mode 100644 index 0000000..55ef7b6 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_diamond.png differ diff --git a/textures/3d_armor_gloves_gloves_diamond_preview.png b/textures/3d_armor_gloves_gloves_diamond_preview.png new file mode 100644 index 0000000..54ec394 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_diamond_preview.png differ diff --git a/textures/3d_armor_gloves_gloves_gold.png b/textures/3d_armor_gloves_gloves_gold.png new file mode 100644 index 0000000..9e6f930 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_gold.png differ diff --git a/textures/3d_armor_gloves_gloves_gold_preview.png b/textures/3d_armor_gloves_gloves_gold_preview.png new file mode 100644 index 0000000..c9032e8 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_gold_preview.png differ diff --git a/textures/3d_armor_gloves_gloves_mithril.png b/textures/3d_armor_gloves_gloves_mithril.png new file mode 100644 index 0000000..8b13e36 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_mithril.png differ diff --git a/textures/3d_armor_gloves_gloves_mithril_preview.png b/textures/3d_armor_gloves_gloves_mithril_preview.png new file mode 100644 index 0000000..8336a97 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_mithril_preview.png differ diff --git a/textures/3d_armor_gloves_gloves_steel.png b/textures/3d_armor_gloves_gloves_steel.png new file mode 100644 index 0000000..061a2b9 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_steel.png differ diff --git a/textures/3d_armor_gloves_gloves_steel_preview.png b/textures/3d_armor_gloves_gloves_steel_preview.png new file mode 100644 index 0000000..881fee0 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_steel_preview.png differ diff --git a/textures/3d_armor_gloves_gloves_wood.png b/textures/3d_armor_gloves_gloves_wood.png new file mode 100644 index 0000000..6780b1e Binary files /dev/null and b/textures/3d_armor_gloves_gloves_wood.png differ diff --git a/textures/3d_armor_gloves_gloves_wood_preview.png b/textures/3d_armor_gloves_gloves_wood_preview.png new file mode 100644 index 0000000..bc6bba3 Binary files /dev/null and b/textures/3d_armor_gloves_gloves_wood_preview.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_bronze.png b/textures/3d_armor_gloves_inv_gloves_bronze.png new file mode 100644 index 0000000..2d44042 Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_bronze.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_cactus.png b/textures/3d_armor_gloves_inv_gloves_cactus.png new file mode 100644 index 0000000..1db43bd Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_cactus.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_crystal.png b/textures/3d_armor_gloves_inv_gloves_crystal.png new file mode 100644 index 0000000..ea0595f Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_crystal.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_diamond.png b/textures/3d_armor_gloves_inv_gloves_diamond.png new file mode 100644 index 0000000..0df0eca Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_diamond.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_gold.png b/textures/3d_armor_gloves_inv_gloves_gold.png new file mode 100644 index 0000000..d9d71d7 Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_gold.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_mithril.png b/textures/3d_armor_gloves_inv_gloves_mithril.png new file mode 100644 index 0000000..bc50be6 Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_mithril.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_steel.png b/textures/3d_armor_gloves_inv_gloves_steel.png new file mode 100644 index 0000000..0f99b52 Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_steel.png differ diff --git a/textures/3d_armor_gloves_inv_gloves_wood.png b/textures/3d_armor_gloves_inv_gloves_wood.png new file mode 100644 index 0000000..3ee6957 Binary files /dev/null and b/textures/3d_armor_gloves_inv_gloves_wood.png differ