From 8578fd89c859162bda64af48826b7c1ae1c9e744 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sat, 8 Dec 2012 19:02:34 +0100 Subject: Port lightstones (as reference for effectors) + blinky plant to the new nodedef system --- mesecons_blinkyplant/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mesecons_blinkyplant') diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index 145467e..9571359 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -13,6 +13,9 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_off", { type = "fixed", fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1}, }, + mesecons = {receptor = { + state = mesecon.state.off + }} }) minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { @@ -30,6 +33,9 @@ minetest.register_node("mesecons_blinkyplant:blinky_plant_on", { type = "fixed", fixed = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1}, }, + mesecons = {receptor = { + state = mesecon.state.on + }} }) minetest.register_craft({ -- cgit v1.2.3 From a55874b5d2d66b8fc2baa7c9514c41df68ec6049 Mon Sep 17 00:00:00 2001 From: Jeija Date: Mon, 10 Dec 2012 22:05:13 +0100 Subject: Fix blinky plant bug (crash when placing mesecon next to it) --- mesecons_blinkyplant/init.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'mesecons_blinkyplant') diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index 9571359..853354d 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -70,6 +70,3 @@ minetest.register_abm({ mesecon:receptor_off(pos) end, }) - -mesecon:add_receptor_node("mesecons_blinkyplant:blinky_plant_on") -mesecon:add_receptor_node_off("mesecons_blinkyplant:blinky_plant_off") -- cgit v1.2.3