From 1e3cd5c7e788dc0a9ba50e0a622cb838a4c58d3a Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Tue, 20 Aug 2019 12:51:38 +0300 Subject: [PATCH] recipes! --- cauldron.lua | 8 +++ craftitems.lua | 12 ++++ register.lua | 100 +++++++++++++++++++++++++++ textures/magicalities_focus_base.png | Bin 0 -> 2424 bytes textures/magicalities_red_stone.png | Bin 0 -> 838 bytes 5 files changed, 120 insertions(+) create mode 100644 textures/magicalities_focus_base.png create mode 100644 textures/magicalities_red_stone.png diff --git a/cauldron.lua b/cauldron.lua index 5726909..2759308 100644 --- a/cauldron.lua +++ b/cauldron.lua @@ -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" } } } diff --git a/craftitems.lua b/craftitems.lua index af10a33..3625dfd 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -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} +}) + diff --git a/register.lua b/register.lua index 27f2ded..157d554 100644 --- a/register.lua +++ b/register.lua @@ -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 diff --git a/textures/magicalities_focus_base.png b/textures/magicalities_focus_base.png new file mode 100644 index 0000000000000000000000000000000000000000..d6611c924c61571125566c9b7008591b64bbe14a GIT binary patch literal 2424 zcmV-;35WKHP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O1bvcI7Ax{bv=u1SBT090qev@1U387Z83!l1{3+ z>^y@(h>NZU$6WvXJZNn(!C;_}&NF6fBeS6NT8em(WYp3cj-xhEJy4z1g- z5_SB-I76Owys4go@$jT5Upi4=CyFX!(GAXyx{;&3f$gfOs3OO@v)}JkcaB-o^AU8N z9Xh|vfS;KU?-IulDS13S+mvEPU)cHtyY&gwrM3UP(fhkOq6|!YIdXPAd82eVg3GR; z6+H3IbA;Cj?~#qxfHFWpKdWuo{^#`-dh-llX@8;h?$HOrnfYpqogce2sI2?d>b zXWW9YXrQ#)W-IPSnHW?K^3vC!H!uk9L%?Z$S3C=--T|M>0O{8VtPm>{xp+X}dNdL2+$0{ydr7#N|UMh(lr z=YGE?uMP}`WoE$vi>+p>sDU2N2 z2r;A}A%_xOoDmjdiZiR0H>jMDpyy14K>zOrDju0gZnh!LW?amX}Oio-F3uqk3DtixtEJBxYFgXaK$TKa^jtZLTBuvi07<&TY39NxJIQHbs z3VF|yxyhN$jHn0kmlEP7P|Hv zK3%TJyF07wqc!gXKWWq6h{9EYr_$2_s0sTYwheQdp;hB(dpWm52rXnQqLCZMgkW}TR0 z`CyT%SR%d}SBNajb$VFNy>gBOO`CEo$y*W3ivoHGpYY9GkTw%y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