rainbow_ore/rainbow_shield.lua

22 lines
693 B
Lua
Raw Normal View History

local S = minetest.get_translator(rainbow_ore.modname)
2015-11-01 18:57:16 +01:00
--Define Rainbow shield
minetest.register_tool("rainbow_ore:rainbow_ore_shield", {
description = S("Rainbow Shield"),
2015-11-01 18:57:16 +01:00
inventory_image = "rainbow_ore_shield_inv.png",
2015-11-02 12:56:37 +01:00
groups = {armor_shield=20, armor_heal=17, armor_use=40, armor_fire=1},
2015-11-01 18:57:16 +01:00
wear = 0,
})
--Define Rainbow shield crafting recipe
minetest.register_craft({
output = "rainbow_ore:rainbow_ore_shield",
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", ""},
},
})