From 1bcad5b0654a742da93c148dbb0c8f3d5b211059 Mon Sep 17 00:00:00 2001 From: albel4 Date: Mon, 23 Dec 2019 12:31:16 +0300 Subject: [PATCH 1/2] add canopy --- mods/lord_homedecor/building_blocks.lua | 29 ++++++++++++++++++ mods/lord_homedecor/locale/ru.txt | 1 + .../textures/building_blocks_canopy.png | Bin 0 -> 4876 bytes .../textures/building_blocks_canopy_inv.png | Bin 0 -> 10582 bytes 4 files changed, 30 insertions(+) create mode 100644 mods/lord_homedecor/textures/building_blocks_canopy.png create mode 100644 mods/lord_homedecor/textures/building_blocks_canopy_inv.png diff --git a/mods/lord_homedecor/building_blocks.lua b/mods/lord_homedecor/building_blocks.lua index 4e7a02f86..0c9ac8178 100644 --- a/mods/lord_homedecor/building_blocks.lua +++ b/mods/lord_homedecor/building_blocks.lua @@ -189,6 +189,35 @@ minetest.register_node("lord_homedecor:terrycloth_towel", { is_ground_content = true, groups = {crumbly=3}, }) +--******************************************************** +-- Canopy - Навес +-- +minetest.register_node("lord_homedecor:canopy", { + drawtype = "raillike", + description = SL("Canopy"), + tiles = {"building_blocks_canopy.png"}, + inventory_image = "building_blocks_canopy_inv.png", + paramtype = "light", + walkable = false, + selection_box = { + type = "fixed", + -- but how to specify the dimensions for curved and sideways rails? + fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, + }, + sunlight_propagates = true, + is_ground_content = true, + groups = {crumbly=3}, +}) +minetest.register_craft({ + output = 'lord_homedecor:canopy 2', + recipe = { + {"wool:red", "wool:white", "wool:red"}, + } +}) + +--******************************************************** +-- Chess board tiling +-- minetest.register_node("lord_homedecor:BWtile", { drawtype = "raillike", description = SL("Chess board tiling"), diff --git a/mods/lord_homedecor/locale/ru.txt b/mods/lord_homedecor/locale/ru.txt index 134655cf0..2ad5091da 100644 --- a/mods/lord_homedecor/locale/ru.txt +++ b/mods/lord_homedecor/locale/ru.txt @@ -14,6 +14,7 @@ Grate slab = Плита из решетки Fireplace = Камин Wood Framed Glass = Стекло в деревянной рамке Terrycloth towel = Махровый половичок +Canopy = Навес Tarmac Spread = Асфальтовая дорожка Chess board tiling = Черепица "Шахматная доска" Brobble Spread = Дорожка из обожженной глины diff --git a/mods/lord_homedecor/textures/building_blocks_canopy.png b/mods/lord_homedecor/textures/building_blocks_canopy.png new file mode 100644 index 0000000000000000000000000000000000000000..e6f56169b08280c9254d1b4362a12f1cd87aa635 GIT binary patch literal 4876 zcmV+n6Z7neP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O3#tvg10Ag#U9Dy#(=1E{7D!h}pp`zdwMKk9=-b zNA$!TM_Dde<|8wa0BGj_{?9W1;?L)BnGkbHHKmKcP(yW%59Qi_`)aSC@A~J?SN#9$ zzWIFNxaGO}{ogdt^NsuQ=Lb2Q`~CaA$@dwjoPq51HMN(S<@0&2oPoUC_wD(=spoes zytZ@xx%&+JZ0pzmLk5fy8P7Z8rnmm$y~r${75M5K?~ZrpnV8R(&ynxszW+0J=JW9v zc%M(du)Es1@4uliS2_=*Ul^VHHvYQrKhwCc71^JezrHBx8rS>ph22`CtTp%UT1X(3 z%-Phl75&769Vj;%iC5-dKm^-o<6dml9tdBO?D?6911;+wEjg>neT!#T0qZ`&NxbZ$gPH{3f zzsXjgb#qAAdhDs^UV82AMm~4A z!r4_ZEgv1M*(l@; zD~!QlnAXK*KivH=_aAvPG5lA&xxX=Igu4F^=8RBxnENMhe_(Ai%_v?8k|-2RFTXIh z5!;H6U)@}No8fj`XX$qUObxh7;%(l3 zg30i%j&L_z*Ry`vN9CHB;*QG%hW91+1vvTcE7~4L%h5%Yv)E>|f#?R0ahA?93bW5W zd%S}}V4ejK>%4sG9ax&J(Xs<*#8n!LZH%c`rcZfPrbiH7re89>GviE@WTI$Gm@O={ z%-0>BW(ggLP$aQgK-s#%e6BD9n{$H=T4uP6uoQC;mK+EnDqtRgC!@e4U$}{g2g0f~ zlooE8vpt(c%EV8rX8BQ-=FbWSknjjJCcAu#FgzIolrc>f(OE>$#VE=LWFv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l?# z6c`}{1m~bMIol`#UtWekISGGc1memSuuA3qbm2T1LL|T_1S4! zfRg4Gs;PzP=|MC&h`6mCHV8lraOB`zlEld-ZHnL=QYB6&K#&`o@Fpjn8Xa3^i;JgN z6g>r^$&!vu?Ki#w`Y5~d*~^!a%jFbfY=AR%0>Ezrs0YBRdcw+Os4G|CkB&lKxB#}c zme_mMf;mqpb7OcD60WWerneW-;lqfFd*OUP)%!Gvk^`l^8`5m^-gtwtFsu(ICVn?~=bcBz{QLmo*!y3);xwZq zIfXnAwz(PMzyQjJ2jN;;z=9xY9sZlcRTFwu+awYE(l)X)Gvr;ESd&*5{td=H35Ih{ z@JjH+Q_w{CpvQ-@O!|ePA^h{*cXPI}(GH>qL3A8M`{10|1tpF5o`Pv9qI|F)+dVzd zjSb*ICeaNcz!^*aLJrO*E@!lcu@rJ^z?>YT6&Wi^8|pO5@S0}Pd|+{ z`{C_Ld}wRP9KhCt4K`U?=<18W;W#K`xd+uE=*Fo4qj{RnH4B~&gLq*U;f zf)D}>?7GVtW0Tk)hEQv3sF|Kd&G`7HT3q}g*ZOZD#5<(aPS^9#(_9??{O>+A34x^t z9sqYP18YA`QvOxk+4-5$;9#!Q)dii;!*LErZrA<=Pqt#D0_Vw^GdY5bHQ4G3vXd8) z9U0kC^Yd@OSLqp4wwHulCU4jd6a*$iw2rgZMKQdC5b94X6wzt2AIDU(q+wM4ZistP{y`}dt zZ0fyw>J$bKALc@c7S8ztjIloj&-+S+;EDZk^ zME?rLHg9|JMLJjAq4=b}NKjW-hvDI2Fvc@nh$DjW6KZGYv%$ Date: Mon, 23 Dec 2019 15:29:05 +0300 Subject: [PATCH 2/2] add stanchion --- mods/lottblocks/decoration.lua | 2 +- mods/lottblocks/locale/ru.txt | 11 ++++- mods/lottblocks/wooden_stuff.lua | 78 ++++++++++++++++++++++++++++---- 3 files changed, 80 insertions(+), 11 deletions(-) diff --git a/mods/lottblocks/decoration.lua b/mods/lottblocks/decoration.lua index 15dca3508..831646358 100644 --- a/mods/lottblocks/decoration.lua +++ b/mods/lottblocks/decoration.lua @@ -306,7 +306,7 @@ minetest.register_craft({ } }) ---[[Dwarf Tombs, by Amaz. +--[[Dwarf Tombs, by Amaz. | Гробница гнома minetest.register_node("lottblocks:dwarf_tomb_top", { description = "Dwarf Tomb", drawtype = "nodebox", diff --git a/mods/lottblocks/locale/ru.txt b/mods/lottblocks/locale/ru.txt index af2ceb99e..a81517e63 100644 --- a/mods/lottblocks/locale/ru.txt +++ b/mods/lottblocks/locale/ru.txt @@ -131,6 +131,7 @@ Wooden Trapdoor = Яблоневый люк Wooden Fence = Яблоневый забор Wooden Table = Яблоневый стол Wooden Chair = Яблоневый стул +Wooden Stanchion= Яблоневые стойки Junglewood Door = Эвкалиптовая дверь Junglewood Door With Lock = Эвкалиптовая дверь с замком Junglewood Trapdoor = Эвкалиптовый люк @@ -139,6 +140,7 @@ Junglewood Table = Эвкалиптовый стол Junglewood Chair = Эвкалиптовый стул Junglewood Ladder = Эвкалиптовая лестница Junglewood Stick = Эвкалиптовая палочка +Junglewood Stanchion= Эвкалиптовые стойки Alder Door = Ольховая дверь Alder Door With Lock = Ольховая дверь с замком Alder Trapdoor = Ольховый люк @@ -146,7 +148,8 @@ Alder Fence = Ольховый забор Alder Table = Ольховый стол Alder Chair = Ольховый стул Alder Ladder = Ольховая лестница -Alder Stick = Ольховая палочка +Alder Stick = Ольховая палочка +Alder Stanchion = Ольховые стойки Birch Door = Берёзовая дверь Birch Door With Lock = Берёзовая дверь с замком Birch Trapdoor = Берёзовый люк @@ -154,7 +157,8 @@ Birch Fence = Берёзовый забор Birch Table = Берёзовый стол Birch Chair = Берёзовый стул Birch Ladder = Берёзовая лестница -Birch Stick = Берёзовая палочка +Birch Stick = Берёзовая палочка +Birch Stanchion = Берёзовые стойки Pine Door = Сосновая дверь Pine Door With Lock = Сосновая дверь с замком Pine Trapdoor = Сосновый люк @@ -163,6 +167,7 @@ Pine Table = Сосновый стол Pine Chair = Сосновый стул Pine Ladder = Сосновая лестница Pine Stick = Сосновая палочка +Pine Stanchion = Сосновые стойки Lebethron Door = Лебетроновая дверь Lebethron Door With Lock = Лебетроновая дверь с замком Lebethron Trapdoor = Лебетроновый люк @@ -171,6 +176,7 @@ Lebethron Table = Лебетроновый стол Lebethron Chair = Лебетроновый стул Lebethron Ladder = Лебетроновая лестница Lebethron Stick = Лебетроновая палочка +Lebethron Stanchion = Лебетроновые стойки Mallorn Door = Маллорновая дверь Mallorn Door With Lock = Маллорновая дверь с замком Mallorn Trapdoor = Маллорновый люк @@ -179,3 +185,4 @@ Mallorn Table = Маллорновый стол Mallorn Chair = Маллорновый стул Mallorn Ladder = Маллорновая лестница Mallorn Stick = Маллорновая палочка +Mallorn Stanchion = Маллорновые стойки diff --git a/mods/lottblocks/wooden_stuff.lua b/mods/lottblocks/wooden_stuff.lua index e683c39a8..e71cfab03 100644 --- a/mods/lottblocks/wooden_stuff.lua +++ b/mods/lottblocks/wooden_stuff.lua @@ -199,7 +199,37 @@ function lottblocks.register_wooden_stuff(name, description, texture, wood_name) } }) + -- STANCHION | СТОЙКИ + minetest.register_node("lottblocks:" .. name .. "_stanchion", { + description = SL(description .. " Stanchion"), + tiles = { texture }, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = 'light', + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -0.5, -0.5, -0.5, -0.4, 0.5, -0.4 }, + { 0.4, -0.5, -0.5, 0.5, 0.5, -0.4 }, + { -0.5, -0.5, 0.4, -0.4, 0.5, 0.5 }, + { 0.4, -0.5, 0.4, 0.5, 0.5, 0.5 }, + }, + }, + groups = node_groups + }) + minetest.register_craft({ + output = "lottblocks:" .. name .. "_stanchion", + recipe = { + { stick_name, '', stick_name }, + { '', '', '' }, + { stick_name, '', stick_name }, + } + }) + end + + -- TABLE | СТОЛ minetest.register_node("lottblocks:" .. name .. "_table", { description = SL(description .. " Table"), tiles = { texture }, @@ -223,6 +253,16 @@ function lottblocks.register_wooden_stuff(name, description, texture, wood_name) }, groups = node_groups }) + minetest.register_craft({ + output = "lottblocks:" .. name .. "_table", + recipe = { + { wood_name, wood_name, wood_name }, + { 'group:stick', 'group:stick', 'group:stick' }, + { 'group:stick', '', 'group:stick' }, + } + }) + + -- CHAIR | КРЕСЛА minetest.register_node("lottblocks:" .. name .. "_chair", { description = SL(description .. " Chair"), tiles = { texture }, @@ -247,14 +287,6 @@ function lottblocks.register_wooden_stuff(name, description, texture, wood_name) }, groups = node_groups }) - minetest.register_craft({ - output = "lottblocks:" .. name .. "_table", - recipe = { - { wood_name, wood_name, wood_name }, - { 'group:stick', 'group:stick', 'group:stick' }, - { 'group:stick', '', 'group:stick' }, - } - }) minetest.register_craft({ output = "lottblocks:" .. name .. "_chair", recipe = { @@ -280,3 +312,33 @@ lottblocks.register_wooden_stuff("birch", "Birch", "lottplants_birchwood.png", " lottblocks.register_wooden_stuff("pine", "Pine", "lottplants_pinewood.png", "lottplants:pinewood") lottblocks.register_wooden_stuff("lebethron", "Lebethron", "lottplants_lebethronwood.png", "lottplants:lebethronwood") lottblocks.register_wooden_stuff("mallorn", "Mallorn", "lottplants_mallornwood.png", "lottplants:mallornwood") + +--*********************************************************** +--** WOODEN STANCHION | СТОЙКИ ИЗ ЯБЛОНИ ** +--*********************************************************** +minetest.register_node("lottblocks:wooden_stanchion", { + description = SL("Wooden Stanchion"), + tiles = { "default_wood.png" }, + drawtype = "nodebox", + sunlight_propagates = true, + paramtype = 'light', + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -0.5, -0.5, -0.5, -0.4, 0.5, -0.4 }, + { 0.4, -0.5, -0.5, 0.5, 0.5, -0.4 }, + { -0.5, -0.5, 0.4, -0.4, 0.5, 0.5 }, + { 0.4, -0.5, 0.4, 0.5, 0.5, 0.5 }, + }, + }, + groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1} +}) +minetest.register_craft({ + output = "lottblocks:wooden_stanchion", + recipe = { + { 'default:stick', '', 'default:stick' }, + { '', '', '' }, + { 'default:stick', '', 'default:stick' }, + } +})