File tree 1 file changed +10
-15
lines changed
1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -77,26 +77,21 @@ minetest.register_craft({
77
77
}
78
78
})
79
79
80
- minetest .register_abm (
81
- {nodenames = {" mesecons_blinkyplant:blinky_plant_off" },
80
+ minetest .register_abm ({
81
+ nodenames = {
82
+ " mesecons_blinkyplant:blinky_plant_off" ,
83
+ " mesecons_blinkyplant:blinky_plant_on"
84
+ },
82
85
interval = BLINKY_PLANT_INTERVAL ,
83
86
chance = 1 ,
84
87
action = function (pos , node , active_object_count , active_object_count_wider )
85
- -- minetest.remove_node(pos)
86
- minetest .add_node (pos , {name = " mesecons_blinkyplant:blinky_plant_on" })
88
+ if node .name == " mesecons_blinkyplant:blinky_plant_off" then
89
+ minetest .add_node (pos , {name = " mesecons_blinkyplant:blinky_plant_on" })
90
+ else
91
+ minetest .add_node (pos , {name = " mesecons_blinkyplant:blinky_plant_off" })
92
+ end
87
93
nodeupdate (pos )
88
94
mesecon :receptor_on (pos )
89
95
end ,
90
96
})
91
97
92
- minetest .register_abm ({
93
- nodenames = {" mesecons_blinkyplant:blinky_plant_on" },
94
- interval = BLINKY_PLANT_INTERVAL ,
95
- chance = 1 ,
96
- action = function (pos , node , active_object_count , active_object_count_wider )
97
- -- minetest.remove_node(pos)
98
- minetest .add_node (pos , {name = " mesecons_blinkyplant:blinky_plant_off" })
99
- nodeupdate (pos )
100
- mesecon :receptor_off (pos )
101
- end ,
102
- })
You can’t perform that action at this time.
0 commit comments