From b93ec107d732ebf23f2b567ff3a3baf68eb8680f Mon Sep 17 00:00:00 2001 From: kilbith Date: Tue, 12 May 2015 16:44:16 +0200 Subject: [PATCH] Add garden lattices --- homedecor/crafts.lua | 36 ++++++++++++++++++ homedecor/exterior.lua | 31 +++++++++++++++ homedecor/textures/homedecor_lattice.png | Bin 0 -> 783 bytes .../textures/homedecor_lattice_vegetal.png | Bin 0 -> 3077 bytes 4 files changed, 67 insertions(+) create mode 100644 homedecor/textures/homedecor_lattice.png create mode 100644 homedecor/textures/homedecor_lattice_vegetal.png diff --git a/homedecor/crafts.lua b/homedecor/crafts.lua index 6de39e82..41256cd9 100644 --- a/homedecor/crafts.lua +++ b/homedecor/crafts.lua @@ -3262,6 +3262,42 @@ minetest.register_craft({ recipe = {"default:goldblock", "default:sword_mese"} }) +minetest.register_craft({ + output = "homedecor:lattice_wood 8", + recipe = { + {"group:stick", "group:wood", "group:stick"}, + {"group:wood", "", "group:wood"}, + {"group:stick", "group:wood", "group:stick"}, + }, +}) + +minetest.register_craft({ + output = "homedecor:lattice_white_wood 8", + recipe = { + {"group:stick", "group:wood", "group:stick"}, + {"group:wood", "dye:white", "group:wood"}, + {"group:stick", "group:wood", "group:stick"}, + }, +}) + +minetest.register_craft({ + output = "homedecor:lattice_wood_vegetal 8", + recipe = { + {"group:stick", "group:wood", "group:stick"}, + {"group:wood", "group:leaves", "group:wood"}, + {"group:stick", "group:wood", "group:stick"}, + }, +}) + +minetest.register_craft({ + output = "homedecor:lattice_white_wood_vegetal 8", + recipe = { + {"group:stick", "group:wood", "group:stick"}, + {"group:wood", "group:leaves", "group:wood"}, + {"group:stick", "dye:white", "group:stick"}, + }, +}) + for i in ipairs(homedecor.banister_materials) do local name = homedecor.banister_materials[i][1] diff --git a/homedecor/exterior.lua b/homedecor/exterior.lua index 6006411e..9bd3d05c 100644 --- a/homedecor/exterior.lua +++ b/homedecor/exterior.lua @@ -180,6 +180,37 @@ homedecor.register("stonepath", { sounds = default.node_sound_stone_defaults(), }) +local lattice_colors = { + {"wood", ".png^[colorize:#704214:180"}, + {"white_wood", ".png"}, + {"wood_vegetal", ".png^[colorize:#704214:180^homedecor_lattice_vegetal.png"}, + {"white_wood_vegetal", ".png^homedecor_lattice_vegetal.png"}, +} + +for _, m in ipairs(lattice_colors) do +homedecor.register("lattice_"..m[1], { + description = "Garden Lattice ("..m[1]..")", + tiles = {"homedecor_lattice"..m[2]}, + inventory_image = "homedecor_lattice"..m[2], + groups = { snappy=3 }, + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, 0.47, 0.5, 0.5, 0.47}, -- NodeBox1 + {-0.5, 0.422, 0.44, 0.5, 0.5, 0.5}, -- NodeBox2 + {-0.5, -0.5, 0.44, 0.5, -0.422, 0.5}, -- NodeBox3 + {0.422, -0.5, 0.44, 0.5, 0.5, 0.5}, -- NodeBox4 + {-0.5, -0.5, 0.44, -0.422, 0.5, 0.5} -- NodeBox5 + } + }, + selection_box = { + type = "fixed", + fixed = {-0.5, -0.5, 0.44, 0.5, 0.5, 0.5} + }, + sounds = default.node_sound_wood_defaults(), +}) +end + homedecor.register("swing", { description = "Tree's swing", tiles = { diff --git a/homedecor/textures/homedecor_lattice.png b/homedecor/textures/homedecor_lattice.png new file mode 100644 index 0000000000000000000000000000000000000000..dacc251785e5812de2e4d5d8851f90b8005a4b39 GIT binary patch literal 783 zcmV+q1MvKbP)FLYM%ec6>%*@Pqd3yT# z`o_k_@$vE9-QD^7`jC;6kCBk->gu|>x`~R6fPjGR?(XH~<;cj$;Nak~v9a^>^C1i) z9{>OV0d!JMQvg8b*k%9#0#r#vK~z}7#g~DO(=ZH%T{pShE>0H60<6$>ldSN@*(_SL2SNpqU7DWz?@&9?}( z5b+`;{CyPaizx4VExE4%_18#@t;K%DM-VsJbKXlXyeia8$cwo01}-gLVPqH!gPE5^ z1;3m*{NjI(5Q2X@&dVauy(c*P;OU)vo?MtD<`ck}zB7v8GnI|+9P2Qq74^Kc1n_h| z*2lD>9wR!wF-^}L^UI6WhqR(WGV4j|_~8?m$F!ooO=8`H>+h%OBfx-uo+d#d^!&a4 zh3g!jpT=}}G>A^?r_;p{;P;H1$qy8TC704{ejq6LlIdpi13|&(J>P78ASif3N;W?b^iSRo z6!p1~@w}kuBH82ziY~S0o6Qdty)S+#Hb3Yn{>!6pq5ppLrN46Y{RWY#SF9D(F_8cO N002ovPDHLkV1mI8jcNb@ literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_lattice_vegetal.png b/homedecor/textures/homedecor_lattice_vegetal.png new file mode 100644 index 0000000000000000000000000000000000000000..b188ec6abf8f1596967fe85499819939bd29a924 GIT binary patch literal 3077 zcmV+g4EpnlP)iElUw0Hwr;bCO2XgF*hSWO(#H2En9moL2nm6VjMS6AU;wfDnkuGO)fr5Eg?8GGDnV5%CqoV~L>@_1G(JWrFh?9CJP#&Z1t~cQHdq%n zSQ$829AA1sQFttSk!B!12`4fSBvS@9VhuJ{4Zy z8$v@VK2;|{O)*4gAt^x@ElUVGZW10h2|-3NCrb`TY9>5DD?CsrH&+ftW+_T=Conr2 zBSjP>JPAQy9y47IE=>zUN-jHS7BWp08#x9*WgIV21~g9}IYuQSG6^L#5Rj~GI8Pu% zQZqP17dBQDPgOh|KLAEkDlv8kbc9zzXCOvNHHxckQE?w}f>BU!Cv$pPO;0O3YZDwW z11w7sJY5_WL<&4+6g+nhg_UnEXAMz$B4>h3L0ua}T`6pcQ9WKBO@|;SDil~#O>K)( zTUSmzdQYJ4&8!k!{95VzaWdaye0&$2}JytP1J}pLIEI@7|L}eg2 zSRhA38!uNHJ!TmsGYl+R2O~=dCPfB0c?BRs13_B=bBSSTiBnZeN??dROH4OTOEXAn zD>FPQLsc9$MHfYM3?C&5Gf@OGZ~$b7Mn^v|F=8DqbQKw21u;GafNxt`VNO(7M^8~g zS%p1Lgef#vDKJYYG-?%6Z3#JJ1csz?dX-agh(B6kDockH&@z2Q0001&bW%=J00;yS z4Hyd)D;ow^CTvb9BK~b(9yl{E9f3$9{?*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