This commit is contained in:
Evert Prants 2019-08-20 12:51:38 +03:00
parent 5fcd007217
commit 1e3cd5c7e7
5 changed files with 120 additions and 0 deletions

View File

@ -10,6 +10,14 @@ magicalities.cauldron = {
dark = 1,
},
output = "magicalities:tellium"
},
{
items = {"default:stone", "default:dirt", "magicalities:crystal_fire"},
requirements = {
fire = 5,
earth = 5,
},
output = "magicalities:transterra"
}
}
}

View File

@ -14,8 +14,20 @@ minetest.register_craftitem("magicalities:cap_gold", {
inventory_image = "magicalities_cap_gold.png"
})
minetest.register_craftitem("magicalities:focus_blank", {
description = "Blank Wand Focus",
inventory_image = "magicalities_focus_base.png",
})
minetest.register_craftitem("magicalities:tellium", {
description = "Tellium Ingot",
inventory_image = "magicalities_tellium_ingot.png",
groups = {ingot = 1, tellium = 1}
})
minetest.register_craftitem("magicalities:transterra", {
description = "Transterra",
inventory_image = "magicalities_red_stone.png",
groups = {shard = 1, transterra = 1}
})

View File

@ -56,6 +56,97 @@ local recipes = {
["light"] = 5,
["dark"] = 5,
}
},
{
input = {
{"group:crystal", "magicalities:tellium", "group:crystal"},
{"magicalities:tellium", "group:crystal", "magicalities:tellium"},
{"group:crystal", "magicalities:tellium", "group:crystal"}
},
output = "magicalities:focus_blank",
requirements = {
["light"] = 10,
["dark"] = 10,
}
},
{
input = {
{"magicalities:crystal_earth", "magicalities:tellium", "magicalities:crystal_earth"},
{"magicalities:tellium", "magicalities:focus_blank", "magicalities:tellium"},
{"magicalities:crystal_earth", "magicalities:tellium", "magicalities:crystal_earth"}
},
output = "magicalities:focus_atk_earth",
requirements = {
["earth"] = 50,
}
},
{
input = {
{"magicalities:crystal_air", "magicalities:tellium", "magicalities:crystal_air"},
{"magicalities:tellium", "magicalities:focus_blank", "magicalities:tellium"},
{"magicalities:crystal_air", "magicalities:tellium", "magicalities:crystal_air"}
},
output = "magicalities:focus_atk_air",
requirements = {
["air"] = 50,
}
},
{
input = {
{"magicalities:crystal_water", "magicalities:tellium", "magicalities:crystal_water"},
{"magicalities:tellium", "magicalities:focus_blank", "magicalities:tellium"},
{"magicalities:crystal_water", "magicalities:tellium", "magicalities:crystal_water"}
},
output = "magicalities:focus_atk_water",
requirements = {
["water"] = 50,
}
},
{
input = {
{"magicalities:crystal_fire", "magicalities:tellium", "magicalities:crystal_fire"},
{"magicalities:tellium", "magicalities:focus_blank", "magicalities:tellium"},
{"magicalities:crystal_fire", "magicalities:tellium", "magicalities:crystal_fire"}
},
output = "magicalities:focus_atk_fire",
requirements = {
["fire"] = 50,
}
},
{
input = {
{"magicalities:crystal_earth", "default:dirt", "magicalities:crystal_light"},
{"magicalities:transterra", "magicalities:focus_atk_earth", "magicalities:transterra"},
{"magicalities:crystal_light", "default:stone", "magicalities:crystal_earth"}
},
output = "magicalities:focus_swap",
requirements = {
["earth"] = 25,
["light"] = 25,
}
},
{
input = {
{"magicalities:crystal_earth", "magicalities:tellium", "magicalities:transterra"},
{"magicalities:tellium", "magicalities:focus_blank", "magicalities:tellium"},
{"magicalities:transterra", "magicalities:tellium", "magicalities:crystal_earth"}
},
output = "magicalities:focus_tunnel",
requirements = {
["earth"] = 25,
["dark"] = 25,
}
},
{
input = {
{"magicalities:crystal_air", "", "magicalities:crystal_air"},
{"", "magicalities:focus_atk_air", ""},
{"magicalities:crystal_air", "", "magicalities:crystal_air"}
},
output = "magicalities:focus_teleport",
requirements = {
["air"] = 10,
}
}
}
@ -119,6 +210,15 @@ minetest.register_craft({
output = "magicalities:table",
})
minetest.register_craft({
recipe = {
{"default:steelblock", "", "default:steelblock"},
{"default:steelblock", "", "default:steelblock"},
{"default:steelblock", "default:steelblock", "default:steelblock"}
},
output = "magicalities:cauldron",
})
local function _flatten(arr)
local result = {}
for i,v in ipairs(arr) do

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B