From f40191259b699e5433b9d483c4137b0ee75b095e Mon Sep 17 00:00:00 2001 From: Vitaliy Olkhin Date: Fri, 9 Feb 2024 16:47:00 +0500 Subject: [PATCH] plant_blocks new version 0.2 --- plant_blocks/craft.lua | 23 ++++++ plant_blocks/init.lua | 3 + plant_blocks/locale/plant_blocks.ru.tr | 5 +- plant_blocks/nodes.lua | 67 ++++++++++++++++-- ...ant_blocks_arrow_black_and_yellow_line.png | Bin 0 -> 676 bytes ...cks_arrow_black_and_yellow_line_corner.png | Bin 0 -> 759 bytes plant_blocks/textures/plant_blocks_hood.png | Bin 0 -> 946 bytes 7 files changed, 93 insertions(+), 5 deletions(-) create mode 100644 plant_blocks/textures/plant_blocks_arrow_black_and_yellow_line.png create mode 100644 plant_blocks/textures/plant_blocks_arrow_black_and_yellow_line_corner.png create mode 100644 plant_blocks/textures/plant_blocks_hood.png diff --git a/plant_blocks/craft.lua b/plant_blocks/craft.lua index 1e52d95..0abdafe 100644 --- a/plant_blocks/craft.lua +++ b/plant_blocks/craft.lua @@ -179,3 +179,26 @@ minetest.register_craft({ {"plant_blocks:ruler", "plant_blocks:ruler"}, } }) + +minetest.register_craft({ + output = 'plant_blocks:hood', + recipe = { + {'plant_blocks:brush','basic_materials:motor', 'default:steel_ingot'}, + {'basic_materials:steel_strip','basic_materials:cement_block', 'dye:blue'}, + {'basic_materials:steel_strip','basic_materials:steel_strip', 'dye:yellow'}, + } +}) + +minetest.register_craft({ + output = 'plant_blocks:fl_arr_with_black_yellow_line', + recipe = { + {'plant_blocks:yellow_black_line_floor'}, + } +}) + +minetest.register_craft({ + output = 'plant_blocks:fl_arr_black_yellow_line_corner', + recipe = { + {'plant_blocks:yellow_black_line_corner_floor'}, + } +}) \ No newline at end of file diff --git a/plant_blocks/init.lua b/plant_blocks/init.lua index f93a38d..dcf34fd 100644 --- a/plant_blocks/init.lua +++ b/plant_blocks/init.lua @@ -1,2 +1,5 @@ +plant_blocks = {} +plant_blocks.version = '0.2' + dofile(minetest.get_modpath("plant_blocks") .. "/nodes.lua") dofile(minetest.get_modpath("plant_blocks") .. "/craft.lua") diff --git a/plant_blocks/locale/plant_blocks.ru.tr b/plant_blocks/locale/plant_blocks.ru.tr index cbfc6af..bb5e08c 100644 --- a/plant_blocks/locale/plant_blocks.ru.tr +++ b/plant_blocks/locale/plant_blocks.ru.tr @@ -14,4 +14,7 @@ Industrial with yellow line floor=Промышленный пол с желто Direction to the emergency exit down right=Направление к эвакуационному выходу направо вниз Direction to the emergency exit to the right up=Направление к эвакуационному выходу направо вверх Direction to the emergency exit left up=Направление к эвакуационному выходу налево вверх -Direction to the emergency exit left down=Направление к эвакуационному выходу налево вниз \ No newline at end of file +Direction to the emergency exit left down=Направление к эвакуационному выходу налево вниз +Industrial hood=Промышленная вытяжка +Industrial floor arrow with black and yellow line=Стрелка промышленного пола с черно-желтой линией +Industrial floor arrow with black and yellow corner line=Стрелка промышленного пола с черно-желтой угловой линией \ No newline at end of file diff --git a/plant_blocks/nodes.lua b/plant_blocks/nodes.lua index 722e157..7dc6907 100644 --- a/plant_blocks/nodes.lua +++ b/plant_blocks/nodes.lua @@ -199,7 +199,7 @@ minetest.register_node("plant_blocks:yellow_line_corner_floor", { --plant_blocks:e05 minetest.register_node("plant_blocks:e05", { description = S("Direction to the emergency exit to the right up"), - inventory_image = "plant_blocks_e05.png", + inventory_image = "[combine:66x52:0,10=plant_blocks_e05.png", tiles = { "bg_green_sign.png", "bg_green_sign.png", @@ -224,7 +224,7 @@ minetest.register_node("plant_blocks:e05", { --plant_blocks:e06 minetest.register_node("plant_blocks:e06", { description = S("Direction to the emergency exit left up"), - inventory_image = "plant_blocks_e05.png^[transform4", + inventory_image = "[combine:66x52:0,10=plant_blocks_e05.png^[transform4", tiles = { "bg_green_sign.png", "bg_green_sign.png", @@ -249,7 +249,7 @@ minetest.register_node("plant_blocks:e06", { --plant_blocks:e07 minetest.register_node("plant_blocks:e07", { description = S("Direction to the emergency exit down right"), - inventory_image = "plant_blocks_e07.png", + inventory_image = "[combine:66x52:0,10=plant_blocks_e07.png", tiles = { "bg_green_sign.png", "bg_green_sign.png", @@ -296,7 +296,7 @@ minetest.register_node("plant_blocks:e07", { --plant_blocks:e06 minetest.register_node("plant_blocks:e08", { description = S("Direction to the emergency exit left down"), - inventory_image = "plant_blocks_e07.png^[transform4", + inventory_image = "[combine:66x52:0,10=plant_blocks_e07.png^[transform4", tiles = { "bg_green_sign.png", "bg_green_sign.png", @@ -317,3 +317,62 @@ minetest.register_node("plant_blocks:e08", { is_ground_content = false, groups = {crumbly=3}, }) + +minetest.register_node("plant_blocks:hood", { + description = S("Industrial hood"), + drawtype = "mesh", + tiles = { + "plant_blocks_hood.png" + }, + paramtype2 = "facedir", + mesh = "plant_blocks_hood.obj", + paramtype = "light", + bounding_boxes = {{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + }, + collision_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + }, + is_ground_content = false, + groups = {cracky = 1, level = 2, concrete=1}, + sounds = default.node_sound_metal_defaults(), +}) + +minetest.register_node("plant_blocks:fl_arr_with_black_yellow_line", { + description = S("Industrial floor arrow with black and yellow line"), + tiles = { + "floor_up.png^[combine:32x32:0,0=plant_blocks_arrow_black_and_yellow_line.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + }, + paramtype2 = "facedir", + is_ground_content = false, + groups = {cracky=3, stone=1}, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node("plant_blocks:fl_arr_black_yellow_line_corner", { + description = S("Industrial floor arrow with black and yellow corner line"), + paramtype2 = "facedir", + tiles = { + "floor_up.png^plant_blocks_arrow_black_and_yellow_line_corner.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + "basic_materials_cement_block.png", + }, + is_ground_content = false, + groups = {cracky=3, stone=1}, + sounds = default.node_sound_stone_defaults(), +}) \ No newline at end of file diff --git a/plant_blocks/textures/plant_blocks_arrow_black_and_yellow_line.png b/plant_blocks/textures/plant_blocks_arrow_black_and_yellow_line.png new file mode 100644 index 0000000000000000000000000000000000000000..8b23db18a5152c3364635221b4bfa0c1a6ca4c02 GIT binary patch literal 676 zcmV;V0$crwP)Px#5>QN3MGy@W@XZM3#0S{83d^kuyP^>KA>_gU00F{! zR9JLUVRs;Ka&Km7Y-J#Hd2nSQX=7sm062}MQ(KN4Aq@QI6gh(NvpG%=G*a$=ffx+) z+Sy2(SVFBXW4mk@>36N^*Dy6qFbq%7s-(>bm?or6FJnVNHbw+Fq{xW?b{!+aPw`^_ zBz_=iRx&c+EFi!Y{=vFe9gOk@8ezLL`=O;D-fzk(MjC}OE||SFZ_Cg)9J(B&Wn+{zv9l2gy2em?*!7{8RYZ9KwuTaC^m~w6k+y6+Q)Y)Z z?3z*{!e>Eds2q{fu0D)V=D(H6u(tveznyu0+p0vZ&P3H&d}5$II-{dULMk7bB9|VF z`Z2e0)5;$cVzKGBV}A3|9MJ5txwknI?a8CM&AfP83_;2aq>ve$a(mHT80|!GQk#Lo zAuz6WUM!`Yt3o91QoqyP9`@VXVZXUA!uyXzuR=_J0PZgz`asznp8x;=32;bRa{vGi z!vFvd!vV){sAK>D08L3mK~xCWWsbWIfKUtrk6({BKyL!1EI`2kG}(U@OiJS7bh4BW zY?=9BWGNT7!)lZgED>>Hlrj#6!)$zt#3X6Al=h;Hw59Fr|FIW^ffl`^80>-o0000< KMNUMnLSTXy`5}A& literal 0 HcmV?d00001 diff --git a/plant_blocks/textures/plant_blocks_arrow_black_and_yellow_line_corner.png b/plant_blocks/textures/plant_blocks_arrow_black_and_yellow_line_corner.png new file mode 100644 index 0000000000000000000000000000000000000000..d29d13d176a5778e7790a13325b3448d02b7ce95 GIT binary patch literal 759 zcmV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