summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2012-08-07 02:31:50 -0700
committersfan5 <sfan5@live.de>2012-08-07 02:31:50 -0700
commit31c01b04250cce421b5f66d247c1068a295836bc (patch)
treef70c5530c931e8ce094142c5124666fcbcf644dc
parent9453e9ac07e44fcbfc6cbcce2c43540146537ac0 (diff)
parent43ca4435107ac195b3da58b9495251f9750737ef (diff)
downloadmesecons-31c01b04250cce421b5f66d247c1068a295836bc.tar
mesecons-31c01b04250cce421b5f66d247c1068a295836bc.tar.gz
mesecons-31c01b04250cce421b5f66d247c1068a295836bc.tar.bz2
mesecons-31c01b04250cce421b5f66d247c1068a295836bc.tar.xz
mesecons-31c01b04250cce421b5f66d247c1068a295836bc.zip
Merge pull request #10 from VanessaE/master
More tweaks :-)
-rw-r--r--mesecons_whiskers75/init.lua15
-rw-r--r--mesecons_whiskers75/textures/whiskers75_andblock_sides.pngbin0 -> 449 bytes
-rw-r--r--mesecons_whiskers75/textures/whiskers75_andblock_top.pngbin0 -> 684 bytes
-rw-r--r--mesecons_whiskers75/textures/whiskers75andblock.pngbin364 -> 0 bytes
4 files changed, 13 insertions, 2 deletions
diff --git a/mesecons_whiskers75/init.lua b/mesecons_whiskers75/init.lua
index 15e4785..584e9f3 100644
--- a/mesecons_whiskers75/init.lua
+++ b/mesecons_whiskers75/init.lua
@@ -5,14 +5,25 @@
minetest.register_node("mesecons_whiskers75:andblock", {
description = "AND block",
- drawtype = "raillike",
- tile_images = {"whiskers75andblock.png"},
+ 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)
diff --git a/mesecons_whiskers75/textures/whiskers75_andblock_sides.png b/mesecons_whiskers75/textures/whiskers75_andblock_sides.png
new file mode 100644
index 0000000..ffabb6c
--- /dev/null
+++ b/mesecons_whiskers75/textures/whiskers75_andblock_sides.png
Binary files differ
diff --git a/mesecons_whiskers75/textures/whiskers75_andblock_top.png b/mesecons_whiskers75/textures/whiskers75_andblock_top.png
new file mode 100644
index 0000000..1b8df25
--- /dev/null
+++ b/mesecons_whiskers75/textures/whiskers75_andblock_top.png
Binary files differ
diff --git a/mesecons_whiskers75/textures/whiskers75andblock.png b/mesecons_whiskers75/textures/whiskers75andblock.png
deleted file mode 100644
index 63fc07a..0000000
--- a/mesecons_whiskers75/textures/whiskers75andblock.png
+++ /dev/null
Binary files differ