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..422147d Binary files /dev/null and b/mesecons_whiskers75/textures/whiskers75_andblock_sides.png 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..e7f6a12 Binary files /dev/null and b/mesecons_whiskers75/textures/whiskers75_andblock_top.png differ diff --git a/mesecons_whiskers75/textures/whiskers75andblock.png b/mesecons_whiskers75/textures/whiskers75andblock.png deleted file mode 100644 index 63fc07a..0000000 Binary files a/mesecons_whiskers75/textures/whiskers75andblock.png and /dev/null differ