Make some redstone nodes be dug by water
This commit is contained in:
parent
c0d7b57448
commit
618911f162
|
@ -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,
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue