From aad5c41b6a97566d8235016212b76f10ed290857 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Wed, 26 Aug 2020 14:37:23 -0700 Subject: [PATCH] Revert sword recipes (#674) --- mods/ctf/ctf_crafting/init.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mods/ctf/ctf_crafting/init.lua b/mods/ctf/ctf_crafting/init.lua index e98cc20..7ff8ffe 100644 --- a/mods/ctf/ctf_crafting/init.lua +++ b/mods/ctf/ctf_crafting/init.lua @@ -6,9 +6,10 @@ local full_ores = { stone = "default:cobble", } -local upgrades = { - steel = "mese", - mese = "diamond", +local sword_materials = { + steel = "default:steel_ingot", + mese = "default:mese_crystal", + diamond = "default:diamond", } -- Rocket <== Gold ingot x16 + Coal lump x5 @@ -30,11 +31,11 @@ crafting.register_recipe({ }) -- Swords -for from, to in pairs(upgrades) do +for material, craft_material in pairs(sword_materials) do crafting.register_recipe({ type = "inv", - output = "default:sword_" .. to, - items = { "default:sword_" .. from, full_ores[to] .. " 2" }, + output = "default:sword_" .. material, + items = { "default:stick", craft_material .. " 2" }, always_known = true, level = 1, })