From 5c2959826eb3b385115d90c57942ef9ff1fdc580 Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 20 Jan 2013 13:01:40 +0100 Subject: [PATCH 1/9] Fix piston bug: up piston pushing sand won't drop the sand anymore --- mesecons_mvps/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua index 9f8242b..9c94757 100644 --- a/mesecons_mvps/init.lua +++ b/mesecons_mvps/init.lua @@ -20,6 +20,7 @@ end function mesecon:mvps_process_stack(stack) -- update mesecons for placed nodes ( has to be done after all nodes have been added ) for _, n in ipairs(stack) do + nodeupdate(n.pos) mesecon.on_placenode(n.pos, minetest.env:get_node(n.pos)) mesecon:update_autoconnect(n.pos) end @@ -57,7 +58,6 @@ function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: directio -- remove all nodes for _, n in ipairs(nodes) do minetest.env:remove_node(n.pos) - nodeupdate(n.pos) end -- update mesecons for removed nodes ( has to be done after all nodes have been removed ) @@ -70,7 +70,6 @@ function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: directio for _, n in ipairs(nodes) do np = mesecon:addPosRule(n.pos, dir) minetest.env:add_node(np, n.node) - nodeupdate(np) end for i in ipairs(nodes) do From baba7de063cbe0ca1e57db7c54e856ce0a1c24e9 Mon Sep 17 00:00:00 2001 From: Jeija Date: Wed, 30 Jan 2013 07:37:08 +0100 Subject: [PATCH 2/9] Fix door compatibility, update to latest version --- mesecons_compatibility/depends.txt | 1 + mesecons_compatibility/init.lua | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/mesecons_compatibility/depends.txt b/mesecons_compatibility/depends.txt index acaa924..ed2fcd8 100644 --- a/mesecons_compatibility/depends.txt +++ b/mesecons_compatibility/depends.txt @@ -1 +1,2 @@ mesecons +doors diff --git a/mesecons_compatibility/init.lua b/mesecons_compatibility/init.lua index b2f793c..451037e 100644 --- a/mesecons_compatibility/init.lua +++ b/mesecons_compatibility/init.lua @@ -43,7 +43,7 @@ function doors:register_door(name, def) end end - local function on_punch(pos, dir, check_name, replace, replace_dir, params) + local function on_rightclick(pos, dir, check_name, replace, replace_dir, params) pos.y = pos.y+dir if not minetest.env:get_node(pos).name == check_name then return @@ -62,11 +62,11 @@ function doors:register_door(name, def) end local function on_mesecons_signal_open (pos, node) - on_punch(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) + on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) end local function on_mesecons_signal_close (pos, node) - on_punch(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) + on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) end local function check_player_priv(pos, player) @@ -99,9 +99,9 @@ function doors:register_door(name, def) after_dig_node(pos, name.."_t_1") end, - on_punch = function(pos, node, puncher) + on_rightclick = function(pos, node, puncher) if check_player_priv(pos, puncher) then - on_punch(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) + on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) end end, @@ -133,9 +133,9 @@ function doors:register_door(name, def) after_dig_node(pos, name.."_t_2") end, - on_punch = function(pos, node, puncher) + on_rightclick = function(pos, node, puncher) if check_player_priv(pos, puncher) then - on_punch(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) + on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) end end, From c23295409bc4a93bc412422cbd354b00c418f8f1 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 4 Feb 2013 15:25:36 -0800 Subject: [PATCH 3/9] Keep vertical wire base from self-intersecting on the bottom. --- mesecons_extrawires/vertical.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index b21ccb7..9832f82 100644 --- a/mesecons_extrawires/vertical.lua +++ b/mesecons_extrawires/vertical.lua @@ -10,8 +10,8 @@ local tbox = { local bbox = { type = "fixed", - fixed = {{ -.5, -.5, -.5, .5, -.5+1/16, .5}, - {-1/16, -.5, -1/16, 1/16, .5 , 1/16}} + fixed = {{ -.5, -.5 , -.5, .5, -.5+1/16, .5}, + {-1/16, -.5+1/16, -1/16, 1/16, .5 , 1/16}} } local vrules = From 74eefc270ab4df6b03a365e0ac91569d470eadbc Mon Sep 17 00:00:00 2001 From: Jeija Date: Sun, 20 Jan 2013 13:01:40 +0100 Subject: [PATCH 4/9] Fix piston drops and craft recipe --- mesecons_compatibility/depends.txt | 1 + mesecons_compatibility/init.lua | 14 +++++++------- mesecons_extrawires/vertical.lua | 4 ++-- mesecons_mvps/init.lua | 3 +-- mesecons_pistons/init.lua | 24 ++++++++++++------------ 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/mesecons_compatibility/depends.txt b/mesecons_compatibility/depends.txt index acaa924..ed2fcd8 100644 --- a/mesecons_compatibility/depends.txt +++ b/mesecons_compatibility/depends.txt @@ -1 +1,2 @@ mesecons +doors diff --git a/mesecons_compatibility/init.lua b/mesecons_compatibility/init.lua index b2f793c..451037e 100644 --- a/mesecons_compatibility/init.lua +++ b/mesecons_compatibility/init.lua @@ -43,7 +43,7 @@ function doors:register_door(name, def) end end - local function on_punch(pos, dir, check_name, replace, replace_dir, params) + local function on_rightclick(pos, dir, check_name, replace, replace_dir, params) pos.y = pos.y+dir if not minetest.env:get_node(pos).name == check_name then return @@ -62,11 +62,11 @@ function doors:register_door(name, def) end local function on_mesecons_signal_open (pos, node) - on_punch(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) + on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) end local function on_mesecons_signal_close (pos, node) - on_punch(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) + on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) end local function check_player_priv(pos, player) @@ -99,9 +99,9 @@ function doors:register_door(name, def) after_dig_node(pos, name.."_t_1") end, - on_punch = function(pos, node, puncher) + on_rightclick = function(pos, node, puncher) if check_player_priv(pos, puncher) then - on_punch(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) + on_rightclick(pos, 1, name.."_t_1", name.."_b_2", name.."_t_2", {1,2,3,0}) end end, @@ -133,9 +133,9 @@ function doors:register_door(name, def) after_dig_node(pos, name.."_t_2") end, - on_punch = function(pos, node, puncher) + on_rightclick = function(pos, node, puncher) if check_player_priv(pos, puncher) then - on_punch(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) + on_rightclick(pos, 1, name.."_t_2", name.."_b_1", name.."_t_1", {3,0,1,2}) end end, diff --git a/mesecons_extrawires/vertical.lua b/mesecons_extrawires/vertical.lua index b21ccb7..9832f82 100644 --- a/mesecons_extrawires/vertical.lua +++ b/mesecons_extrawires/vertical.lua @@ -10,8 +10,8 @@ local tbox = { local bbox = { type = "fixed", - fixed = {{ -.5, -.5, -.5, .5, -.5+1/16, .5}, - {-1/16, -.5, -1/16, 1/16, .5 , 1/16}} + fixed = {{ -.5, -.5 , -.5, .5, -.5+1/16, .5}, + {-1/16, -.5+1/16, -1/16, 1/16, .5 , 1/16}} } local vrules = diff --git a/mesecons_mvps/init.lua b/mesecons_mvps/init.lua index 9f8242b..9c94757 100644 --- a/mesecons_mvps/init.lua +++ b/mesecons_mvps/init.lua @@ -20,6 +20,7 @@ end function mesecon:mvps_process_stack(stack) -- update mesecons for placed nodes ( has to be done after all nodes have been added ) for _, n in ipairs(stack) do + nodeupdate(n.pos) mesecon.on_placenode(n.pos, minetest.env:get_node(n.pos)) mesecon:update_autoconnect(n.pos) end @@ -57,7 +58,6 @@ function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: directio -- remove all nodes for _, n in ipairs(nodes) do minetest.env:remove_node(n.pos) - nodeupdate(n.pos) end -- update mesecons for removed nodes ( has to be done after all nodes have been removed ) @@ -70,7 +70,6 @@ function mesecon:mvps_push(pos, dir, maximum) -- pos: pos of mvps; dir: directio for _, n in ipairs(nodes) do np = mesecon:addPosRule(n.pos, dir) minetest.env:add_node(np, n.node) - nodeupdate(np) end for i in ipairs(nodes) do diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index a51e16e..6222605 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -156,7 +156,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_on_box, selection_box = piston_on_box, @@ -233,7 +233,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_on_box, selection_box = piston_on_box, @@ -305,7 +305,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", mesecons_piston = pistonspec_normal_up, mesecons = {effector={ action_on = piston_on, @@ -326,7 +326,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_up_on_box, selection_box = piston_up_on_box, @@ -381,7 +381,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_sticky_off"}, + drop = "mesecons_pistons:piston_sticky_off", mesecons_piston = pistonspec_sticky_up, mesecons = {effector={ action_on = piston_on, @@ -402,7 +402,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_up_on_box, selection_box = piston_up_on_box, @@ -475,7 +475,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", mesecons_piston = pistonspec_normal_down, mesecons = {effector={ action_on = piston_on, @@ -496,7 +496,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_normal_off"}, + drop = "mesecons_pistons:piston_normal_off", after_dig_node = piston_remove_pusher, node_box = piston_down_on_box, selection_box = piston_down_on_box, @@ -547,7 +547,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", { }, groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_sticky_off"}, + drop = "mesecons_pistons:piston_sticky_off", mesecons_piston = pistonspec_sticky_down, mesecons = {effector={ action_on = piston_on, @@ -568,7 +568,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", { groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", - drop = {"mesecons_pistons:piston_sticky_off"}, + drop = "mesecons_pistons:piston_sticky_off", after_dig_node = piston_remove_pusher, node_box = piston_down_on_box, selection_box = piston_down_on_box, @@ -670,7 +670,7 @@ mesecon:register_mvps_stopper("mesecons_pistons:piston_down_sticky_on", piston_u --craft recipes minetest.register_craft({ - output = '"mesecons_pistons:piston_normal" 2', + output = '"mesecons_pistons:piston_normal_off" 2', recipe = { {"default:wood", "default:wood", "default:wood"}, {"default:cobble", "default:steel_ingot", "default:cobble"}, @@ -679,7 +679,7 @@ minetest.register_craft({ }) minetest.register_craft({ - output = "mesecons_pistons:piston_sticky", + output = "mesecons_pistons:piston_sticky_off", recipe = { {"mesecons_materials:glue"}, {"mesecons_pistons:piston_normal"}, From 43cb2588772df39f401e0a53e5cecd42fdc052ba Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 7 Feb 2013 08:30:15 -0800 Subject: [PATCH 5/9] Make ghoststone conductive. --- mesecons_random/init.lua | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index 4fc2f6e..78c3825 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -31,10 +31,17 @@ minetest.register_node("mesecons_random:ghoststone", { inventory_image = minetest.inventorycube("jeija_ghoststone_inv.png"), groups = {cracky=3}, sounds = default.node_sound_stone_defaults(), - mesecons = {effector = { - action_on = function (pos, node) - minetest.env:add_node(pos, {name="mesecons_random:ghoststone_active"}) - end + mesecons = {conductor = { + state = mesecon.state.off, + rules = { --axes + {x = -1, y = 0, z = 0}, + {x = 1, y = 0, z = 0}, + {x = 0, y = -1, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 0, y = 0, z = -1}, + {x = 0, y = 0, z = 1}, + }, + onstate = "mesecons_random:ghoststone_active" }} }) @@ -44,10 +51,17 @@ minetest.register_node("mesecons_random:ghoststone_active", { walkable = false, diggable = false, sunlight_propagates = true, - mesecons = {effector = { - action_off = function (pos, node) - minetest.env:add_node(pos, {name="mesecons_random:ghoststone"}) - end + mesecons = {conductor = { + state = mesecon.state.on, + rules = { + {x = -1, y = 0, z = 0}, + {x = 1, y = 0, z = 0}, + {x = 0, y = -1, z = 0}, + {x = 0, y = 1, z = 0}, + {x = 0, y = 0, z = -1}, + {x = 0, y = 0, z = 1}, + }, + offstate = "mesecons_random:ghoststone" }} }) From 4714c908ac4a7b1d305deba0f7001cb0f1217d9c Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Fri, 8 Feb 2013 14:18:42 -0500 Subject: [PATCH 6/9] Fix #73 - receiver wire drops down one node when connected button is dug. --- mesecons_receiver/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mesecons_receiver/init.lua b/mesecons_receiver/init.lua index de2b535..24cc5c9 100644 --- a/mesecons_receiver/init.lua +++ b/mesecons_receiver/init.lua @@ -128,8 +128,10 @@ function mesecon:receiver_remove(rcpt_pos, dugnode) local nn = minetest.env:get_node(pos) if string.find(nn.name, "mesecons_receiver:receiver_") ~=nil then minetest.env:dig_node(pos) - minetest.env:place_node(pos, {name = "mesecons:wire_00000000_off"}) + local node = {name = "mesecons:wire_00000000_off"} + minetest.env:add_node(pos, node) mesecon:update_autoconnect(pos) + mesecon.on_placenode(pos, node) end end From 5b5e919683c2932592a7879fba29c4f2f0289e1c Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Fri, 8 Feb 2013 14:36:20 -0500 Subject: [PATCH 7/9] Make load times faster by avoiding inventorycube and wielditem creation in technical blocks such as active wires and various piston orientations. --- mesecons/wires.lua | 4 ++++ mesecons_pistons/init.lua | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/mesecons/wires.lua b/mesecons/wires.lua index d74cdb2..8fb19cb 100644 --- a/mesecons/wires.lua +++ b/mesecons/wires.lua @@ -128,6 +128,10 @@ for zmy=0, 1 do description = "Wire ID:"..nodeid, drawtype = "nodebox", tiles = tiles_on, +-- inventory_image = "wires_inv.png", +-- wield_image = "wires_inv.png", + inventory_image = "jeija_mesecon_off.png", + wield_image = "jeija_mesecon_off.png", paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 6222605..07102b8 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -153,6 +153,8 @@ minetest.register_node("mesecons_pistons:piston_normal_on", { "mesecons_piston_back.png", "mesecons_piston_on_front.png" }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -230,6 +232,8 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", { "mesecons_piston_back.png", "mesecons_piston_on_front.png" }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -303,6 +307,8 @@ minetest.register_node("mesecons_pistons:piston_up_normal_off", { "mesecons_piston_bottom.png", "mesecons_piston_top.png^[transformR180", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_normal_off", @@ -323,6 +329,8 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", { "mesecons_piston_bottom.png", "mesecons_piston_top.png^[transformR180", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -379,6 +387,8 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", { "mesecons_piston_top.png^[transformR180", "mesecons_piston_tb.png" }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_sticky_off", @@ -399,6 +409,8 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", { "mesecons_piston_bottom.png", "mesecons_piston_top.png^[transformR180", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -473,6 +485,8 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_normal_off", @@ -493,6 +507,8 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", @@ -545,6 +561,8 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype2 = "facedir", drop = "mesecons_pistons:piston_sticky_off", @@ -565,6 +583,8 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", { "mesecons_piston_bottom.png^[transformR180", "mesecons_piston_top.png", }, + inventory_image = "mesecons_piston_top.png", + wield_image = "mesecons_piston_top.png", groups = {cracky = 3, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", From fb45ee1d777a486eb973b9406b131223e9d9ab13 Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 8 Feb 2013 16:49:27 -0800 Subject: [PATCH 8/9] Remove ghoststone shadow when active. --- mesecons_random/init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mesecons_random/init.lua b/mesecons_random/init.lua index 78c3825..16ffa3b 100644 --- a/mesecons_random/init.lua +++ b/mesecons_random/init.lua @@ -51,6 +51,7 @@ minetest.register_node("mesecons_random:ghoststone_active", { walkable = false, diggable = false, sunlight_propagates = true, + paramtype = "light", mesecons = {conductor = { state = mesecon.state.on, rules = { @@ -62,7 +63,14 @@ minetest.register_node("mesecons_random:ghoststone_active", { {x = 0, y = 0, z = 1}, }, offstate = "mesecons_random:ghoststone" - }} + }}, + on_construct = function(pos) + --remove shadow + pos2 = {x = pos.x, y = pos.y + 1, z = pos.z} + if ( minetest.env:get_node(pos2).name == "air" ) then + minetest.env:dig_node(pos2) + end + end }) From 536c77330b7628cfdf17223cffa8d78b516f239d Mon Sep 17 00:00:00 2001 From: Anthony Zhang Date: Fri, 8 Feb 2013 19:50:20 -0500 Subject: [PATCH 9/9] Fix sticky piston crafting recipe. --- mesecons_pistons/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 07102b8..08e4e3f 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -690,7 +690,7 @@ mesecon:register_mvps_stopper("mesecons_pistons:piston_down_sticky_on", piston_u --craft recipes minetest.register_craft({ - output = '"mesecons_pistons:piston_normal_off" 2', + output = 'mesecons_pistons:piston_normal_off 2', recipe = { {"default:wood", "default:wood", "default:wood"}, {"default:cobble", "default:steel_ingot", "default:cobble"}, @@ -702,6 +702,6 @@ minetest.register_craft({ output = "mesecons_pistons:piston_sticky_off", recipe = { {"mesecons_materials:glue"}, - {"mesecons_pistons:piston_normal"}, + {"mesecons_pistons:piston_normal_off"}, } })