diff options
author | Jeija <norrepli@gmail.com> | 2012-12-09 00:42:30 +0100 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-12-09 00:42:30 +0100 |
commit | b37bdbf55cf6d3205d5dd7a2491a8bd855cbbd76 (patch) | |
tree | ffc05ac9f096fc635535701cd287d4e5ad6b5073 /mesecons_solarpanel/init.lua | |
parent | cf6080f7237af1c55a6d80bea4725dcb5c8cb1eb (diff) |
Port a lot more (basically everything apart from gates, pistons and extrawire crossing) to the new nodedef system. There are some problems with wall button and wall lever (in the way they visually connect to wires)
Diffstat (limited to 'mesecons_solarpanel/init.lua')
-rw-r--r-- | mesecons_solarpanel/init.lua | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/mesecons_solarpanel/init.lua b/mesecons_solarpanel/init.lua index 343dee1..b8f3ac0 100644 --- a/mesecons_solarpanel/init.lua +++ b/mesecons_solarpanel/init.lua @@ -21,8 +21,10 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", { wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 }, }, drop = "mesecons_solarpanel:solar_panel_off", - groups = {dig_immediate=3, mesecon = 2, not_in_creative_inventory = 1}, - description="Solar Panel", + groups = {dig_immediate=3, not_in_creative_inventory = 1}, + mesecons = {receptor = { + state = mesecon.state.on + }} }) -- Solar Panel @@ -47,8 +49,11 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", { wall_top = { -7/16, 7/16, -7/16, 7/16, 8/16, 7/16 }, wall_side = { -8/16, -7/16, -7/16, -7/16, 7/16, 7/16 }, }, - groups = {dig_immediate=3, mesecon = 2}, + groups = {dig_immediate=3}, description="Solar Panel", + mesecons = {receptor = { + state = mesecon.state.off + }} }) minetest.register_craft({ @@ -86,6 +91,3 @@ minetest.register_abm( end end, }) - -mesecon:add_receptor_node("mesecons_solarpanel:solar_panel_on") -mesecon:add_receptor_node_off("mesecons_solarpanel:solar_panel_off") |