forked from VoxeLibre/VoxeLibre
remove check for mcl_copper, fix recipe
This commit is contained in:
parent
7dd6d5f886
commit
bd6d777f05
|
@ -8,22 +8,14 @@ minetest.register_tool("mcl_spyglass:spyglass",{
|
||||||
_mcl_toollike_wield = true,
|
_mcl_toollike_wield = true,
|
||||||
})
|
})
|
||||||
|
|
||||||
local function craft_spyglass(ingot)
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mcl_spyglass:spyglass",
|
output = "mcl_spyglass:spyglass",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"xpanes:pane_natural_flat"},
|
{"mcl_amethyst:amethyst_shard"},
|
||||||
{ingot},
|
{"mcl_copper:copper_ingot"},
|
||||||
{ingot},
|
{"mcl_copper:copper_ingot"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("mcl_copper") then
|
|
||||||
craft_spyglass("mcl_copper:copper_ingot")
|
|
||||||
else
|
|
||||||
craft_spyglass("mcl_core:iron_ingot")
|
|
||||||
end
|
|
||||||
|
|
||||||
local spyglass_scope = {}
|
local spyglass_scope = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue