summaryrefslogtreecommitdiff
path: root/mesecons_whiskers75
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_whiskers75')
-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