rainbow_ore/rainbow_armor.lua

63 lines
2.2 KiB
Lua
Raw Normal View History

local S = minetest.get_translator(rainbow_ore.modname)
2015-11-01 18:57:16 +01:00
--Define Rainbow Armor
minetest.register_tool("rainbow_ore:rainbow_ore_helmet", {
description = S("Rainbow Helmet"),
2015-11-01 18:57:16 +01:00
inventory_image = "rainbow_ore_helmet_inv.png",
2015-11-02 12:56:37 +01:00
groups = {armor_head=20, armor_heal=17, armor_use=40},
2015-11-01 18:57:16 +01:00
wear = 0,
})
minetest.register_tool("rainbow_ore:rainbow_ore_chestplate", {
description = S("Rainbow Chestplate"),
2015-11-01 18:57:16 +01:00
inventory_image = "rainbow_ore_chestplate_inv.png",
2015-11-02 12:56:37 +01:00
groups = {armor_torso=25, armor_heal=17, armor_use=40},
2015-11-01 18:57:16 +01:00
wear = 0,
})
minetest.register_tool("rainbow_ore:rainbow_ore_leggings", {
description = S("Rainbow Leggings"),
2015-11-01 18:57:16 +01:00
inventory_image = "rainbow_ore_leggings_inv.png",
2015-11-02 12:56:37 +01:00
groups = {armor_legs=25, armor_heal=17, armor_use=40},
2015-11-01 18:57:16 +01:00
wear = 0,
})
minetest.register_tool("rainbow_ore:rainbow_ore_boots", {
description = S("Rainbow Boots"),
2015-11-01 18:57:16 +01:00
inventory_image = "rainbow_ore_boots_inv.png",
2015-11-02 12:56:37 +01:00
groups = {armor_feet=20, armor_heal=17, armor_use=40},
2015-11-01 18:57:16 +01:00
wear = 0,
})
--Define Rainbow Armor crafting recipe
minetest.register_craft({
output = "rainbow_ore:rainbow_ore_helmet",
recipe = {
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
{"", "", ""},
},
})
minetest.register_craft({
output = "rainbow_ore:rainbow_ore_chestplate",
recipe = {
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
},
})
minetest.register_craft({
output = "rainbow_ore:rainbow_ore_leggings",
recipe = {
{"rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot", "rainbow_ore:rainbow_ore_ingot"},
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
},
})
minetest.register_craft({
output = "rainbow_ore:rainbow_ore_boots",
recipe = {
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
{"rainbow_ore:rainbow_ore_ingot", "", "rainbow_ore:rainbow_ore_ingot"},
},
})