Revert sword recipes (#674)

This commit is contained in:
LoneWolfHT 2020-08-26 14:37:23 -07:00 committed by GitHub
parent 2bd645c16b
commit aad5c41b6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
})