From 85e5a877c67bbd47300eee1f815c6560e1ab8f50 Mon Sep 17 00:00:00 2001 From: loosewheel <76670709+loosewheel@users.noreply.github.com> Date: Mon, 23 May 2022 20:01:18 +1000 Subject: [PATCH] Add files via upload --- .luacheckrc | 27 +++++++++++++++++++++++++++ breaker.lua | 4 ++-- cannon.lua | 2 +- change.log | 4 ++++ conduit.lua | 16 +++++++++------- depends.txt | 1 + deployer.lua | 4 ++-- detector.lua | 12 ++++++------ digiswitch.lua | 4 ++-- dispenser.lua | 2 +- dropper.lua | 2 +- fan.lua | 8 ++++---- force_field.lua | 4 ++-- init.lua | 2 +- mod.conf | 2 +- pistons.lua | 12 ++++++------ puncher.lua | 8 ++++---- readme.txt | 3 ++- siren.lua | 12 ++++++------ solid_conductor.lua | 8 ++++++-- 20 files changed, 88 insertions(+), 49 deletions(-) create mode 100644 .luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..f6437cf --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,27 @@ +unused_args = false +allow_defined_top = true +max_comment_line_length = 999 + +read_globals = { + "DIR_DELIM", + "minetest", "core", + "unpack", + "dump", + table = { fields = { "copy", "getn" } }, + "vector", "nodeupdate", + "VoxelManip", "VoxelArea", + "PseudoRandom", "ItemStack", + "default", + "lwcomponents", + "intllib", + "mesecon", + "digiline", + "digilines", + "hopper", + "pipeworks", + "unifieddyes", + "digistuff", +} + +globals = { +} diff --git a/breaker.lua b/breaker.lua index bbb5a04..5a0ae86 100644 --- a/breaker.lua +++ b/breaker.lua @@ -712,7 +712,7 @@ end -local breaker_groups = { cracky = 3 } +local breaker_groups = { cracky = 3, wires_connect = 1 } if utils.pipeworks_supported then breaker_groups.tubedevice = 1 breaker_groups.tubedevice_receiver = 1 @@ -720,7 +720,7 @@ end -local breaker_on_groups = { cracky = 3, not_in_creative_inventory = 1 } +local breaker_on_groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 } if utils.pipeworks_supported then breaker_on_groups.tubedevice = 1 breaker_on_groups.tubedevice_receiver = 1 diff --git a/cannon.lua b/cannon.lua index cbc1594..053d24b 100644 --- a/cannon.lua +++ b/cannon.lua @@ -923,7 +923,7 @@ end -local cannon_groups = { cracky = 3 } +local cannon_groups = { cracky = 3, wires_connect = 1 } if utils.pipeworks_supported then cannon_groups.tubedevice = 1 cannon_groups.tubedevice_receiver = 1 diff --git a/change.log b/change.log index 252a9b2..79402a3 100644 --- a/change.log +++ b/change.log @@ -167,3 +167,7 @@ v0.1.27 * Bug fixes and code cleanup. * Fixed receptor state in detector. * Improved receptor state in digiswitch. + + +v0.1.28 +* Added support for lwwires. Wires will not connect to conduits. diff --git a/conduit.lua b/conduit.lua index 6a8cc6d..c3cb728 100644 --- a/conduit.lua +++ b/conduit.lua @@ -1024,7 +1024,7 @@ end -local conduit_groups = { cracky = 3 } +local conduit_groups = { cracky = 3, wires_connect = 1 } if utils.pipeworks_supported then conduit_groups.tubedevice = 1 conduit_groups.tubedevice_receiver = 1 @@ -1034,13 +1034,14 @@ end minetest.register_node("lwcomponents:conduit", { description = S("Conduit"), + short_description = S("Conduit"), tiles = { "lwconduit.png" }, drawtype = "nodebox", node_box = { type = "connected", fixed = { -0.375, -0.375, -0.375, 0.375, 0.375, 0.375 }, -- body connect_top = { -0.3125, 0.3125, -0.3125, 0.3125, 0.5, 0.3125 }, -- top - connect_bottom = {-0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125}, -- down + connect_bottom = { -0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125 }, -- down connect_front = { -0.3125, -0.3125, -0.5, 0.3125, 0.3125, -0.3125 }, -- front connect_back = { -0.3125, -0.3125, 0.5, 0.3125, 0.3125, 0.3125 }, -- back connect_left = { -0.5, -0.3125, -0.3125, -0.3125, 0.3125, 0.3125 }, -- left @@ -1056,7 +1057,7 @@ minetest.register_node("lwcomponents:conduit", { type = "connected", fixed = { -0.375, -0.375, -0.375, 0.375, 0.375, 0.375 }, -- body connect_top = { -0.3125, 0.3125, -0.3125, 0.3125, 0.5, 0.3125 }, -- top - connect_bottom = {-0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125}, -- down + connect_bottom = { -0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125 }, -- down connect_front = { -0.3125, -0.3125, -0.5, 0.3125, 0.3125, -0.3125 }, -- front connect_back = { -0.3125, -0.3125, 0.5, 0.3125, 0.3125, 0.3125 }, -- back connect_left = { -0.5, -0.3125, -0.3125, -0.3125, 0.3125, 0.3125 }, -- left @@ -1066,7 +1067,7 @@ minetest.register_node("lwcomponents:conduit", { type = "connected", fixed = { -0.375, -0.375, -0.375, 0.375, 0.375, 0.375 }, -- body connect_top = { -0.3125, 0.3125, -0.3125, 0.3125, 0.5, 0.3125 }, -- top - connect_bottom = {-0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125}, -- down + connect_bottom = { -0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125 }, -- down connect_front = { -0.3125, -0.3125, -0.5, 0.3125, 0.3125, -0.3125 }, -- front connect_back = { -0.3125, -0.3125, 0.5, 0.3125, 0.3125, 0.3125 }, -- back connect_left = { -0.5, -0.3125, -0.3125, -0.3125, 0.3125, 0.3125 }, -- left @@ -1104,13 +1105,14 @@ minetest.register_node("lwcomponents:conduit", { minetest.register_node("lwcomponents:conduit_locked", { description = S("Conduit (locked)"), + short_description = S("Conduit (locked)"), tiles = { "lwconduit.png" }, drawtype = "nodebox", node_box = { type = "connected", fixed = { -0.375, -0.375, -0.375, 0.375, 0.375, 0.375 }, -- body connect_top = { -0.3125, 0.3125, -0.3125, 0.3125, 0.5, 0.3125 }, -- top - connect_bottom = {-0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125}, -- down + connect_bottom = { -0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125 }, -- down connect_front = { -0.3125, -0.3125, -0.5, 0.3125, 0.3125, -0.3125 }, -- front connect_back = { -0.3125, -0.3125, 0.5, 0.3125, 0.3125, 0.3125 }, -- back connect_left = { -0.5, -0.3125, -0.3125, -0.3125, 0.3125, 0.3125 }, -- left @@ -1126,7 +1128,7 @@ minetest.register_node("lwcomponents:conduit_locked", { type = "connected", fixed = { -0.375, -0.375, -0.375, 0.375, 0.375, 0.375 }, -- body connect_top = { -0.3125, 0.3125, -0.3125, 0.3125, 0.5, 0.3125 }, -- top - connect_bottom = {-0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125}, -- down + connect_bottom = { -0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125 }, -- down connect_front = { -0.3125, -0.3125, -0.5, 0.3125, 0.3125, -0.3125 }, -- front connect_back = { -0.3125, -0.3125, 0.5, 0.3125, 0.3125, 0.3125 }, -- back connect_left = { -0.5, -0.3125, -0.3125, -0.3125, 0.3125, 0.3125 }, -- left @@ -1136,7 +1138,7 @@ minetest.register_node("lwcomponents:conduit_locked", { type = "connected", fixed = { -0.375, -0.375, -0.375, 0.375, 0.375, 0.375 }, -- body connect_top = { -0.3125, 0.3125, -0.3125, 0.3125, 0.5, 0.3125 }, -- top - connect_bottom = {-0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125}, -- down + connect_bottom = { -0.3125, -0.5, -0.3125, 0.3125, -0.3125, 0.3125 }, -- down connect_front = { -0.3125, -0.3125, -0.5, 0.3125, 0.3125, -0.3125 }, -- front connect_back = { -0.3125, -0.3125, 0.5, 0.3125, 0.3125, 0.3125 }, -- back connect_left = { -0.5, -0.3125, -0.3125, -0.3125, 0.3125, 0.3125 }, -- left diff --git a/depends.txt b/depends.txt index 5a8ebf6..5e926d9 100644 --- a/depends.txt +++ b/depends.txt @@ -6,3 +6,4 @@ intllib? hopper? digistuff? pipeworks? +lwwires? diff --git a/deployer.lua b/deployer.lua index 9b41cba..63079b0 100644 --- a/deployer.lua +++ b/deployer.lua @@ -630,7 +630,7 @@ end -local deployer_groups = { cracky = 3 } +local deployer_groups = { cracky = 3, wires_connect = 1 } if utils.pipeworks_supported then deployer_groups.tubedevice = 1 deployer_groups.tubedevice_receiver = 1 @@ -638,7 +638,7 @@ end -local deployer_on_groups = { cracky = 3, not_in_creative_inventory = 1 } +local deployer_on_groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 } if utils.pipeworks_supported then deployer_on_groups.tubedevice = 1 deployer_on_groups.tubedevice_receiver = 1 diff --git a/detector.lua b/detector.lua index 59c554c..0a9d5da 100644 --- a/detector.lua +++ b/detector.lua @@ -730,7 +730,7 @@ minetest.register_node("lwcomponents:detector", { tiles = { "lwdetector_face.png", "lwdetector_face.png", "lwdetector.png", "lwdetector.png", "lwdetector.png", "lwdetector_face.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -759,7 +759,7 @@ minetest.register_node("lwcomponents:detector_locked", { tiles = { "lwdetector_face.png", "lwdetector_face.png", "lwdetector.png", "lwdetector.png", "lwdetector.png", "lwdetector_face.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -788,7 +788,7 @@ minetest.register_node("lwcomponents:detector_on", { tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png", "lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -817,7 +817,7 @@ minetest.register_node("lwcomponents:detector_locked_on", { tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png", "lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -846,7 +846,7 @@ minetest.register_node("lwcomponents:detector_on_on", { tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png", "lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -875,7 +875,7 @@ minetest.register_node("lwcomponents:detector_locked_on_on", { tiles = { "lwdetector_face_on.png", "lwdetector_face_on.png", "lwdetector.png", "lwdetector.png", "lwdetector.png", "lwdetector_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, diff --git a/digiswitch.lua b/digiswitch.lua index c93919d..7f2d47d 100644 --- a/digiswitch.lua +++ b/digiswitch.lua @@ -334,7 +334,7 @@ minetest.register_node ("lwcomponents:digiswitch", { }, paramtype = "none", param1 = 0, - groups = { cracky = 2, oddly_breakable_by_hand = 2 }, + groups = { cracky = 2, oddly_breakable_by_hand = 2, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), mesecons = mesecon_support (), digiline = digilines_support (), @@ -362,7 +362,7 @@ minetest.register_node ("lwcomponents:digiswitch_on", { }, paramtype = "none", param1 = 0, - groups = { cracky = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1 }, + groups = { cracky = 2, oddly_breakable_by_hand = 2, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), mesecons = mesecon_support_on (), digiline = digilines_support (), diff --git a/dispenser.lua b/dispenser.lua index dc7ddc1..f486b6e 100644 --- a/dispenser.lua +++ b/dispenser.lua @@ -513,7 +513,7 @@ end -local dispenser_groups = { cracky = 3 } +local dispenser_groups = { cracky = 3, wires_connect = 1 } if utils.pipeworks_supported then dispenser_groups.tubedevice = 1 dispenser_groups.tubedevice_receiver = 1 diff --git a/dropper.lua b/dropper.lua index 9cbf87b..0e55d12 100644 --- a/dropper.lua +++ b/dropper.lua @@ -448,7 +448,7 @@ end -local dropper_groups = { cracky = 3 } +local dropper_groups = { cracky = 3, wires_connect = 1 } if utils.pipeworks_supported then dropper_groups.tubedevice = 1 dropper_groups.tubedevice_receiver = 1 diff --git a/fan.lua b/fan.lua index f2563a9..a48985e 100644 --- a/fan.lua +++ b/fan.lua @@ -341,7 +341,7 @@ minetest.register_node("lwcomponents:fan", { tiles = { "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan_face.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -369,7 +369,7 @@ minetest.register_node("lwcomponents:fan_locked", { tiles = { "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan_face.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -397,7 +397,7 @@ minetest.register_node("lwcomponents:fan_on", { tiles = { "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -426,7 +426,7 @@ minetest.register_node("lwcomponents:fan_locked_on", { tiles = { "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan.png", "lwfan_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, diff --git a/force_field.lua b/force_field.lua index d58628b..930ac8c 100644 --- a/force_field.lua +++ b/force_field.lua @@ -820,7 +820,7 @@ end -local force_field_groups = { cracky = 3 } +local force_field_groups = { cracky = 3, wires_connect = 1 } if utils.pipeworks_supported then force_field_groups.tubedevice = 1 force_field_groups.tubedevice_receiver = 1 @@ -828,7 +828,7 @@ end -local force_field_on_groups = { cracky = 3, not_in_creative_inventory = 1 } +local force_field_on_groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 } if utils.pipeworks_supported then force_field_on_groups.tubedevice = 1 force_field_on_groups.tubedevice_receiver = 1 diff --git a/init.lua b/init.lua index f986a8a..945d784 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ -local version = "0.1.27" +local version = "0.1.28" local mod_storage = minetest.get_mod_storage () diff --git a/mod.conf b/mod.conf index 0f3912a..17b544b 100644 --- a/mod.conf +++ b/mod.conf @@ -3,4 +3,4 @@ description = Various components for mesecons and digilines. title = LWComponents name = lwcomponents depends = default -optional_depends = mesecons, digilines, unifieddyes, intllib, hopper, digistuff, pipeworks +optional_depends = mesecons, digilines, unifieddyes, intllib, hopper, digistuff, pipeworks, lwwires diff --git a/pistons.lua b/pistons.lua index b228655..2b3869e 100644 --- a/pistons.lua +++ b/pistons.lua @@ -1103,7 +1103,7 @@ minetest.register_node("lwcomponents:piston", { "lwcomponents_piston_right.png", "lwcomponents_piston_left.png", "lwcomponents_piston_base.png", "lwcomponents_piston_pusher.png" }, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "light", param1 = 0, @@ -1150,7 +1150,7 @@ minetest.register_node("lwcomponents:piston_1", { }, }, is_ground_content = false, - groups = { cracky = 3 , not_in_creative_inventory = 1 }, + groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "light", param1 = 0, @@ -1197,7 +1197,7 @@ minetest.register_node("lwcomponents:piston_2", { }, }, is_ground_content = false, - groups = { cracky = 3 , not_in_creative_inventory = 1 }, + groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "light", param1 = 0, @@ -1227,7 +1227,7 @@ minetest.register_node("lwcomponents:piston_sticky", { "lwcomponents_piston_right.png", "lwcomponents_piston_left.png", "lwcomponents_piston_base.png", "lwcomponents_piston_pusher_sticky.png" }, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "light", param1 = 0, @@ -1274,7 +1274,7 @@ minetest.register_node("lwcomponents:piston_sticky_1", { }, }, is_ground_content = false, - groups = { cracky = 3 , not_in_creative_inventory = 1 }, + groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "light", param1 = 0, @@ -1321,7 +1321,7 @@ minetest.register_node("lwcomponents:piston_sticky_2", { }, }, is_ground_content = false, - groups = { cracky = 3 , not_in_creative_inventory = 1 }, + groups = { cracky = 3 , not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "light", param1 = 0, diff --git a/puncher.lua b/puncher.lua index 10d5bbe..3c92ffd 100644 --- a/puncher.lua +++ b/puncher.lua @@ -482,7 +482,7 @@ minetest.register_node("lwcomponents:puncher", { tiles = { "lwpuncher_face.png", "lwpuncher_face.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher_face.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -509,7 +509,7 @@ minetest.register_node("lwcomponents:puncher_locked", { tiles = { "lwpuncher_face.png", "lwpuncher_face.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher_face.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -536,7 +536,7 @@ minetest.register_node("lwcomponents:puncher_on", { tiles = { "lwpuncher_face_on.png", "lwpuncher_face_on.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -563,7 +563,7 @@ minetest.register_node("lwcomponents:puncher_locked_on", { tiles = { "lwpuncher_face_on.png", "lwpuncher_face_on.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher.png", "lwpuncher_face_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, diff --git a/readme.txt b/readme.txt index 7563d8a..4ec19a2 100644 --- a/readme.txt +++ b/readme.txt @@ -13,7 +13,7 @@ CC BY-SA 3.0 Version ======= -0.1.27 +0.1.28 Minetest Version @@ -35,6 +35,7 @@ intllib hopper digistuff pipeworks +lwwires Installation diff --git a/siren.lua b/siren.lua index 4169f5d..2d06901 100644 --- a/siren.lua +++ b/siren.lua @@ -491,7 +491,7 @@ minetest.register_node("lwcomponents:siren", { tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren.png", "lwsiren.png", "lwsiren.png", "lwsiren.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -518,7 +518,7 @@ minetest.register_node("lwcomponents:siren_locked", { tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren.png", "lwsiren.png", "lwsiren.png", "lwsiren.png"}, is_ground_content = false, - groups = { cracky = 3 }, + groups = { cracky = 3, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -545,7 +545,7 @@ minetest.register_node("lwcomponents:siren_on", { tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -572,7 +572,7 @@ minetest.register_node("lwcomponents:siren_locked_on", { tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png", "lwsiren_on.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -599,7 +599,7 @@ minetest.register_node("lwcomponents:siren_alarm", { tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, @@ -627,7 +627,7 @@ minetest.register_node("lwcomponents:siren_locked_alarm", { tiles = { "lwsiren_base.png", "lwsiren_base.png", "lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png", "lwsiren_alarm.png"}, is_ground_content = false, - groups = { cracky = 3, not_in_creative_inventory = 1 }, + groups = { cracky = 3, not_in_creative_inventory = 1, wires_connect = 1 }, sounds = default.node_sound_stone_defaults (), paramtype = "none", param1 = 0, diff --git a/solid_conductor.lua b/solid_conductor.lua index ebaf8b5..af9ea28 100644 --- a/solid_conductor.lua +++ b/solid_conductor.lua @@ -35,6 +35,7 @@ mesecon.register_node (":lwcomponents:solid_conductor", groups = { dig_immediate = 2, ud_param2_colorable = 1, + wires_connect = 1 }, }, { @@ -51,7 +52,8 @@ mesecon.register_node (":lwcomponents:solid_conductor", groups = { dig_immediate = 2, ud_param2_colorable = 1, - not_in_creative_inventory = 1 + not_in_creative_inventory = 1, + wires_connect = 1 }, } ) @@ -101,6 +103,7 @@ mesecon.register_node (":lwcomponents:solid_horizontal_conductor", groups = { dig_immediate = 2, ud_param2_colorable = 1, + wires_connect = 1 }, }, { @@ -117,7 +120,8 @@ mesecon.register_node (":lwcomponents:solid_horizontal_conductor", groups = { dig_immediate = 2, ud_param2_colorable = 1, - not_in_creative_inventory = 1 + not_in_creative_inventory = 1, + wires_connect = 1 }, } )