From 977c734073179435b6c00eff491d7f4adc72c09c Mon Sep 17 00:00:00 2001 From: stujones11 Date: Sun, 11 Feb 2018 17:04:44 +0000 Subject: [PATCH] Initial commit --- .gitignore | 10 ++ LICENSE.txt | 7 ++ README.txt | 12 ++ depends.txt | 2 + description.txt | 1 + init.lua | 105 ++++++++++++++++++ textures/hazmat_suit_inv_boots_hazmat.png | Bin 0 -> 359 bytes .../hazmat_suit_inv_chestplate_hazmat.png | Bin 0 -> 334 bytes textures/hazmat_suit_inv_helmet_hazmat.png | Bin 0 -> 409 bytes textures/hazmat_suit_inv_leggings_hazmat.png | Bin 0 -> 355 bytes textures/hazmat_suit_inv_sleeve_hazmat.png | Bin 0 -> 334 bytes textures/hazmat_suit_inv_suit_hazmat.png | Bin 0 -> 383 bytes textures/hazmat_suit_suit_hazmat.png | Bin 0 -> 614 bytes textures/hazmat_suit_suit_hazmat_preview.png | Bin 0 -> 492 bytes textures/preview_index.txt | 1 + 15 files changed, 138 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.txt create mode 100644 README.txt create mode 100644 depends.txt create mode 100644 description.txt create mode 100644 init.lua create mode 100644 textures/hazmat_suit_inv_boots_hazmat.png create mode 100644 textures/hazmat_suit_inv_chestplate_hazmat.png create mode 100644 textures/hazmat_suit_inv_helmet_hazmat.png create mode 100644 textures/hazmat_suit_inv_leggings_hazmat.png create mode 100644 textures/hazmat_suit_inv_sleeve_hazmat.png create mode 100644 textures/hazmat_suit_inv_suit_hazmat.png create mode 100644 textures/hazmat_suit_suit_hazmat.png create mode 100644 textures/hazmat_suit_suit_hazmat_preview.png create mode 100644 textures/preview_index.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..23de171 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +## Generic ignorable patterns and files +*~ +.*.swp +*bak* +tags +*.vim + +## Eclipse project files & directories +.project +.settings diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..5f05789 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,7 @@ +[mod] Hazmat Suit [hazmat_suit] +=============================== + +License Source Code: Copyright (C) 2015-2018 Stuart Jones - LGPL v2.1 + +License Textures: HybridDog and numberZero - 2015-2017 WTFPL + diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..9f578f8 --- /dev/null +++ b/README.txt @@ -0,0 +1,12 @@ +[mod] Hazmat Suit [hazmat_suit] +=============================== + +Adds hazmat suit to 3d_armor. It protects rather well from fire (if enabled in configuration) and radiation*, and it has built-in oxygen supply. + +Requires technic mod. + +*Requires patched version of technic mod - https://github.com/minetest-technic/technic/pull/275 + +Depends: 3d_armor, technic + +Textures by HybridDog and numberZero diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..773b3fe --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +3d_armor +technic? diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..bba80d0 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Adds hazmat suit (protects from water, fire and radiation) to 3d_armor. diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..0e914c5 --- /dev/null +++ b/init.lua @@ -0,0 +1,105 @@ +-- support for i18n +local S = armor_i18n.gettext + +if not minetest.get_modpath("technic") then + minetest.log("warning", S("hazmat_suit: Mod loaded but unused.")) + return +end + +minetest.register_craftitem("hazmat_suit:helmet_hazmat", { + description = S("Hazmat Helmet"), + inventory_image = "hazmat_suit_inv_helmet_hazmat.png", + stack_max = 1, +}) + +minetest.register_craftitem("hazmat_suit:chestplate_hazmat", { + description = S("Hazmat Chestplate"), + inventory_image = "hazmat_suit_inv_chestplate_hazmat.png", + stack_max = 1, +}) + +minetest.register_craftitem("hazmat_suit:sleeve_hazmat", { + description = S("Hazmat Sleeve"), + inventory_image = "hazmat_suit_inv_sleeve_hazmat.png", + stack_max = 1, +}) + +minetest.register_craftitem("hazmat_suit:leggings_hazmat", { + description = S("Hazmat Leggins"), + inventory_image = "hazmat_suit_inv_leggings_hazmat.png", + stack_max = 1, +}) + +minetest.register_craftitem("hazmat_suit:boots_hazmat", { + description = S("Hazmat Boots"), + inventory_image = "hazmat_suit_inv_boots_hazmat.png", + stack_max = 1, +}) + +armor:register_armor("hazmat_suit:suit_hazmat", { + description = S("Hazmat Suit"), + inventory_image = "hazmat_suit_inv_suit_hazmat.png", + groups = {armor_head=1, armor_torso=1, armor_legs=1, armor_feet=1, + armor_heal=20, armor_fire=4, armor_water=1, armor_use=1000, + physics_jump=-0.1, physics_speed=-0.2, physics_gravity=0.1}, + armor_groups = {fleshy=35, radiation=50}, + damage_groups = {cracky=3, snappy=3, choppy=2, crumbly=2, level=1}, +}) + +minetest.register_craft({ + output = "hazmat_suit:helmet_hazmat", + recipe = { + {"", "technic:stainless_steel_ingot", ""}, + {"technic:stainless_steel_ingot", "default:glass", "technic:stainless_steel_ingot"}, + {"technic:rubber", "technic:rubber", "technic:rubber"}, + }, +}) + +minetest.register_craft({ + output = "hazmat_suit:chestplate_hazmat", + recipe = { + {"technic:lead_ingot", "dye:yellow", "technic:lead_ingot"}, + {"technic:stainless_steel_ingot", "technic:lead_ingot", "technic:stainless_steel_ingot"}, + {"technic:lead_ingot", "technic:stainless_steel_ingot", "technic:lead_ingot"}, + }, +}) + +minetest.register_craft({ + output = "hazmat_suit:sleeve_hazmat", + recipe = { + {"technic:rubber", "dye:yellow"}, + {"", "technic:stainless_steel_ingot"}, + {"", "technic:rubber"}, + }, +}) + +minetest.register_craft({ + output = "hazmat_suit:leggings_hazmat", + recipe = { + {"technic:rubber", "technic:lead_ingot", "technic:rubber"}, + {"technic:stainless_steel_ingot", "technic:rubber", "technic:stainless_steel_ingot"}, + {"technic:lead_ingot", "", "technic:lead_ingot"}, + }, +}) + +minetest.register_craft({ + output = "hazmat_suit:boots_hazmat", + recipe = { + {"", "", ""}, + {"technic:rubber", "", "technic:rubber"}, + {"technic:stainless_steel_ingot", "", "technic:stainless_steel_ingot"}, + }, +}) + +minetest.register_craft({ + output = "hazmat_suit:suit_hazmat", + type = "shapeless", + recipe = { + "hazmat_suit:helmet_hazmat", + "hazmat_suit:chestplate_hazmat", + "hazmat_suit:leggings_hazmat", + "hazmat_suit:boots_hazmat", + "hazmat_suit:sleeve_hazmat", + "hazmat_suit:sleeve_hazmat", + }, +}) diff --git a/textures/hazmat_suit_inv_boots_hazmat.png b/textures/hazmat_suit_inv_boots_hazmat.png new file mode 100644 index 0000000000000000000000000000000000000000..f4afb67dd81a0fd27228e058547911d4b1f0bca8 GIT binary patch literal 359 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6SkfJR9T^xl_H+M9WCijSl0AZa z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP=YDR+uemBxz0@Z0+7d9 z;1OBOz`!jG!i)^F=12eq*-JcqUD+RU@e1jyzF%W`9w-#$>EaloaenW_i<}1(cwFXR zQaxuXvp2hhPxkSzg-T21MY-f;9;zyGvXp5mpWZoHr~lMNr$VMKP6c&_>kI<>)ABPo z4D{Q6J>n=R^S3qHR8wj$r=q{+$InL5yA9oHz3(op$phM=TH+c}l9E`GYL#4+3Zxi} z3=GY64GnY+jYAAAtW3 literal 0 HcmV?d00001 diff --git a/textures/hazmat_suit_inv_chestplate_hazmat.png b/textures/hazmat_suit_inv_chestplate_hazmat.png new file mode 100644 index 0000000000000000000000000000000000000000..b6b83a54e2620f97c6750a92666dc3c724832c90 GIT binary patch literal 334 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFu>8rk9 zV|gAZq~q!07{YNqIYEJogNbp5qRN{U9E&8Uy6{Y8Ilz!C8<`)MX5lF!N|bST-VS**U&h`(89{Z+{)No+rZGuz+jV! g;sg{8x%nxXX_dG&9L}7n1JuCa>FVdQ&MBb@0Q>q{uK)l5 literal 0 HcmV?d00001 diff --git a/textures/hazmat_suit_inv_helmet_hazmat.png b/textures/hazmat_suit_inv_helmet_hazmat.png new file mode 100644 index 0000000000000000000000000000000000000000..b8e3132bc6a7ada8e275077dbf784ad911253e2b GIT binary patch literal 409 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF)G8o{v%n*=n1O*?7=#%a zX3dcR3bL1Y`ns||p+{tLlul?0EPn3;M1& literal 0 HcmV?d00001 diff --git a/textures/hazmat_suit_inv_leggings_hazmat.png b/textures/hazmat_suit_inv_leggings_hazmat.png new file mode 100644 index 0000000000000000000000000000000000000000..9bd2247497159179f6073adfc858444d30dde86b GIT binary patch literal 355 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF<_tkh4fY5udzH26w>!}aSY+Oo}6%iS%S6Ef#HNekQorL81}HTPCdZm%yI0X z0GnZpp^F5of`mB(!>miJ5&tJzRsyxEmbgZgq$HN4S|t~y0x1R~14DCNLjzqy;}Am& uD-&}oV{>f-Ln{M=O(u#HP&DM`r(~v8;?{6DbEXbZ1B0ilpUXO@geCwSe_J>J literal 0 HcmV?d00001 diff --git a/textures/hazmat_suit_inv_sleeve_hazmat.png b/textures/hazmat_suit_inv_sleeve_hazmat.png new file mode 100644 index 0000000000000000000000000000000000000000..771fa072e72c3109e17248909f641bb5340ee2d3 GIT binary patch literal 334 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFR@& zaepb_@kPS_|Nl2#ee(=Zg0UpXFPOpM*^M+1C&}C0g)K2{M=g-UUgGKN%KngxS4dy= z{Tj>jKp{;}7sn8e>&XcR*jlDskUVrOfUTQ*%0ZUNNnEW)GZK}~9BYy6X^O~YW7r$R z)cBoo-dvz2)e_f;l9a@fRIB8oR3OD*WMF8nYiOWrXdGf_VP#@&Wo)i(U}$Avu*pPm f0*Z#*{FKbJO57R_XU^0CYGCkm^>bP0l+XkKdgfi5 literal 0 HcmV?d00001 diff --git a/textures/hazmat_suit_inv_suit_hazmat.png b/textures/hazmat_suit_inv_suit_hazmat.png new file mode 100644 index 0000000000000000000000000000000000000000..df9838e1ace1e2111a81795f17bd0f941bbfee11 GIT binary patch literal 383 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF;`0YTk_ z!Zor@vWB4+=V$ru*mN(*z+Q9Sbl)RU|5vQZxm+^k&DZzFTPl8Cl;&}iy64;WjG6B) z`?Q+&J0Q=fmbgZgq$HN4S|t~y0x1R~14DCNLjzqy;}Am&D-&}oV{>f-Ln{M=O(u#H eP&DM`r(~v8;?{6DbEXbZ1B0ilpUXO@geCxg7HYaZfQY`6?zK#qG8~eHcB(j1elRbib z85pY67#JE_7#My5g&JNkFq9fFFuY1&V6d9Oz#v{QXIG#NP(m)iC&U#<8yg!-N=n|{ zB6@t0a9Ud0nKNhp|NlR8=FI+5z90khVxS7fk|4ie28U-i(m`sfLoQw+ebx7CEYAa_Ej(QuLo80uofKQttRQgwI{WeKI(>d|TTe2+xx~%Fx8P+# z!ySe26NXi{-*K(@aWV6EdO|?mhWQMW1#Vw^ze3xSWo4Q}`BKH~dbTZFpXD>K{pAu+ zx1aOdr@{RKhr*?X2vrAJk;b#!7g=m+bt;@(>;jGhX{^$+M7ROsb1ID(0mHWjiU8}!7keN{YuI_1T(#hH? zMjh`*AAU#dU_GE#%F^?XzaSwgusKWOvb>a0n??AskY+zGSH-P`Gkz`odSlJ$XA|!P z&v?#W`9ND^#)sq6rOmkXx0`3*FZbQ>d(}f%hM&{CwbfVFojj#xA@Fjh9_Qq_Hum4< z%vr4wc){>Mf3Zkh7r*GLw7XYVahiwD;Jon8<6k}VY0KQ(Z%ift!;nF>#5JNMC9x#c zD!C{XNHG{07@F%E8t57thZtH|nV4G{n`;{wS{WE@GEtm>q9HdwB{QuOw}!)+Gj)I( O7(8A5T-G@yGywpuSl~wh literal 0 HcmV?d00001 diff --git a/textures/hazmat_suit_suit_hazmat_preview.png b/textures/hazmat_suit_suit_hazmat_preview.png new file mode 100644 index 0000000000000000000000000000000000000000..bc1c5dfb73503b30e0db91690d6d49ca246212ee GIT binary patch literal 492 zcmeAS@N?(olHy`uVBq!ia0vp^3P9|@!VDxk7i7!@QY`6?zK#qG8~eHcB(ehe3dtTp zz6=aiY77hwEes65fI z|NnnlTAHM!H=O_J>@&Li(!j*I1qh3hncBaSX9Iz4p>W!Da;>)`YNv)-?~fA{#{`8bxCk-u||? z;a)4lH~0G&C)X`kQPNa&_unP#s3R>UO_QmvAUQh^kMk%6JPuAzahp>c?zg_Vi9 rm9e?DfuWUw!6p;M2`CzJ^HVa@DsgK#oH