commit 977c734073179435b6c00eff491d7f4adc72c09c Author: stujones11 Date: Sun Feb 11 17:04:44 2018 +0000 Initial commit 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 0000000..f4afb67 Binary files /dev/null and b/textures/hazmat_suit_inv_boots_hazmat.png differ diff --git a/textures/hazmat_suit_inv_chestplate_hazmat.png b/textures/hazmat_suit_inv_chestplate_hazmat.png new file mode 100644 index 0000000..b6b83a5 Binary files /dev/null and b/textures/hazmat_suit_inv_chestplate_hazmat.png differ diff --git a/textures/hazmat_suit_inv_helmet_hazmat.png b/textures/hazmat_suit_inv_helmet_hazmat.png new file mode 100644 index 0000000..b8e3132 Binary files /dev/null and b/textures/hazmat_suit_inv_helmet_hazmat.png differ diff --git a/textures/hazmat_suit_inv_leggings_hazmat.png b/textures/hazmat_suit_inv_leggings_hazmat.png new file mode 100644 index 0000000..9bd2247 Binary files /dev/null and b/textures/hazmat_suit_inv_leggings_hazmat.png differ diff --git a/textures/hazmat_suit_inv_sleeve_hazmat.png b/textures/hazmat_suit_inv_sleeve_hazmat.png new file mode 100644 index 0000000..771fa07 Binary files /dev/null and b/textures/hazmat_suit_inv_sleeve_hazmat.png differ diff --git a/textures/hazmat_suit_inv_suit_hazmat.png b/textures/hazmat_suit_inv_suit_hazmat.png new file mode 100644 index 0000000..df9838e Binary files /dev/null and b/textures/hazmat_suit_inv_suit_hazmat.png differ diff --git a/textures/hazmat_suit_suit_hazmat.png b/textures/hazmat_suit_suit_hazmat.png new file mode 100644 index 0000000..421cd60 Binary files /dev/null and b/textures/hazmat_suit_suit_hazmat.png differ diff --git a/textures/hazmat_suit_suit_hazmat_preview.png b/textures/hazmat_suit_suit_hazmat_preview.png new file mode 100644 index 0000000..bc1c5df Binary files /dev/null and b/textures/hazmat_suit_suit_hazmat_preview.png differ diff --git a/textures/preview_index.txt b/textures/preview_index.txt new file mode 100644 index 0000000..bc6f4d4 --- /dev/null +++ b/textures/preview_index.txt @@ -0,0 +1 @@ +hazmat_suit/textures/hazmat_suit_suit_hazmat.png:all