Vanessa Ezekowitz
2017-06-13 db480011fbc77b3c2249e0cf3dcae1ae9087784f
only try to clear/redefine recipes for teleport and accel tube
if they are enabled in pipeworks' config
1 files modified
18 ■■■■■ changed files
technic/crafts.lua 18 ●●●●● patch | view | raw | blame | history
technic/crafts.lua
@@ -9,22 +9,23 @@
})
-- Accelerator tube
if pipeworks.enable_accelerator_tube then
minetest.clear_craft({
    output = "pipeworks:accelerator_tube_1",
})
-- Teleport tube
minetest.clear_craft({
    output = "pipeworks:teleport_tube_1",
})
-- tubes crafting recipes
minetest.register_craft({
    output = 'pipeworks:accelerator_tube_1',
    recipe = {
        {'technic:copper_coil', 'pipeworks:tube_1', 'technic:copper_coil'},
        }
    })
end
-- Teleport tube
if pipeworks.enable_teleport_tube then
    minetest.clear_craft({
        output = "pipeworks:teleport_tube_1",
})
minetest.register_craft({
@@ -35,6 +36,9 @@
        {'default:mese_crystal', 'technic:copper_coil', 'default:mese_crystal'},
        }
})
end
-- tubes crafting recipes
minetest.register_craft({
    output = 'technic:diamond_drill_head',