summaryrefslogtreecommitdiff
path: root/mesecons_dev
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_dev')
-rw-r--r--mesecons_dev/mesecons_walllever/init.lua4
-rw-r--r--mesecons_dev/mesecons_wireless/init.lua12
2 files changed, 8 insertions, 8 deletions
diff --git a/mesecons_dev/mesecons_walllever/init.lua b/mesecons_dev/mesecons_walllever/init.lua
index 557bb1b..0276aeb 100644
--- a/mesecons_dev/mesecons_walllever/init.lua
+++ b/mesecons_dev/mesecons_walllever/init.lua
@@ -11,7 +11,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
selection_box = {
type = "wallmounted",
},
- material = minetest.digprop_constanttime(0.3),
+ groups = {dig_immediate=2},
description="Lever",
})
minetest.register_node("mesecons_walllever:wall_lever_on", {
@@ -25,7 +25,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
selection_box = {
type = "wallmounted",
},
- material = minetest.digprop_constanttime(0.3),
+ groups = {dig_immediate=2},
drop = '"mesecons_walllever:wall_lever_off" 1',
description="Lever",
})
diff --git a/mesecons_dev/mesecons_wireless/init.lua b/mesecons_dev/mesecons_wireless/init.lua
index bffac58..0d956e8 100644
--- a/mesecons_dev/mesecons_wireless/init.lua
+++ b/mesecons_dev/mesecons_wireless/init.lua
@@ -148,14 +148,14 @@ minetest.register_abm(
minetest.register_node("mesecons_wireless:wireless_receiver_off", {
tile_images = {"jeija_wireless_receiver_tb_off.png", "jeija_wireless_receiver_tb_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png", "jeija_wireless_receiver_off.png"},
inventory_image = minetest.inventorycube("jeija_wireless_receiver_off.png"),
- material = minetest.digprop_constanttime(0.8),
+ groups = {choppy=2},
description="Wireless Receiver",
})
minetest.register_node("mesecons_wireless:wireless_receiver_on", {
tile_images = {"jeija_wireless_receiver_tb_on.png", "jeija_wireless_receiver_tb_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png", "jeija_wireless_receiver_on.png"},
inventory_image = minetest.inventorycube("jeija_wireless_receiver_on.png"),
- material = minetest.digprop_constanttime(0.8),
+ groups = {choppy=2},
drop = 'mesecons_wireless:wireless_receiver_off',
description="Wireless Receiver",
})
@@ -216,7 +216,7 @@ mesecon:add_receptor_node_off("mesecons_wireless:wireless_receiver_off")
minetest.register_node("mesecons_wireless:wireless_inverter_off", {
tile_images = {"jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png", "jeija_wireless_inverter_off.png"},
inventory_image = minetest.inventorycube("jeija_wireless_inverter_off.png"),
- material = minetest.digprop_constanttime(0.8),
+ groups = {choppy=2},
drop = 'mesecons_wireless:wireless_inverter_on',
description="Wireless Inverter",
})
@@ -224,7 +224,7 @@ minetest.register_node("mesecons_wireless:wireless_inverter_off", {
minetest.register_node("mesecons_wireless:wireless_inverter_on", {
tile_images = {"jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_tb.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png", "jeija_wireless_inverter_on.png"},
inventory_image = minetest.inventorycube("jeija_wireless_inverter_on.png"),
- material = minetest.digprop_constanttime(0.8),
+ groups = {choppy=2},
description="Wireless Inverter",
})
@@ -278,7 +278,7 @@ end
minetest.register_node("mesecons_wireless:wireless_transmitter_on", {
tile_images = {"jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_on.png", "jeija_wireless_transmitter_on.png", "jeija_wireless_transmitter_on.png", "jeija_wireless_transmitter_on.png"},
inventory_image = minetest.inventorycube("jeija_wireless_transmitter_on.png"),
- material = minetest.digprop_constanttime(0.8),
+ groups = {choppy=2},
drop = {'"mesecons_wireless:wireless_transmitter_off" 1'},
description="Wireless Transmitter",
})
@@ -286,7 +286,7 @@ minetest.register_node("mesecons_wireless:wireless_transmitter_on", {
minetest.register_node("mesecons_wireless:wireless_transmitter_off", {
tile_images = {"jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_tb.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png", "jeija_wireless_transmitter_off.png"},
inventory_image = minetest.inventorycube("jeija_wireless_transmitter_off.png"),
- material = minetest.digprop_constanttime(0.8),
+ groups = {choppy=2},
description="Wireless Transmitter",
})