From 3c8f5e92a5e0de7b4c766235f928f7b6a79fe36f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 17 Jan 2017 17:36:49 +0100 Subject: [PATCH] Make redstone be dug by water --- mods/redstone/mesecons/oldwires.lua | 4 ++-- mods/redstone/mesecons/wires.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/redstone/mesecons/oldwires.lua b/mods/redstone/mesecons/oldwires.lua index fb309a2a..b9d37cbe 100644 --- a/mods/redstone/mesecons/oldwires.lua +++ b/mods/redstone/mesecons/oldwires.lua @@ -10,7 +10,7 @@ minetest.register_node("mesecons:mesecon_off", { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}, }, - groups = {dig_immediate=3, mesecon=1, mesecon_conductor_craftable=1}, + groups = {dig_immediate=3, mesecon=1, dig_by_water=1, mesecon_conductor_craftable=1}, description="Redstone", mesecons = {conductor={ state = mesecon.state.off, @@ -28,7 +28,7 @@ minetest.register_node("mesecons:mesecon_on", { type = "fixed", fixed = {-0.5, -0.5, -0.5, 0.5, -0.45, 0.5}, }, - groups = {dig_immediate=3, not_in_creaive_inventory=1, mesecon=1}, + groups = {dig_immediate=3, dig_by_water = 1, not_in_creaive_inventory=1, mesecon=1}, drop = '"mesecons:mesecon_off" 1', light_source = LIGHT_MAX-11, mesecons = {conductor={ diff --git a/mods/redstone/mesecons/wires.lua b/mods/redstone/mesecons/wires.lua index 3f144009..885d4043 100644 --- a/mods/redstone/mesecons/wires.lua +++ b/mods/redstone/mesecons/wires.lua @@ -34,10 +34,10 @@ for zmy=0, 1 do tostring(xpy)..tostring(zpy)..tostring(xmy)..tostring(zmy) if nodeid == "00000000" then - groups = {dig_immediate = 3, mesecon_conductor_craftable = 1, attach_node = 1} + groups = {dig_immediate = 3, mesecon_conductor_craftable = 1, attach_node = 1, dig_by_water = 1} wiredesc = "Redstone" else - groups = {dig_immediate = 3, not_in_creative_inventory = 1, attach_node = 1} + groups = {dig_immediate = 3, not_in_creative_inventory = 1, attach_node = 1, dig_by_water = 1} wiredesc = "Redstone Trail (ID: "..nodeid..")" end @@ -145,7 +145,7 @@ for zmy=0, 1 do type = "fixed", fixed = nodebox }, - groups = {dig_immediate = 3, mesecon = 2, not_in_creative_inventory = 1}, + groups = {dig_immediate = 3, mesecon = 2, dig_by_water = 1, not_in_creative_inventory = 1}, walkable = false, stack_max = 64, drop = "mesecons:wire_00000000_off",