rainbow_ore/rainbow_shield.lua
Jordan Irwin 511b09c29b Add localization support using Minetest's built-in translator...
Breaks compatibility with Minetest 0.4.
2021-07-27 15:05:41 -07:00

22 lines
693 B
Lua

local S = minetest.get_translator(rainbow_ore.modname)
--Define Rainbow shield
minetest.register_tool("rainbow_ore:rainbow_ore_shield", {
description = S("Rainbow Shield"),
inventory_image = "rainbow_ore_shield_inv.png",
groups = {armor_shield=20, armor_heal=17, armor_use=40, armor_fire=1},
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", ""},
},
})