1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-11-05 01:50:40 +01:00
3d_armor/hazmat_suit/init.lua

107 lines
3.1 KiB
Lua
Raw Normal View History

if not minetest.get_modpath("technic") then
minetest.log("warning", "hazmat_suit: Mod loaded but unused.")
return
end
2017-03-31 20:54:12 +02:00
local S = function(s) return s end
if minetest.global_exists("intllib") then
S = intllib.Getter()
end
2016-04-10 16:56:33 +02:00
minetest.register_craftitem("hazmat_suit:helmet_hazmat", {
2017-03-31 20:54:12 +02:00
description = S("Hazmat Helmet"),
2016-04-10 16:56:33 +02:00
inventory_image = "hazmat_suit_inv_helmet_hazmat.png",
stack_max = 1,
})
minetest.register_craftitem("hazmat_suit:chestplate_hazmat", {
2017-03-31 20:54:12 +02:00
description = S("Hazmat Chestplate"),
2016-04-10 16:56:33 +02:00
inventory_image = "hazmat_suit_inv_chestplate_hazmat.png",
stack_max = 1,
})
minetest.register_craftitem("hazmat_suit:sleeve_hazmat", {
2017-03-31 20:54:12 +02:00
description = S("Hazmat Sleeve"),
2016-04-10 16:56:33 +02:00
inventory_image = "hazmat_suit_inv_sleeve_hazmat.png",
stack_max = 1,
})
minetest.register_craftitem("hazmat_suit:leggings_hazmat", {
2017-03-31 20:54:12 +02:00
description = S("Hazmat Leggins"),
2016-04-10 16:56:33 +02:00
inventory_image = "hazmat_suit_inv_leggings_hazmat.png",
stack_max = 1,
})
minetest.register_craftitem("hazmat_suit:boots_hazmat", {
2017-03-31 20:54:12 +02:00
description = S("Hazmat Boots"),
2016-04-10 16:56:33 +02:00
inventory_image = "hazmat_suit_inv_boots_hazmat.png",
stack_max = 1,
})
2017-04-09 21:07:32 +02:00
armor:register_armor("hazmat_suit:suit_hazmat", {
2017-03-31 20:54:12 +02:00
description = S("Hazmat Suit"),
2016-04-10 16:56:33 +02:00
inventory_image = "hazmat_suit_inv_suit_hazmat.png",
2017-04-09 21:07:32 +02:00
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},
2016-04-10 16:56:33 +02:00
})
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",
},
})