summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony <azhang9@gmail.com>2013-02-08 17:01:13 -0800
committerAnthony <azhang9@gmail.com>2013-02-08 17:01:13 -0800
commit7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924 (patch)
tree48c40841ea45b3029ee0fb262c1e665046c47c82
parent536c77330b7628cfdf17223cffa8d78b516f239d (diff)
parentfb45ee1d777a486eb973b9406b131223e9d9ab13 (diff)
downloadmesecons-7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924.tar
mesecons-7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924.tar.gz
mesecons-7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924.tar.bz2
mesecons-7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924.tar.xz
mesecons-7cc803b0d7ed3ff4f1b57d78b9523919a9fcd924.zip
Merge pull request #74 from khonkhortisan/eghoststone
Remove ghoststone_active shadow on_construct
-rw-r--r--mesecons_random/init.lua10
1 files changed, 9 insertions, 1 deletions
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
})