Added MineClone2 support

This commit is contained in:
TenPlus1 2019-07-19 12:53:04 +01:00
commit 7a6f598d19
7 changed files with 95 additions and 26 deletions

View file

@ -141,11 +141,17 @@ minetest.register_craftitem("protector:tool", {
})
-- tool recipe
local df = "default:steel_ingot"
if not minetest.registered_items[df] then
df = "mcl_core:iron_ingot"
end
minetest.register_craft({
output = "protector:tool",
recipe = {
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{"default:steel_ingot", "protector:protect", "default:steel_ingot"},
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{df, df, df},
{df, "protector:protect", df},
{df, df, df},
}
})