summaryrefslogtreecommitdiff
path: root/mesecons_whiskers75
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-06-21 18:42:31 +0200
committerJeija <norrepli@gmail.com>2012-06-21 18:42:31 +0200
commit2c36520a91c21f6f6f9a02ab56a6107bbdce2697 (patch)
tree981499b3a2c8877266c1f9a6df0b92263dcd49a8 /mesecons_whiskers75
parent730537f01320c7278b59cccf1b70959ba9569488 (diff)
parentbd3bd4cf48914f505710bc9b2e16d6de47c2b618 (diff)
downloadmesecons-2c36520a91c21f6f6f9a02ab56a6107bbdce2697.tar
mesecons-2c36520a91c21f6f6f9a02ab56a6107bbdce2697.tar.gz
mesecons-2c36520a91c21f6f6f9a02ab56a6107bbdce2697.tar.bz2
mesecons-2c36520a91c21f6f6f9a02ab56a6107bbdce2697.tar.xz
mesecons-2c36520a91c21f6f6f9a02ab56a6107bbdce2697.zip
Merge branch 'master' of https://github.com/Jeija/minetest-mod-mesecons
Diffstat (limited to 'mesecons_whiskers75')
-rw-r--r--mesecons_whiskers75/init.lua20
-rw-r--r--mesecons_whiskers75/textures/Untitled.xcfbin0 -> 821 bytes
-rw-r--r--mesecons_whiskers75/textures/whiskers75andblock.pngbin0 -> 242 bytes
3 files changed, 18 insertions, 2 deletions
diff --git a/mesecons_whiskers75/init.lua b/mesecons_whiskers75/init.lua
index dcb6185..7fb7a70 100644
--- a/mesecons_whiskers75/init.lua
+++ b/mesecons_whiskers75/init.lua
@@ -1,5 +1,20 @@
--Whiskers75's code
--AND block
+
+-- Make the block:
+
+minetest.register_node ("mesecons_whiskers75:andblock", {
+ drawtype = signlike,
+ description = "AND block",
+ 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),
+ })
+
local update = function(pos)
local node = minetest.env:get_node(pos)
if node.name=="mesecons_whiskers75:andblock" then
@@ -7,5 +22,6 @@ local update = function(pos)
if lnode.name=="mesecons:mesecon_on" then set_node_on({x=pos.x, y=pos.y+1, z=pos.z}) end
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
+ end
+end
+-- 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