diff options
author | Jeija <norrepli@gmail.com> | 2012-08-09 22:42:26 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-08-09 22:42:26 +0200 |
commit | 686e42043014f870496c9c5c2fdffe5db24c8aff (patch) | |
tree | 7d2bba9a0e431ced843e6dacd6d2536b6526265b /mesecons_whiskers75 | |
parent | af3288f61d97cecf217e990477307e93b3f5eb75 (diff) | |
download | mesecons-686e42043014f870496c9c5c2fdffe5db24c8aff.tar mesecons-686e42043014f870496c9c5c2fdffe5db24c8aff.tar.gz mesecons-686e42043014f870496c9c5c2fdffe5db24c8aff.tar.bz2 mesecons-686e42043014f870496c9c5c2fdffe5db24c8aff.tar.xz mesecons-686e42043014f870496c9c5c2fdffe5db24c8aff.zip |
Remove the obsolete AND block - Replacement: Microcontroller
Diffstat (limited to 'mesecons_whiskers75')
-rw-r--r-- | mesecons_whiskers75/depends.txt | 2 | ||||
-rw-r--r-- | mesecons_whiskers75/init.lua | 71 | ||||
-rw-r--r-- | mesecons_whiskers75/textures/whiskers75_andblock_sides.png | bin | 449 -> 0 bytes | |||
-rw-r--r-- | mesecons_whiskers75/textures/whiskers75_andblock_top.png | bin | 684 -> 0 bytes |
4 files changed, 0 insertions, 73 deletions
diff --git a/mesecons_whiskers75/depends.txt b/mesecons_whiskers75/depends.txt deleted file mode 100644 index aca967d..0000000 --- a/mesecons_whiskers75/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -default -mesecons diff --git a/mesecons_whiskers75/init.lua b/mesecons_whiskers75/init.lua deleted file mode 100644 index 584e9f3..0000000 --- a/mesecons_whiskers75/init.lua +++ /dev/null @@ -1,71 +0,0 @@ ---Whiskers75's code ---AND block - --- Make the block: - -minetest.register_node("mesecons_whiskers75:andblock", { - description = "AND block", - drawtype = "nodebox", - tiles = { - "whiskers75_andblock_top.png", - "whiskers75_andblock_sides.png" - }, - inventory_image = {"whiskers75andblock.png"}, - sunlight_propagates = true, - paramtype = 'light', - walkable = true, - groups = {dig_immediate=2}, - material = minetest.digprop_constanttime(1.0), - selection_box = { - type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}, - }, - node_box = { - type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}, - }, -}) - -minetest.register_on_punchnode(function(pos, node, puncher) - if node.name=="mesecons_whiskers75: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) - -minetest.register_on_punchnode(function(pos, node, puncher) - if node.name=="mesecons_whiskers75: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_off" then mesecon:receptor_off({x=pos.x, y=pos.y+1, z=pos.z}) end - if bnode.name=="mesecons:mesecon_off" then mesecon:receptor_off({x=pos.x, y=pos.y+1, z=pos.z}) end - end -end) - -function update(pos, node) - if node.name=="mesecons_whiskers75: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_off" then mesecon:receptor_off({x=pos.x, y=pos.y+1, z=pos.z}) end - if bnode.name=="mesecons:mesecon_off" then mesecon:receptor_off({x=pos.x, y=pos.y+1, z=pos.z}) end - end - - if node.name=="mesecons_whiskers75: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 - - -minetest.register_craft({ - output = '"mesecons_whiskers75:andblock" 2', - recipe = { - {'"default:wood"', '', '"default:dirt"'}, - } -}) - -mesecon:register_on_signal_on(update) -mesecon:register_on_signal_off(update) - diff --git a/mesecons_whiskers75/textures/whiskers75_andblock_sides.png b/mesecons_whiskers75/textures/whiskers75_andblock_sides.png Binary files differdeleted file mode 100644 index ffabb6c..0000000 --- a/mesecons_whiskers75/textures/whiskers75_andblock_sides.png +++ /dev/null diff --git a/mesecons_whiskers75/textures/whiskers75_andblock_top.png b/mesecons_whiskers75/textures/whiskers75_andblock_top.png Binary files differdeleted file mode 100644 index 1b8df25..0000000 --- a/mesecons_whiskers75/textures/whiskers75_andblock_top.png +++ /dev/null |