From df93f5d33548a2609cd47ff2063865055a2c2327 Mon Sep 17 00:00:00 2001 From: SX Date: Mon, 12 Oct 2020 03:20:32 +0300 Subject: [PATCH] #97 Add LV & MV digi cables --- technic/machines/LV/cables.lua | 36 ++++++++++++++++++ technic/machines/MV/cables.lua | 36 ++++++++++++++++++ technic/textures/technic_lv_digi_cable.png | Bin 0 -> 729 bytes .../textures/technic_lv_digi_cable_wield.png | Bin 0 -> 805 bytes technic/textures/technic_mv_digi_cable.png | Bin 0 -> 749 bytes .../textures/technic_mv_digi_cable_wield.png | Bin 0 -> 836 bytes 6 files changed, 72 insertions(+) create mode 100644 technic/textures/technic_lv_digi_cable.png create mode 100644 technic/textures/technic_lv_digi_cable_wield.png create mode 100644 technic/textures/technic_mv_digi_cable.png create mode 100644 technic/textures/technic_mv_digi_cable_wield.png 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 0000000000000000000000000000000000000000..4eae1b1ba525d977cf8ad0e08071d3c64dc4d5b2 GIT binary patch literal 729 zcmV;~0w(>5P)EX>4Tx04R}tkv&MmKpe$iQ>9ue4ptCx2w0sgh>AFB6^c+H)C#RSm|Xe=O&XFE z7e~Rh;NZt%)xpJCR|i)?5c~jfa&%I3krMxx6k5c3aNLh~_a1le0HIc5n$4YKP8|AXJ%TDi#yFDVoQI$s>;V+0870`;ond>=bb{RHqo16O*}U#gFU3R&(Frj#?Q~s&&JQs&)yKp)c^nh32;bRa{vGf6951U69E94oEQKA z00(qQO+^Rf3JL-N6l6&{qW}N^uSrBfR4C752c}*5j~)%+dJZr9s+!Vj_hn0_N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