summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWhiskers75 - <whiskers75@yopmail.com>2012-06-21 17:08:55 +0100
committerWhiskers75 - <whiskers75@yopmail.com>2012-06-21 17:08:55 +0100
commit3a1bc021e30d4e63cc29a2e266e01e2fa4b91ca0 (patch)
tree54ca3f65ed7ed617696e2fcae27acd0e73b1b766
parent11ae41f1192d798d713a34c437cd667711241ae3 (diff)
downloadmesecons-3a1bc021e30d4e63cc29a2e266e01e2fa4b91ca0.tar
mesecons-3a1bc021e30d4e63cc29a2e266e01e2fa4b91ca0.tar.gz
mesecons-3a1bc021e30d4e63cc29a2e266e01e2fa4b91ca0.tar.bz2
mesecons-3a1bc021e30d4e63cc29a2e266e01e2fa4b91ca0.tar.xz
mesecons-3a1bc021e30d4e63cc29a2e266e01e2fa4b91ca0.zip
Added AND block basic code + textures
-rw-r--r--mesecons_whiskers75/init.lua10
-rw-r--r--mesecons_whiskers75/textures/Untitled.xcfbin0 -> 821 bytes
-rw-r--r--mesecons_whiskers75/textures/whiskers75andblock.pngbin0 -> 242 bytes
3 files changed, 9 insertions, 1 deletions
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 0000000..8722194
--- /dev/null
+++ b/mesecons_whiskers75/textures/Untitled.xcf
Binary files differ
diff --git a/mesecons_whiskers75/textures/whiskers75andblock.png b/mesecons_whiskers75/textures/whiskers75andblock.png
new file mode 100644
index 0000000..dc4af0e
--- /dev/null
+++ b/mesecons_whiskers75/textures/whiskers75andblock.png
Binary files differ