From 686e42043014f870496c9c5c2fdffe5db24c8aff Mon Sep 17 00:00:00 2001 From: Jeija Date: Thu, 9 Aug 2012 22:42:26 +0200 Subject: [PATCH] Remove the obsolete AND block - Replacement: Microcontroller --- WHISKERS75_README | 9 --- mesecons_whiskers75/depends.txt | 2 - mesecons_whiskers75/init.lua | 71 ------------------ .../textures/whiskers75_andblock_sides.png | Bin 449 -> 0 bytes .../textures/whiskers75_andblock_top.png | Bin 684 -> 0 bytes 5 files changed, 82 deletions(-) delete mode 100644 WHISKERS75_README delete mode 100644 mesecons_whiskers75/depends.txt delete mode 100644 mesecons_whiskers75/init.lua delete mode 100644 mesecons_whiskers75/textures/whiskers75_andblock_sides.png delete mode 100644 mesecons_whiskers75/textures/whiskers75_andblock_top.png diff --git a/WHISKERS75_README b/WHISKERS75_README deleted file mode 100644 index 9d24360..0000000 --- a/WHISKERS75_README +++ /dev/null @@ -1,9 +0,0 @@ -README for Whiskers75's contributions -------------------------------------- - -1: You need Temperest's code enabled (ENABLE_TEMPEREST=1 in settings.lua). -2: To work it, place mesecons (on) in the position x plus or minus 1 from the block. -3: Then punch, and off mesecons in the position y plus or minus 1 from the block will be powered. -4: The AND gate will auto power on, but NOT off, punch to update (help here) -5: The name of the block is mesecons_whiskers75:andblock. -6: Enjoy! 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 deleted file mode 100644 index ffabb6c6c382de97b48f294bca01d6f15dbeac9e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 449 zcmV;y0Y3hTP)K$1RpeI-)>~^4A;=y8dvDk!B0PfVM8wQ+ zQ_L(Pm^mUu@PI%xywbr^`uZUY!G4+VB$K!$Q r-2FI?Ij4x=7eoa9tcX0HPe6VF8OS*8PkSk)00000NkvXXu0mjf7b(Q1 diff --git a/mesecons_whiskers75/textures/whiskers75_andblock_top.png b/mesecons_whiskers75/textures/whiskers75_andblock_top.png deleted file mode 100644 index 1b8df25463247e3fa2e80b603c9e7eb78974a2bd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 684 zcmV;d0#p5oP)|y-GAO6o#LiWM+zO zM5ohQyaG$FV6j$9t(MisE3oheL{>%CQdnCnI|Z*{ds|^xkp0PICX;-{Vi3MSnnT`m zo^#F{H6D*6K#Y+r%ZM@3bsb76PESt(czSw5YmJCttxfNYF-VqWIOhll)`= z5(Au_oiU%!S*=#Y7_rvkoa6iZ8wnv0Lcm%JfcKuZZFzWjpsFgWs$w)6VT>V!fH8)q zY3RD{m%@-`SqdnnD2f7r<#Neyd)|9O2*eo4^E|~(jFF~kFvg&iLMes!9%Bq|Z*M52 z$nzZMT%rgeq#~wmTa;3%3c%LZ7AGesX$F(YgxPF{)|#ei$n!iA2|$)*oS&bQWf?#c z-`v~)aCCHpbB?a-Xxo;-V1RQD5kY-@eZ^j{M_HBt+~41`y}ixh;b9{9`1oKtogyL( z1_J=9s$#iZt_l7g?|l-FMk4^G(<#H@Ftzyi$ou;{lgR{t+uK`2gr;c#*xA_uU^pCd zcXx-@n#adS0G^+pd3kw3jmP6?twltLF(M*tY;16RdnppvyX@`lC88K3T5A@I z#X3P<*J%?XLI~kMROcK;QDBTocAw2=NKq7Nw*Xpey!U9W>G%8e`+Y=&&CSh}?04l# zDUA0Xk@YM?2ua+wExle30Bdcsab4FKW6~9Xx~|uz5J_&lxVWG!OUkn3^70Z9q3b$~ zG0BDAd-VSP{#Dm?c<)&(7K9L(&*yx8esXYd0KoP2b^04^+w$}CgS8f|HU9u+zhhKF SKT|UR0000