forked from VoxeLibre/VoxeLibre
Make buttons be dug by water
This commit is contained in:
parent
d90608e962
commit
b2fddd4066
|
@ -37,7 +37,7 @@ minetest.register_node("mesecons_button:button_stone_off", {
|
|||
type = "fixed",
|
||||
fixed = boxes_off -- the button itself
|
||||
},
|
||||
groups = {dig_immediate=2, attached_node=1},
|
||||
groups = {dig_immediate=2, attached_node=1, dig_by_water=1},
|
||||
description = "Stone Button",
|
||||
on_punch = function (pos, node)
|
||||
mesecon:swap_node(pos, "mesecons_button:button_stone_on")
|
||||
|
@ -69,7 +69,7 @@ minetest.register_node("mesecons_button:button_stone_on", {
|
|||
type = "fixed",
|
||||
fixed = boxes_on -- the button itself
|
||||
},
|
||||
groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1},
|
||||
groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1},
|
||||
drop = 'mesecons_button:button_stone_off',
|
||||
description = "Stone Button",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
@ -96,7 +96,7 @@ minetest.register_node("mesecons_button:button_wood_off", {
|
|||
type = "fixed",
|
||||
fixed = boxes_off -- the button itself
|
||||
},
|
||||
groups = {dig_immediate=2, attached_node=1},
|
||||
groups = {dig_immediate=2, attached_node=1, dig_by_water=1},
|
||||
description = "Wooden Button",
|
||||
on_punch = function (pos, node)
|
||||
mesecon:swap_node(pos, "mesecons_button:button_wood_on")
|
||||
|
@ -128,7 +128,7 @@ minetest.register_node("mesecons_button:button_wood_on", {
|
|||
type = "fixed",
|
||||
fixed = boxes_on -- the button itself
|
||||
},
|
||||
groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1},
|
||||
groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1},
|
||||
drop = 'mesecons_button:button_wood_off',
|
||||
description = "Wooden Button",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
|
|
Loading…
Reference in New Issue