From 28b14f7a364ca671b1e97b5d8886d747bcc7c6d1 Mon Sep 17 00:00:00 2001 From: OgelGames <48543043+OgelGames@users.noreply.github.com> Date: Sat, 5 Jun 2021 17:26:26 +1000 Subject: [PATCH] add recipes to craft cable plates into digi-cable plates fixes https://github.com/pandorabox-io/in-game/issues/104 --- technic/machines/HV/cables.lua | 13 +++++++++++++ technic/machines/LV/cables.lua | 13 +++++++++++++ technic/machines/MV/cables.lua | 13 +++++++++++++ 3 files changed, 39 insertions(+) diff --git a/technic/machines/HV/cables.lua b/technic/machines/HV/cables.lua index eb29c91..18b2614 100644 --- a/technic/machines/HV/cables.lua +++ b/technic/machines/HV/cables.lua @@ -19,6 +19,11 @@ if minetest.get_modpath("digilines") then type = "shapeless", recipe = {'digistuff:digimese', 'technic:hv_cable'} }) + minetest.register_craft({ + output = 'technic:hv_digi_cable_plate_1 1', + type = "shapeless", + recipe = {'digistuff:digimese', 'technic:hv_cable_plate_1'} + }) else minetest.register_craft({ output = 'technic:hv_digi_cable 1', @@ -28,6 +33,14 @@ if minetest.get_modpath("digilines") then {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, } }) + minetest.register_craft({ + output = 'technic:hv_digi_cable_plate_1 1', + recipe = { + {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, + {'digilines:wire_std_00000000', 'technic:hv_cable_plate_1', 'digilines:wire_std_00000000'}, + {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, + } + }) end technic.register_cable("HV", 3/16, S("HV Cable (digiline)"), "_digi", { diff --git a/technic/machines/LV/cables.lua b/technic/machines/LV/cables.lua index 45019f3..be40661 100644 --- a/technic/machines/LV/cables.lua +++ b/technic/machines/LV/cables.lua @@ -22,6 +22,11 @@ if minetest.get_modpath("digilines") then type = "shapeless", recipe = {'digistuff:digimese', 'technic:lv_cable'} }) + minetest.register_craft({ + output = 'technic:lv_digi_cable_plate_1 1', + type = "shapeless", + recipe = {'digistuff:digimese', 'technic:lv_cable_plate_1'} + }) else minetest.register_craft({ output = 'technic:lv_digi_cable 1', @@ -31,6 +36,14 @@ if minetest.get_modpath("digilines") then {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, } }) + minetest.register_craft({ + output = 'technic:lv_digi_cable_plate_1 1', + recipe = { + {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, + {'digilines:wire_std_00000000', 'technic:lv_cable_plate_1', '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", { diff --git a/technic/machines/MV/cables.lua b/technic/machines/MV/cables.lua index 5b5a230..3d06d34 100644 --- a/technic/machines/MV/cables.lua +++ b/technic/machines/MV/cables.lua @@ -22,6 +22,11 @@ if minetest.get_modpath("digilines") then type = "shapeless", recipe = {'digistuff:digimese', 'technic:mv_cable'} }) + minetest.register_craft({ + output = 'technic:mv_digi_cable_plate_1 1', + type = "shapeless", + recipe = {'digistuff:digimese', 'technic:mv_cable_plate_1'} + }) else minetest.register_craft({ output = 'technic:mv_digi_cable 1', @@ -31,6 +36,14 @@ if minetest.get_modpath("digilines") then {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, } }) + minetest.register_craft({ + output = 'technic:mv_digi_cable_plate_1 1', + recipe = { + {'digilines:wire_std_00000000', 'digilines:wire_std_00000000', 'digilines:wire_std_00000000'}, + {'digilines:wire_std_00000000', 'technic:mv_cable_plate_1', '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", {