diff options
author | Whiskers75 - <whiskers75@yopmail.com> | 2012-06-22 17:49:26 +0100 |
---|---|---|
committer | Whiskers75 - <whiskers75@yopmail.com> | 2012-06-22 17:49:26 +0100 |
commit | 39ed74bef70d3b038c32c948546da3e5f2bbe8af (patch) | |
tree | 3daf017a839bc4870bb18ef6cd643b674b70ae58 /mesecons_temperest | |
parent | 51539ef173d3cf5175ed2571c880248027fa2fa0 (diff) | |
download | mesecons-39ed74bef70d3b038c32c948546da3e5f2bbe8af.tar mesecons-39ed74bef70d3b038c32c948546da3e5f2bbe8af.tar.gz mesecons-39ed74bef70d3b038c32c948546da3e5f2bbe8af.tar.bz2 mesecons-39ed74bef70d3b038c32c948546da3e5f2bbe8af.tar.xz mesecons-39ed74bef70d3b038c32c948546da3e5f2bbe8af.zip |
AND block changed! Now in its own dir. Also, auto power on (NOT off) has been added.
Diffstat (limited to 'mesecons_temperest')
-rw-r--r-- | mesecons_temperest/init.lua | 25 | ||||
-rw-r--r-- | mesecons_temperest/textures/whiskers75andblock.png | bin | 364 -> 0 bytes |
2 files changed, 0 insertions, 25 deletions
diff --git a/mesecons_temperest/init.lua b/mesecons_temperest/init.lua index 9725672..08b3eb5 100644 --- a/mesecons_temperest/init.lua +++ b/mesecons_temperest/init.lua @@ -243,29 +243,4 @@ if ENABLE_TEMPEREST==1 then }) end ---End Temperest's code ---Whiskers75's code ---AND block - --- Make the block: - -minetest.register_node("mesecons_temperest:andblock", { - description = "AND block", - drawtype = "raillike", - 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), -}) - -minetest.register_on_punchnode(function(pos, node, puncher) - if node.name=="mesecons_temperest:andblock" then - anode = minetest.env:get_node({x=pos.x-1, y=pos.y, z=pos.z}) - bnode = minetest.env:get_node({x=pos.x+1, y=pos.y, z=pos.z}) - if anode.name=="mesecons:mesecon_on" and bnode.name=="mesecons:mesecon_on" then mesecon:receptor_on({x=pos.x, y=pos.y+1, z=pos.z}) end - end -end) diff --git a/mesecons_temperest/textures/whiskers75andblock.png b/mesecons_temperest/textures/whiskers75andblock.png Binary files differdeleted file mode 100644 index 63fc07a..0000000 --- a/mesecons_temperest/textures/whiskers75andblock.png +++ /dev/null |