1
0
Fork 0

Make buttons be dug by water

This commit is contained in:
Wuzzy 2017-01-12 00:28:34 +01:00
parent d90608e962
commit b2fddd4066
1 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ minetest.register_node("mesecons_button:button_stone_off", {
type = "fixed", type = "fixed",
fixed = boxes_off -- the button itself 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", description = "Stone Button",
on_punch = function (pos, node) on_punch = function (pos, node)
mesecon:swap_node(pos, "mesecons_button:button_stone_on") mesecon:swap_node(pos, "mesecons_button:button_stone_on")
@ -69,7 +69,7 @@ minetest.register_node("mesecons_button:button_stone_on", {
type = "fixed", type = "fixed",
fixed = boxes_on -- the button itself 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', drop = 'mesecons_button:button_stone_off',
description = "Stone Button", description = "Stone Button",
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),
@ -96,7 +96,7 @@ minetest.register_node("mesecons_button:button_wood_off", {
type = "fixed", type = "fixed",
fixed = boxes_off -- the button itself 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", description = "Wooden Button",
on_punch = function (pos, node) on_punch = function (pos, node)
mesecon:swap_node(pos, "mesecons_button:button_wood_on") mesecon:swap_node(pos, "mesecons_button:button_wood_on")
@ -128,7 +128,7 @@ minetest.register_node("mesecons_button:button_wood_on", {
type = "fixed", type = "fixed",
fixed = boxes_on -- the button itself 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', drop = 'mesecons_button:button_wood_off',
description = "Wooden Button", description = "Wooden Button",
sounds = default.node_sound_stone_defaults(), sounds = default.node_sound_stone_defaults(),