mirror of
https://github.com/FsxShader2012/rainbow_ore.git
synced 2024-11-20 06:13:47 +01:00
511b09c29b
Breaks compatibility with Minetest 0.4.
22 lines
693 B
Lua
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", ""},
|
|
},
|
|
}) |