From ed9deb3235c3ec5b8a1fc34009649d75951d0fea Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Mon, 31 Dec 2018 11:30:06 +0100 Subject: [PATCH] lattice block added --- tubelib_stairway/init.lua | 45 +++++++++++++++++- .../textures/tubelib_stairway_grating.png | Bin 628 -> 0 bytes .../textures/tubelib_stairway_lattice.png | Bin 0 -> 439 bytes 3 files changed, 43 insertions(+), 2 deletions(-) delete mode 100644 tubelib_stairway/textures/tubelib_stairway_grating.png create mode 100644 tubelib_stairway/textures/tubelib_stairway_lattice.png 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 6a0776e68cb823315d41e9da9944c0eacb09ffda..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 628 zcmV-)0*n2LP)Px#32;bRa{vGf6951U69E94oEQKA05DKYR7L3M=<)IK z+S=Ot`}_0r^J;2p&d$!{$ktK*E z8m%~SIuv1UZA7#i-wSrY4+D#fQQ(Ed*$jr#|rR+BmF zIbD5a+dgs2)EP{zXJL;#2d9Y_EG010qNS#tmY3ljhU3ljkVnw%H_000McNliru z;tU@O0}h+eLGu6r0RTxvK~yNuO;J0l#4rq;CQTY&Esa1pg-;U@Z!eKXVD`bLda&%N z(ioOBdGaTp6hRtBqmc)rM3#w2gqHM(4=5>3JNrqPCYd(Ggxg17_-(lQEeQ>MVAlo(2H@ literal 0 HcmV?d00001