2021-07-27 23:32:08 +02:00
|
|
|
|
|
|
|
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", {
|
2021-07-27 23:32:08 +02:00
|
|
|
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", {
|
2021-07-27 23:32:08 +02:00
|
|
|
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", {
|
2021-07-27 23:32:08 +02:00
|
|
|
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", {
|
2021-07-27 23:32:08 +02:00
|
|
|
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"},
|
|
|
|
},
|
|
|
|
})
|