51 lines
1.3 KiB
Lua
51 lines
1.3 KiB
Lua
|
|
minetest.register_alias("lv_cable", "technic:lv_cable")
|
|
|
|
minetest.register_craft({
|
|
output = 'technic:lv_cable 6',
|
|
recipe = {
|
|
{'default:paper', 'default:paper', 'default:paper'},
|
|
{'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
|
|
{'default:paper', 'default:paper', 'default:paper'},
|
|
}
|
|
})
|
|
|
|
technic.register_cable("LV", 2/16)
|
|
|
|
if minetest.get_modpath("digilines") then
|
|
|
|
local S = technic.getter
|
|
|
|
if minetest.get_modpath("digistuff") then
|
|
minetest.register_craft({
|
|
output = 'technic:lv_digi_cable 1',
|
|
type = "shapeless",
|
|
recipe = {'digistuff:digimese', 'technic:lv_cable'}
|
|
})
|
|
else
|
|
minetest.register_craft({
|
|
output = 'technic:lv_digi_cable 1',
|
|
recipe = {
|
|
{'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'},
|
|
{'digilines:wire_std_00000000', 'technic:lv_cable', 'digilines:wire_std_00000000'},
|
|
{'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'},
|
|
}
|
|
})
|
|
end
|
|
|
|
technic.register_cable("LV", 2/16, S("LV Cable (digiline)"), "_digi", {
|
|
digiline = {
|
|
wire = {
|
|
rules = {
|
|
{x = 1, y = 0, z = 0},
|
|
{x =-1, y = 0, z = 0},
|
|
{x = 0, y = 1, z = 0},
|
|
{x = 0, y =-1, z = 0},
|
|
{x = 0, y = 0, z = 1},
|
|
{x = 0, y = 0, z =-1}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
end
|