From 618911f162588d22e10ef03de1f7cedeaa550b75 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 12 Jan 2017 00:51:52 +0100 Subject: [PATCH] Make some redstone nodes be dug by water --- mods/redstone/mesecons_delayer/init.lua | 6 +++--- mods/redstone/mesecons_torch/init.lua | 4 ++-- mods/redstone/mesecons_walllever/init.lua | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mods/redstone/mesecons_delayer/init.lua b/mods/redstone/mesecons_delayer/init.lua index 83c6bea3..30e5df56 100644 --- a/mods/redstone/mesecons_delayer/init.lua +++ b/mods/redstone/mesecons_delayer/init.lua @@ -46,9 +46,9 @@ end for i = 1, 4 do local groups = {} if i == 1 then - groups = {bendy=2,snappy=1,dig_immediate=2} + groups = {bendy=2,snappy=1,dig_immediate=2,dig_by_water=1} else - groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1} + groups = {bendy=2,snappy=1,dig_immediate=2,dig_by_water=1, not_in_creative_inventory=1} end local delaytime @@ -161,7 +161,7 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), { type = "fixed", fixed = boxes }, - groups = {bendy = 2, snappy = 1, dig_immediate = 2, not_in_creative_inventory = 1}, + groups = {bendy = 2, snappy = 1, dig_immediate = 2, dig_by_water=1, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mods/redstone/mesecons_torch/init.lua b/mods/redstone/mesecons_torch/init.lua index 8dedd098..d72c2da8 100644 --- a/mods/redstone/mesecons_torch/init.lua +++ b/mods/redstone/mesecons_torch/init.lua @@ -58,7 +58,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_off", { paramtype2 = "wallmounted", is_ground_content = false, selection_box = torch_selectionbox, - groups = {dig_immediate = 3, not_in_creative_inventory = 1}, + groups = {dig_immediate = 3, dig_by_water=1, not_in_creative_inventory = 1}, drop = "mesecons_torch:mesecon_torch_on", mesecons = {receptor = { state = mesecon.state.off, @@ -78,7 +78,7 @@ minetest.register_node("mesecons_torch:mesecon_torch_on", { paramtype2 = "wallmounted", is_ground_content = false, selection_box = torch_selectionbox, - groups = {dig_immediate=3}, + groups = {dig_immediate=3, dig_by_water=1}, light_source = 6, description="Redstone Torch", mesecons = {receptor = { diff --git a/mods/redstone/mesecons_walllever/init.lua b/mods/redstone/mesecons_walllever/init.lua index 605dac77..57763999 100644 --- a/mods/redstone/mesecons_walllever/init.lua +++ b/mods/redstone/mesecons_walllever/init.lua @@ -27,7 +27,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", { fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base { -1/16, -8/16, 7/16, 1/16, 0/16, 5/16 }} -- the lever itself. }, - groups = {dig_immediate=2}, + groups = {dig_immediate=2, dig_by_water=1}, is_ground_content = false, description="Lever", on_punch = function (pos, node) @@ -66,7 +66,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base { -1/16, 0/16, 7/16, 1/16, 8/16, 5/16 }} -- the lever itself. }, - groups = {dig_immediate = 2, not_in_creative_inventory = 1}, + groups = {dig_immediate = 2, not_in_creative_inventory = 1, dig_by_water=1}, is_ground_content = false, drop = '"mesecons_walllever:wall_lever_off" 1', description="Lever",