From 1f6e1fa7abba58508a6274e9d0fa6bdfb6632dc2 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sat, 11 Aug 2012 23:39:28 +0200 Subject: [PATCH] Mesecons only connect to blocks with group mesecon > 1 --- mesecons/settings.lua | 2 +- mesecons/wires.lua | 39 ++++++++++-------- mesecons_battery/init.lua | 4 +- mesecons_blinkyplant/init.lua | 4 +- mesecons_delayer/init.lua | 6 +-- mesecons_detector/init.lua | 4 +- mesecons_door/init.lua | 2 +- mesecons_hydroturbine/init.lua | 4 +- mesecons_lamp/init.lua | 4 +- mesecons_lightstone/init.lua | 4 +- mesecons_microcontroller/init.lua | 4 +- mesecons_noteblock/init.lua | 2 +- mesecons_pistons/init.lua | 4 +- mesecons_pistons/pistons_down.lua | 4 +- mesecons_pistons/pistons_up.lua | 4 +- mesecons_powerplant/init.lua | 2 +- mesecons_pressureplates/init.lua | 8 ++-- mesecons_random/init.lua | 2 +- mesecons_solarpanel/init.lua | 2 +- mesecons_switch/init.lua | 4 +- mesecons_temperest/init.lua | 10 ++--- mesecons_textures/textures/wires_inv.png | Bin 0 -> 167 bytes mesecons_textures/textures/wires_off.png | Bin 0 -> 532 bytes mesecons_textures/textures/wires_on.png | Bin 0 -> 640 bytes .../textures/wires_vertical_off.png | Bin 0 -> 643 bytes .../textures/wires_vertical_on.png | Bin 0 -> 754 bytes mesecons_torch/init.lua | 4 +- 27 files changed, 64 insertions(+), 59 deletions(-) create mode 100644 mesecons_textures/textures/wires_inv.png create mode 100644 mesecons_textures/textures/wires_off.png create mode 100644 mesecons_textures/textures/wires_on.png create mode 100644 mesecons_textures/textures/wires_vertical_off.png create mode 100644 mesecons_textures/textures/wires_vertical_on.png diff --git a/mesecons/settings.lua b/mesecons/settings.lua index 46d0405..c864ce2 100644 --- a/mesecons/settings.lua +++ b/mesecons/settings.lua @@ -1,4 +1,4 @@ -- SETTINGS BLINKY_PLANT_INTERVAL=3 ENABLE_TEMPEREST = false -- Enable Temperest's plugs and sockets -NEW_STYLE_WIRES = false -- true = new nodebox wires, false = old raillike wires +NEW_STYLE_WIRES = true -- true = new nodebox wires, false = old raillike wires diff --git a/mesecons/wires.lua b/mesecons/wires.lua index 43d7fd9..4321d2d 100644 --- a/mesecons/wires.lua +++ b/mesecons/wires.lua @@ -69,10 +69,10 @@ for zmy=0, 1 do tostring(xpy)..tostring(zpy)..tostring(xmy)..tostring(zmy) if nodeid == "00000000" then - groups = {dig_immediate = 3, mesecon = 1} + groups = {dig_immediate = 3, mesecon = 2} wiredesc = "Mesecon" else - groups = {dig_immediate = 3, mesecon = 1, not_in_creative_inventory = 1} + groups = {dig_immediate = 3, mesecon = 2, not_in_creative_inventory = 1} wiredesc = "Mesecons Wire (ID: "..nodeid..")" end @@ -166,7 +166,7 @@ for zmy=0, 1 do type = "fixed", fixed = nodebox }, - groups = {dig_immediate = 3, mesecon = 1, not_in_creative_inventory = 1}, + groups = {dig_immediate = 3, mesecon = 2, not_in_creative_inventory = 1}, walkable = false, stack_max = 99, drop = "mesecons:wire_00000000_off" @@ -182,11 +182,15 @@ end end minetest.register_on_placenode(function(pos, node) - mesecon:update_autoconnect(pos) + if minetest.get_item_group(node.name, "mesecon") > 1 then + mesecon:update_autoconnect(pos) + end end) minetest.register_on_dignode(function(pos, node) - mesecon:update_autoconnect(pos) + if minetest.get_item_group(node.name, "mesecon") > 1 then + mesecon:update_autoconnect(pos) + end end) function mesecon:update_autoconnect(pos, secondcall, replace_old) @@ -225,20 +229,21 @@ function mesecon:update_autoconnect(pos, secondcall, replace_old) nodename = minetest.env:get_node(pos).name if string.find(nodename, "mesecons:wire_") == nil and not replace_old then return nil end - xp = (minetest.get_item_group(minetest.env:get_node(xppos).name, "mesecon") > 0 or - minetest.get_item_group(minetest.env:get_node(xpympos).name, "mesecon") > 0) and 1 or 0 - zp = (minetest.get_item_group(minetest.env:get_node(zppos).name, "mesecon") > 0 or - minetest.get_item_group(minetest.env:get_node(zpympos).name, "mesecon") > 0) and 1 or 0 - xm = (minetest.get_item_group(minetest.env:get_node(xmpos).name, "mesecon") > 0 or - minetest.get_item_group(minetest.env:get_node(xmympos).name, "mesecon") > 0) and 1 or 0 - zm = (minetest.get_item_group(minetest.env:get_node(zmpos).name, "mesecon") > 0 or - minetest.get_item_group(minetest.env:get_node(zmympos).name, "mesecon") > 0) and 1 or 0 + --if the groups mesecon == 1 then wires won't connect to it + xp = (minetest.get_item_group(minetest.env:get_node(xppos).name, "mesecon") > 1 or + minetest.get_item_group(minetest.env:get_node(xpympos).name, "mesecon") > 1) and 1 or 0 + zp = (minetest.get_item_group(minetest.env:get_node(zppos).name, "mesecon") > 1 or + minetest.get_item_group(minetest.env:get_node(zpympos).name, "mesecon") > 1) and 1 or 0 + xm = (minetest.get_item_group(minetest.env:get_node(xmpos).name, "mesecon") > 1 or + minetest.get_item_group(minetest.env:get_node(xmympos).name, "mesecon") > 1) and 1 or 0 + zm = (minetest.get_item_group(minetest.env:get_node(zmpos).name, "mesecon") > 1 or + minetest.get_item_group(minetest.env:get_node(zmympos).name, "mesecon") > 1) and 1 or 0 - xpy = minetest.get_item_group(minetest.env:get_node(xpypos).name, "mesecon") - zpy = minetest.get_item_group(minetest.env:get_node(zpypos).name, "mesecon") - xmy = minetest.get_item_group(minetest.env:get_node(xmypos).name, "mesecon") - zmy = minetest.get_item_group(minetest.env:get_node(zmypos).name, "mesecon") + xpy = (minetest.get_item_group(minetest.env:get_node(xpypos).name, "mesecon") > 1) and 1 or 0 + zpy = (minetest.get_item_group(minetest.env:get_node(zpypos).name, "mesecon") > 1) and 1 or 0 + xmy = (minetest.get_item_group(minetest.env:get_node(xmypos).name, "mesecon") > 1) and 1 or 0 + zmy = (minetest.get_item_group(minetest.env:get_node(zmypos).name, "mesecon") > 1) and 1 or 0 if replace_old then print ("replacing") diff --git a/mesecons_battery/init.lua b/mesecons_battery/init.lua index 7e0bdc6..655442b 100644 --- a/mesecons_battery/init.lua +++ b/mesecons_battery/init.lua @@ -19,7 +19,7 @@ for i = 1, 5 do type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, }, - groups = {dig_immediate=2, mesecon = 1}, + groups = {dig_immediate=2, mesecon = 2}, description="Battery", }) mesecon:add_receptor_node_off("mesecons_battery:battery_charging_"..i) @@ -46,7 +46,7 @@ for i = 1, 5 do type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, }, - groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1}, + groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 2}, description="Battery", }) mesecon:add_receptor_node("mesecons_battery:battery_discharging_"..i) diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index c199289..8cc67c6 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -7,7 +7,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { inventory_image = "jeija_blinky_plant_off.png", paramtype = "light", walkable = false, - groups = {dig_immediate=3, mesecon = 1}, + groups = {dig_immediate=3, mesecon = 2}, description="Blinky Plant", selection_box = { type = "fixed", @@ -22,7 +22,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { inventory_image = "jeija_blinky_plant_off.png", paramtype = "light", walkable = false, - groups = {dig_immediate=3, not_in_creative_inventory=1, mesecon = 1}, + groups = {dig_immediate=3, not_in_creative_inventory=1, mesecon = 2}, drop='"mesecons_blinkyplant:blinky_plant_off" 1', light_source = LIGHT_MAX-7, description = "Blinky Plant", diff --git a/mesecons_delayer/init.lua b/mesecons_delayer/init.lua index ed44dc1..cd1cd92 100644 --- a/mesecons_delayer/init.lua +++ b/mesecons_delayer/init.lua @@ -1,9 +1,9 @@ for i = 1, 4 do local groups = {} if i == 1 then - groups = {bendy=2,snappy=1,dig_immediate=2, mesecon = 1} + groups = {bendy=2,snappy=1,dig_immediate=2, mesecon = 2} else - groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1, mesecon = 1} + groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1, mesecon = 2} end minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), { @@ -49,7 +49,7 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), { type = "fixed", fixed = { -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 }, }, - groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1, mesecon = 1}, + groups = {bendy=2,snappy=1,dig_immediate=2,not_in_creative_inventory=1, mesecon = 2}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mesecons_detector/init.lua b/mesecons_detector/init.lua index 8f734aa..c23aa80 100644 --- a/mesecons_detector/init.lua +++ b/mesecons_detector/init.lua @@ -3,7 +3,7 @@ minetest.register_node("mesecons_detector:object_detector_off", { tile_images = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png", "jeija_object_detector_off.png"}, paramtype = "light", walkable = true, - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, description="Player Detector", }) @@ -11,7 +11,7 @@ minetest.register_node("mesecons_detector:object_detector_on", { tile_images = {"default_steel_block.png", "default_steel_block.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png", "jeija_object_detector_on.png"}, paramtype = "light", walkable = true, - groups = {cracky=3,not_in_creative_inventory=1, mesecon = 1}, + groups = {cracky=3,not_in_creative_inventory=1, mesecon = 2}, drop = 'mesecons_detector:object_detector_off', description="Player Detector", after_dig_node = function(pos) diff --git a/mesecons_door/init.lua b/mesecons_door/init.lua index 76330c2..ae7ec48 100644 --- a/mesecons_door/init.lua +++ b/mesecons_door/init.lua @@ -86,7 +86,7 @@ for i = 1, 4 do tile_images = {"default_wood.png"}, paramtype = "light", is_ground_content = true, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 1}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2}, drop = "mesecons_door:door", node_box = { type = "fixed", diff --git a/mesecons_hydroturbine/init.lua b/mesecons_hydroturbine/init.lua index c91cfa1..0a662bc 100644 --- a/mesecons_hydroturbine/init.lua +++ b/mesecons_hydroturbine/init.lua @@ -3,7 +3,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_off", { drawtype = "nodebox", tile_images = {"jeija_hydro_turbine_off.png"}, - groups = {dig_immediate=2, mesecon = 1}, + groups = {dig_immediate=2, mesecon = 2}, description="Water Turbine", paramtype = "light", selection_box = { @@ -26,7 +26,7 @@ minetest.register_node("mesecons_hydroturbine:hydro_turbine_on", { drawtype = "nodebox", tile_images = {"jeija_hydro_turbine_on.png"}, drop = '"mesecons_hydroturbine:hydro_turbine_off" 1', - groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1}, + groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 2}, description="Water Turbine", paramtype = "light", selection_box = { diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua index 399a3fa..1ae9e79 100644 --- a/mesecons_lamp/init.lua +++ b/mesecons_lamp/init.lua @@ -20,7 +20,7 @@ minetest.register_node("mesecons_lamp:lamp_on", { wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125}, wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125}, }, - groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon = 1}, + groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon = 2}, drop='"mesecons_lamp:lamp_off" 1', }) @@ -45,7 +45,7 @@ minetest.register_node("mesecons_lamp:lamp_off", { wall_bottom = {-0.3125,-0.5,-0.3125,0.3125,-0.375,0.3125}, wall_side = {-0.375,-0.3125,-0.3125,-0.5,0.3125,0.3125}, }, - groups = {dig_immediate=3, mesecon = 1}, + groups = {dig_immediate=3, mesecon = 2}, description="Meselamp", }) diff --git a/mesecons_lightstone/init.lua b/mesecons_lightstone/init.lua index ae7cb9d..414c7e7 100644 --- a/mesecons_lightstone/init.lua +++ b/mesecons_lightstone/init.lua @@ -2,13 +2,13 @@ function mesecon:lightstone_add(name, base_item, texture_off, texture_on) minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_off", { tile_images = {texture_off}, inventory_image = minetest.inventorycube(texture_off), - groups = {cracky=2, mesecon = 1}, + groups = {cracky=2, mesecon = 2}, description=name.." Lightstone", }) minetest.register_node("mesecons_lightstone:lightstone_" .. name .. "_on", { tile_images = {texture_on}, inventory_image = minetest.inventorycube(texture_on), - groups = {cracky=2,not_in_creative_inventory=1, mesecon = 1}, + groups = {cracky=2,not_in_creative_inventory=1, mesecon = 2}, drop = "node mesecons_lightstone:lightstone_" .. name .. "_off 1", light_source = LIGHT_MAX-2, description=name.." Lightstone", diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua index ea72bdd..88f7905 100644 --- a/mesecons_microcontroller/init.lua +++ b/mesecons_microcontroller/init.lua @@ -6,9 +6,9 @@ for c = 0, 1 do for d = 0, 1 do local nodename = "mesecons_microcontroller:microcontroller"..tostring(d)..tostring(c)..tostring(b)..tostring(a) if tostring(d)..tostring(c)..tostring(b)..tostring(a) ~= "0000" then - groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 1} + groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon = 2} else - groups = {dig_immediate=2, mesecon = 1} + groups = {dig_immediate=2, mesecon = 2} end minetest.register_node(nodename, { description = "Microcontroller", diff --git a/mesecons_noteblock/init.lua b/mesecons_noteblock/init.lua index 63f094c..64c7195 100644 --- a/mesecons_noteblock/init.lua +++ b/mesecons_noteblock/init.lua @@ -1,7 +1,7 @@ minetest.register_node("mesecons_noteblock:noteblock", { description = "Noteblock", tile_images = {"mesecons_noteblock.png"}, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 1}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, mesecon = 2}, drawtype = "allfaces_optional", visual_scale = 1.3, paramtype="light", diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 14f42e7..15cf0a9 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -3,7 +3,7 @@ minetest.register_node("mesecons_pistons:piston_normal", { description = "Piston", tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_side.png"}, - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, paramtype2 = "facedir", after_dig_node = function(pos, oldnode) local dir = mesecon:piston_get_direction(oldnode) @@ -23,7 +23,7 @@ minetest.register_node("mesecons_pistons:piston_normal", { minetest.register_node("mesecons_pistons:piston_sticky", { description = "Sticky Piston", tiles = {"jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_sticky_side.png"}, - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, paramtype2 = "facedir", after_dig_node = function(pos, oldnode) local dir = mesecon:piston_get_direction(oldnode) diff --git a/mesecons_pistons/pistons_down.lua b/mesecons_pistons/pistons_down.lua index c38bd6f..1df60df 100644 --- a/mesecons_pistons/pistons_down.lua +++ b/mesecons_pistons/pistons_down.lua @@ -3,7 +3,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal", { description = "Piston DOWN", tiles = {"jeija_piston_tb.png", "jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"}, - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, after_dig_node = function(pos, oldnode) local dir = {x=0, y=-1, z=0} pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check @@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal", { minetest.register_node("mesecons_pistons:piston_down_sticky", { description = "Sticky Piston DOWN", tiles = {"jeija_piston_tb.png", "jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"}, - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, after_dig_node = function(pos, oldnode) local dir = {x=0, y=-1, z=0} pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check diff --git a/mesecons_pistons/pistons_up.lua b/mesecons_pistons/pistons_up.lua index ae506db..68dee16 100644 --- a/mesecons_pistons/pistons_up.lua +++ b/mesecons_pistons/pistons_up.lua @@ -3,7 +3,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal", { description = "Piston UP", tiles = {"jeija_piston_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"}, - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, after_dig_node = function(pos, oldnode) local dir = {x=0, y=1, z=0} pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check @@ -22,7 +22,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal", { minetest.register_node("mesecons_pistons:piston_up_sticky", { description = "Sticky Piston UP", tiles = {"jeija_piston_sticky_side.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png", "jeija_piston_tb.png"}, - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, after_dig_node = function(pos, oldnode) local dir = {x=0, y=1, z=0} pos.x, pos.y, pos.z = pos.x + dir.x, pos.y + dir.y, pos.z + dir.z --move to first node to check diff --git a/mesecons_powerplant/init.lua b/mesecons_powerplant/init.lua index dafb61c..f564416 100644 --- a/mesecons_powerplant/init.lua +++ b/mesecons_powerplant/init.lua @@ -7,7 +7,7 @@ minetest.register_node("mesecons_powerplant:power_plant", { inventory_image = "jeija_power_plant.png", paramtype = "light", walkable = false, - groups = {dig_immediate=3, mesecon = 1}, + groups = {dig_immediate=3, mesecon = 2}, light_source = LIGHT_MAX-9, description="Power Plant", after_place_node = function(pos) diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index 7bd78a2..fc23dba 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -16,7 +16,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_off", { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, }, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 1}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 2}, description="Wood Pressure Plate", }) @@ -34,7 +34,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_wood_on", { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 }, }, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 1}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 2}, drop='"mesecons_pressureplates:pressure_plate_wood_off" 1', after_dig_node = function(pos) mesecon:receptor_off(pos, mesecon:get_rules("pressureplate")) @@ -98,7 +98,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_off", { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -7/16, 7/16 }, }, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 1}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3, mesecon = 2}, description="Stone Pressure Plate", }) @@ -116,7 +116,7 @@ minetest.register_node("mesecons_pressureplates:pressure_plate_stone_on", { type = "fixed", fixed = { -7/16, -8/16, -7/16, 7/16, -31/64, 7/16 }, }, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 1}, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,not_in_creative_inventory=1, mesecon = 2}, drop='"mesecons_pressureplates:pressure_plate_stone_off" 1', after_dig_node = function(pos) mesecon:receptor_off(pos, mesecon:get_rules("pressureplate")) diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index 3b9e492..6d068ed 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -4,7 +4,7 @@ minetest.register_node("mesecons_random:removestone", { tile_images = {"jeija_removestone.png"}, inventory_image = minetest.inventorycube("jeija_removestone_inv.png"), material = minetest.digprop_stonelike(1.0), - groups = {cracky=3, mesecon = 1}, + groups = {cracky=3, mesecon = 2}, description="Removestone", }) diff --git a/mesecons_solarpanel/init.lua b/mesecons_solarpanel/init.lua index 9802d75..5c6f78d 100644 --- a/mesecons_solarpanel/init.lua +++ b/mesecons_solarpanel/init.lua @@ -21,7 +21,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel", { wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 }, }, furnace_burntime = 5, - groups = {dig_immediate=3, mesecon = 1}, + groups = {dig_immediate=3, mesecon = 2}, description="Solar Panel", after_dig_node = function(pos, node, digger) mesecon:receptor_off(pos) diff --git a/mesecons_switch/init.lua b/mesecons_switch/init.lua index 65717be..4bbdbb1 100644 --- a/mesecons_switch/init.lua +++ b/mesecons_switch/init.lua @@ -3,14 +3,14 @@ minetest.register_node("mesecons_switch:mesecon_switch_off", { tile_images = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_off.png"}, paramtype2="facedir", - groups = {dig_immediate=2, mesecon = 1, mesecon = 1}, + groups = {dig_immediate=2, mesecon = 2}, description="Switch", }) minetest.register_node("mesecons_switch:mesecon_switch_on", { tile_images = {"jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_side.png", "jeija_mesecon_switch_on.png"}, paramtype2="facedir", - groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1, mesecon = 1}, + groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 2}, drop='"mesecons_switch:mesecon_switch_off" 1', description="Switch", after_dig_node = function(pos) diff --git a/mesecons_temperest/init.lua b/mesecons_temperest/init.lua index 6ae73af..9e8516c 100644 --- a/mesecons_temperest/init.lua +++ b/mesecons_temperest/init.lua @@ -105,7 +105,7 @@ minetest.register_node("mesecons_temperest:mesecon_plug", { tile_images = {"jeija_mesecon_plug.png"}, inventory_image = "jeija_mesecon_plug.png", wield_image = "jeija_mesecon_plug.png", - groups = {dig_immediate=2, mesecon = 1}, + groups = {dig_immediate=2, mesecon = 2}, walkable = false, selection_box = { type = "fixed", @@ -139,7 +139,7 @@ minetest.register_node("mesecons_temperest:mesecon_socket_off", { tile_images = {"jeija_mesecon_socket_off.png"}, inventory_image = "jeija_mesecon_socket_off.png", wield_image = "jeija_mesecon_socket_off.png", - groups = {dig_immediate=2, mesecon = 1}, + groups = {dig_immediate=2, mesecon = 2}, walkable = false, selection_box = { type = "fixed", @@ -156,7 +156,7 @@ minetest.register_node("mesecons_temperest:mesecon_socket_on", { paramtype = "light", is_ground_content = true, tile_images = {"jeija_mesecon_socket_on.png"}, - groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1}, + groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 2}, walkable = false, selection_box = { type = "fixed", @@ -191,7 +191,7 @@ if ENABLE_TEMPEREST then paramtype = "light", is_ground_content = true, tile_images = {"jeija_mesecon_inverter_off.png"}, - groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 1}, + groups = {dig_immediate=2,not_in_creative_inventory=1, mesecon = 2}, walkable = false, selection_box = { type = "fixed", @@ -212,7 +212,7 @@ if ENABLE_TEMPEREST then tile_images = {"jeija_mesecon_inverter_on.png"}, inventory_image = "jeija_mesecon_inverter_on.png", wield_image = "jeija_mesecon_inverter_on.png", - groups = {dig_immediate=2, mesecon = 1}, + groups = {dig_immediate=2, mesecon = 2}, walkable = false, selection_box = { type = "fixed", diff --git a/mesecons_textures/textures/wires_inv.png b/mesecons_textures/textures/wires_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..626f8d4fecc3c0c295f1be6a464bc627e0421a89 GIT binary patch literal 167 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4hILDu8!B__!OX!o2QFoh{fsT1PP80FD5?wZ=62mzp;UV!G;NoBO_+at(m>Q z&h*EBkWAp&#k1I_r-`w#v9*P-uQLQHGB|NEHhoF;ITnUJ7xP))&*OUvG?Bs6)z4*} HQ$iB}67V%l literal 0 HcmV?d00001 diff --git a/mesecons_textures/textures/wires_off.png b/mesecons_textures/textures/wires_off.png new file mode 100644 index 0000000000000000000000000000000000000000..bbe5e086aa30f3c2ef7de3a50b56dc41e61c947d GIT binary patch literal 532 zcmV+v0_**WP)Who;hQ4e~$p9sbRSk z(iFT05pWKg2BJvEb_;C_lZmda1$%U)m%C2bZ1h4LL*D}^sjgwYhA=cFiSDh1)d~U; zSg(c4OAPd7d+wz{dxqDL7XgaKaG! zUNE<}h;v%`L7F6SWLZvK>r=xJ%Cf*1kN28d5NO~a&-K6<)!ln_l%`t5s)FNVJ^T97 z07I~{guocRe0H{z@%kDGLp@JZ)%*1o7Kjw5<+n?atd+vkZS?%z<-Y z77HYbwE9V+h9PAtSDE=2+JxuLFwzE_T&&2%xH?xGFe+g4M^bG5~>eyBL!welYt WXvlewB@`0?0000R~l%*pKB~|5+5@Zx9;#gCbmMk+Ag`?S&I0pby zDzeNno7Dt?B8ntgW>HFTe{ay%I%cz)y}hr3|8RHr!R5JSfB)MH?)LW3?e2QW`P>ji zicKg>i|@;goKjHN4!OPE;P>xp<5FFNbAs2fSXgvb8FqH`8j)qk4&E@CRGgjtVmkfg z%F;0ye11|Z3P+N7Xr;uHVb74{xg<&Y93Srx1cuYopKBYwFEGX;&d=XF&r^hh1TzYOY-~&bq&TCJWpb+K=yhK;#lB$&}?e7hO4U-$ViesE-xWX zFK{l!7>81lC~6?3iPW00q8U} zv|8&?#j#*Cx+M&!+}t!dIk{snSdV%-tydGA-~YpK`29teal8`L zRprPsyD?|a(=3AklTVxh94BqxRT7y8IfLj$fB-I4rzHP;|LWJPF<*qH7PigldjVkIp=})zAsgiE zDhr(7IU}BSr$WsGmb)x znR!y`s>lo#s6y8ZKduRl$+*nI{y1|&jjwzm5pgG0h=ae zUCZ?Pxqga5%1(9ckg_ujLerE89|wq(DUZdOM&<2I`S-uX&@26541;23=y?`g%Tf|& z?tJ{HPhW(23jZ6{cg3F+g>@~ms%b8Grb!6uoQLyRj1ZtjF>`Wu>ZY)-D+*k120hakb+XY}cNZ&cHKOY3#d-JM}J6OP9~ zS!zI0*MaF&p|ucWVi+RBkm&owZt zLtwR<;GCtZu0--&77N2_WqElCIA_q>5CY6*mS4X-kB^r9e#Ba#C^T(5;+(=c#ivgh z()W>Ji1dAAv+00qf)GZQOM~}`sxrL3j?Cv4=M+U@>AI_trfDKwmsl9N1oiy-&KD@x#-$k