From 3a1bc021e30d4e63cc29a2e266e01e2fa4b91ca0 Mon Sep 17 00:00:00 2001 From: Whiskers75 - Date: Thu, 21 Jun 2012 17:08:55 +0100 Subject: [PATCH] Added AND block basic code + textures --- mesecons_whiskers75/init.lua | 10 +++++++++- mesecons_whiskers75/textures/Untitled.xcf | Bin 0 -> 821 bytes .../textures/whiskers75andblock.png | Bin 0 -> 242 bytes 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 mesecons_whiskers75/textures/Untitled.xcf create mode 100644 mesecons_whiskers75/textures/whiskers75andblock.png diff --git a/mesecons_whiskers75/init.lua b/mesecons_whiskers75/init.lua index dcb6185..51423cf 100644 --- a/mesecons_whiskers75/init.lua +++ b/mesecons_whiskers75/init.lua @@ -1,5 +1,13 @@ --Whiskers75's code --AND block + +-- Make the block: + +minetest.register_node("mesecons_whiskers75:andblock", { + tile_images = {"whiskers75andblock.png"}, + material = minetest.digprop_constanttime(1), +}) + local update = function(pos) local node = minetest.env:get_node(pos) if node.name=="mesecons_whiskers75:andblock" then @@ -8,4 +16,4 @@ local update = function(pos) 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 --- This SHOULD detect mesecons on x+ or -1 and turn a node y+1 on... \ No newline at end of file +-- This SHOULD detect mesecons on x+ or -1 and turn a node y+1 on... diff --git a/mesecons_whiskers75/textures/Untitled.xcf b/mesecons_whiskers75/textures/Untitled.xcf new file mode 100644 index 0000000000000000000000000000000000000000..87221945966458961649c7c234124da949c79d85 GIT binary patch literal 821 zcmZ`%yH3ME5VR8nArC=#)mJ8kQSu9+h$xWw0Sd>lol{~v*p5g_z997Z2RcgR&J`6u zKtYubS)w3~nLT{O5n-kA&hF0KoqT6=XUwLC#VkHD6~svf;&nh(@i_)cod-oBAV{2lIGhzowd$eBDRorHfqA!+hUb-_CF!(G#Kj!cWu^| zd!aeo*35d^#N{F5t}!qJ@_UvQnBngM$^EzW)7iArf5<|8lngn4Kb4Md3~k?=xZ<}J zGTAON-A)RWGENt;pK&Cmoa2=oujY6y#}B}1Eg5?tvZqhhp|FE9}bsdQ3!KT&-E2?2_)RkBQ$%cPjVyDl&h g3aJ#{S5(hHOn~Bj6))n&A}+@8t_w_rLMol~8>j=xo&W#< literal 0 HcmV?d00001 diff --git a/mesecons_whiskers75/textures/whiskers75andblock.png b/mesecons_whiskers75/textures/whiskers75andblock.png new file mode 100644 index 0000000000000000000000000000000000000000..dc4af0e6043ee77b15e5322c1f9506a1e111bb40 GIT binary patch literal 242 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1SFYWcSQjy#^NA%Cx&(BWL^R}oCO|{#S9GG z!XV7ZFl&wkP>{XE)7O>#4x6X|yVUztFHC?!k|nMYCC>S|xv6<249-QVi6yBi3gww4 z84B*6z5(HleBwYw@t!V@Ar_~T|NQ@N&%CptvysW*j>-JLWk26+KmEgW^MgqhKYyD# z&MwS)mh@=J+WCTJ_CLP1G&Vjwc>cKfzIf9ISN47QtF^EZ*Brw#o+1c=d#Wzp$PzYIal2P literal 0 HcmV?d00001