diff --git a/tubelib_stairway/init.lua b/tubelib_stairway/init.lua index 6052103..25fb064 100644 --- a/tubelib_stairway/init.lua +++ b/tubelib_stairway/init.lua @@ -186,8 +186,8 @@ minetest.register_node("tubelib_stairway:stairway", { selection_box = { type = "fixed", fixed = { - {-17/32, -1/32, -1/32, 17/32, 1/32, 17/32}, - {-17/32, -17/32, -17/32, 17/32, -15/32, 1/32}, + {-16/32, -18/32, -16/32, 16/32, -12/32, 0/32}, + {-16/32, -18/32, 0/32, 16/32, 2/32, 16/32}, }, }, @@ -263,6 +263,38 @@ minetest.register_node("tubelib_stairway:ladder2", { sounds = default.node_sound_metal_defaults(), }) +minetest.register_node("tubelib_stairway:lattice", { + description = "Tubelib Lattice", + tiles = { + 'tubelib_stairway_lattice.png', + }, + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-8/16, -8/16, -8/16, -7/16, 8/16, 8/16}, + { 7/16, -8/16, -8/16, 8/16, 8/16, 8/16}, + {-8/16, -8/16, -8/16, 8/16, -7/16, 8/16}, + {-8/16, 7/16, -8/16, 8/16, 8/16, 8/16}, + {-8/16, -8/16, -8/16, 8/16, 8/16, -7/16}, + {-8/16, -8/16, 7/16, 8/16, 8/16, 8/16}, + }, + }, + + selection_box = { + type = "fixed", + fixed = {-8/16, -8/16, -8/16, 8/16, 8/16, 8/16}, + }, + + paramtype2 = "facedir", + paramtype = "light", + sunlight_propagates = true, + is_ground_content = false, + groups = {cracky = 2}, + sounds = default.node_sound_metal_defaults(), +}) + + minetest.register_craft({ output = "tubelib_stairway:bridge1 2", recipe = { @@ -299,6 +331,15 @@ minetest.register_craft({ }, }) +minetest.register_craft({ + output = "tubelib_stairway:lattice 2", + recipe = { + {"default:steel_ingot", "", "default:steel_ingot"}, + {"dye:dark_grey", "default:tin_ingot", "default:coal_lump"}, + {"default:steel_ingot", "", "default:steel_ingot"}, + }, +}) + minetest.register_craft({ output = "tubelib_stairway:ladder2", recipe = {{"tubelib_stairway:ladder1"}}, diff --git a/tubelib_stairway/textures/tubelib_stairway_grating.png b/tubelib_stairway/textures/tubelib_stairway_grating.png deleted file mode 100644 index 6a0776e..0000000 Binary files a/tubelib_stairway/textures/tubelib_stairway_grating.png and /dev/null differ diff --git a/tubelib_stairway/textures/tubelib_stairway_lattice.png b/tubelib_stairway/textures/tubelib_stairway_lattice.png new file mode 100644 index 0000000..99008b4 Binary files /dev/null and b/tubelib_stairway/textures/tubelib_stairway_lattice.png differ