diff --git a/technic/machines/LV/cables.lua b/technic/machines/LV/cables.lua index 69c0a24..45019f3 100644 --- a/technic/machines/LV/cables.lua +++ b/technic/machines/LV/cables.lua @@ -12,3 +12,39 @@ minetest.register_craft({ 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 diff --git a/technic/machines/MV/cables.lua b/technic/machines/MV/cables.lua index 7d63dfd..5b5a230 100644 --- a/technic/machines/MV/cables.lua +++ b/technic/machines/MV/cables.lua @@ -12,3 +12,39 @@ minetest.register_craft({ technic.register_cable("MV", 2.5/16) +if minetest.get_modpath("digilines") then + + local S = technic.getter + + if minetest.get_modpath("digistuff") then + minetest.register_craft({ + output = 'technic:mv_digi_cable 1', + type = "shapeless", + recipe = {'digistuff:digimese', 'technic:mv_cable'} + }) + else + minetest.register_craft({ + output = 'technic:mv_digi_cable 1', + recipe = { + {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, + {'digilines:wire_std_00000000', 'technic:mv_cable', 'digilines:wire_std_00000000'}, + {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, + } + }) + end + + technic.register_cable("MV", 2.5/16, S("MV 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 diff --git a/technic/textures/technic_lv_digi_cable.png b/technic/textures/technic_lv_digi_cable.png new file mode 100644 index 0000000..4eae1b1 Binary files /dev/null and b/technic/textures/technic_lv_digi_cable.png differ diff --git a/technic/textures/technic_lv_digi_cable_wield.png b/technic/textures/technic_lv_digi_cable_wield.png new file mode 100644 index 0000000..69ef76f Binary files /dev/null and b/technic/textures/technic_lv_digi_cable_wield.png differ diff --git a/technic/textures/technic_mv_digi_cable.png b/technic/textures/technic_mv_digi_cable.png new file mode 100644 index 0000000..55699c1 Binary files /dev/null and b/technic/textures/technic_mv_digi_cable.png differ diff --git a/technic/textures/technic_mv_digi_cable_wield.png b/technic/textures/technic_mv_digi_cable_wield.png new file mode 100644 index 0000000..f072200 Binary files /dev/null and b/technic/textures/technic_mv_digi_cable_wield.png differ