diff options
author | Whiskers75 - <whiskers75@yopmail.com> | 2012-06-21 18:54:35 +0100 |
---|---|---|
committer | Whiskers75 - <whiskers75@yopmail.com> | 2012-06-21 18:54:35 +0100 |
commit | 28bca749be9779dcb483ca29f1c2855aad1f0bcb (patch) | |
tree | 8136c32b70d949989d3b8b3d25487955480cbd15 /mesecons_whiskers75/init.lua | |
parent | bd3bd4cf48914f505710bc9b2e16d6de47c2b618 (diff) |
AND block works! (YIPPEE!!!) See WHISKERS75_README.
Diffstat (limited to 'mesecons_whiskers75/init.lua')
-rw-r--r-- | mesecons_whiskers75/init.lua | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/mesecons_whiskers75/init.lua b/mesecons_whiskers75/init.lua deleted file mode 100644 index 7fb7a70..0000000 --- a/mesecons_whiskers75/init.lua +++ /dev/null @@ -1,27 +0,0 @@ ---Whiskers75's code
---AND block
-
--- Make the block:
-
-minetest.register_node ("mesecons_whiskers75:andblock", {
- drawtype = signlike,
- description = "AND block",
- tile_images = {"whiskers75andblock.png"},
- inventory_image = {"whiskers75andblock.png"},
- sunlight_propagates = true,
- paramtype = 'light',
- walkable = true,
- groups = {dig_immediate=2},
- material = minetest.digprop_constanttime(1.0),
- })
-
-local update = function(pos)
- local node = minetest.env:get_node(pos)
- if node.name=="mesecons_whiskers75:andblock" then
- lnode = minetest.env:get_node({x=pos.x-1, y=pos.y, z=pos.z})
- if lnode.name=="mesecons:mesecon_on" then set_node_on({x=pos.x, y=pos.y+1, z=pos.z}) end
- lnode = minetest.env:get_node({x=pos.x+1, y=pos.y, z=pos.z})
- if lnode.name=="mesecons:mesecon_on" then set_node_on({x=pos.x, y=pos.y+1, z=pos.z}) end
- end
-end
--- This SHOULD detect mesecons on x+ or -1 and turn a node y+1 on...
|