Revert sword recipes (#674)
This commit is contained in:
parent
2bd645c16b
commit
aad5c41b6a
1 changed files with 7 additions and 6 deletions
|
@ -6,9 +6,10 @@ local full_ores = {
|
||||||
stone = "default:cobble",
|
stone = "default:cobble",
|
||||||
}
|
}
|
||||||
|
|
||||||
local upgrades = {
|
local sword_materials = {
|
||||||
steel = "mese",
|
steel = "default:steel_ingot",
|
||||||
mese = "diamond",
|
mese = "default:mese_crystal",
|
||||||
|
diamond = "default:diamond",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Rocket <== Gold ingot x16 + Coal lump x5
|
-- Rocket <== Gold ingot x16 + Coal lump x5
|
||||||
|
@ -30,11 +31,11 @@ crafting.register_recipe({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Swords
|
-- Swords
|
||||||
for from, to in pairs(upgrades) do
|
for material, craft_material in pairs(sword_materials) do
|
||||||
crafting.register_recipe({
|
crafting.register_recipe({
|
||||||
type = "inv",
|
type = "inv",
|
||||||
output = "default:sword_" .. to,
|
output = "default:sword_" .. material,
|
||||||
items = { "default:sword_" .. from, full_ores[to] .. " 2" },
|
items = { "default:stick", craft_material .. " 2" },
|
||||||
always_known = true,
|
always_known = true,
|
||||||
level = 1,
|
level = 1,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue