@@ -5,7 +5,8 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant", {
5
5
tiles = {" jeija_blinky_plant_off.png" },
6
6
inventory_image = " jeija_blinky_plant_off.png" ,
7
7
walkable = false ,
8
- groups = {snappy = 3 , not_in_creative_inventory = 1 },
8
+ groups = {dig_immediate = 3 , not_in_creative_inventory = 1 },
9
+ drop = " mesecons_blinkyplant:blinky_plant_off 1" ,
9
10
description = " Deactivated Blinky Plant" ,
10
11
sounds = default .node_sound_leaves_defaults (),
11
12
selection_box = {
@@ -15,7 +16,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant", {
15
16
mesecons = {receptor = {
16
17
state = mesecon .state .off
17
18
}},
18
- on_punch = function (pos , node , puncher )
19
+ on_rightclick = function (pos , node , clicker )
19
20
minetest .set_node (pos , {name = " mesecons_blinkyplant:blinky_plant_off" })
20
21
end
21
22
})
@@ -27,8 +28,8 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", {
27
28
inventory_image = " jeija_blinky_plant_off.png" ,
28
29
paramtype = " light" ,
29
30
walkable = false ,
30
- groups = {snappy = 3 , mesecon = 2 },
31
- description = " Blinky Plant" ,
31
+ groups = {dig_immediate = 3 , mesecon = 2 },
32
+ description = " Blinky Plant" ,
32
33
sounds = default .node_sound_leaves_defaults (),
33
34
selection_box = {
34
35
type = " fixed" ,
@@ -37,7 +38,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", {
37
38
mesecons = {receptor = {
38
39
state = mesecon .state .off
39
40
}},
40
- on_punch = function (pos , node , puncher )
41
+ on_rightclick = function (pos , node , clicker )
41
42
minetest .set_node (pos , {name = " mesecons_blinkyplant:blinky_plant" })
42
43
end
43
44
})
@@ -49,7 +50,7 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
49
50
inventory_image = " jeija_blinky_plant_off.png" ,
50
51
paramtype = " light" ,
51
52
walkable = false ,
52
- groups = {snappy = 3 , not_in_creative_inventory = 1 , mesecon = 2 },
53
+ groups = {dig_immediate = 3 , not_in_creative_inventory = 1 , mesecon = 2 },
53
54
drop = " mesecons_blinkyplant:blinky_plant_off 1" ,
54
55
light_source = LIGHT_MAX - 7 ,
55
56
description = " Blinky Plant" ,
@@ -61,9 +62,9 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", {
61
62
mesecons = {receptor = {
62
63
state = mesecon .state .on
63
64
}},
64
- on_punch = function (pos , node , puncher )
65
- minetest .swap_node (pos , {name = " mesecons_blinkyplant:blinky_plant" })
66
- mesecon :receptor_off (pos )
65
+ on_rightclick = function (pos , node , clicker )
66
+ minetest .set_node (pos , {name = " mesecons_blinkyplant:blinky_plant" })
67
+ mesecon :receptor_off (pos )
67
68
end
68
69
})
69
70
0 commit comments