diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2012-08-07 05:08:12 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2012-08-07 05:08:12 -0400 |
commit | e73dde5a03a835351a95930269e048d26aefd04a (patch) | |
tree | cc98b1b4c0e390447166eb9d6e5a7be2c41e5bd3 /mesecons_whiskers75/init.lua | |
parent | 6aa2f2d5be7b1129665e91e833a5e143e7a522b6 (diff) |
New textures for Whiskers75's andblock, turned it into a nodebox using the
definitions from the delayers.
Diffstat (limited to 'mesecons_whiskers75/init.lua')
-rw-r--r-- | mesecons_whiskers75/init.lua | 15 |
1 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) |