diff --git a/craft.lua b/craft.lua index 0abdafe..7daf2d5 100644 --- a/craft.lua +++ b/craft.lua @@ -105,6 +105,20 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = 'plant_blocks:w15', + recipe = { + {'dye:black','plant_blocks:triangular_stencil', 'dye:yellow'}, + {'plant_blocks:brush', '', 'plant_blocks:scissors'}, + {'', 'basic_materials:plastic_sheet', ''}, + }, + replacements = { + {"plant_blocks:brush", "plant_blocks:brush"}, + {"plant_blocks:triangular_stencil", "plant_blocks:triangular_stencil"}, + {"plant_blocks:scissors", "plant_blocks:scissors"}, + } +}) + minetest.register_craft({ output = 'plant_blocks:yellow_line_floor', recipe = { diff --git a/locale/plant_blocks.ru.tr b/locale/plant_blocks.ru.tr index bb5e08c..2ab62c0 100644 --- a/locale/plant_blocks.ru.tr +++ b/locale/plant_blocks.ru.tr @@ -17,4 +17,5 @@ Direction to the emergency exit left up=Направление к эвакуац 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 +Industrial floor arrow with black and yellow corner line=Стрелка промышленного пола с черно-желтой угловой линией +Caution. Falling from height is possible.=Осторожно. Возможно падение с высоты. \ No newline at end of file diff --git a/nodes.lua b/nodes.lua index 7dc6907..6a1637b 100644 --- a/nodes.lua +++ b/nodes.lua @@ -112,52 +112,68 @@ minetest.register_node("plant_blocks:forklift_floor_sign", { sounds = default.node_sound_stone_defaults(), }) +local function triangular_sign(params) + minetest.register_node(params.name, { + description = params.description, + drawtype = "mesh", + -- Holds the texture for each "material" + tiles = params.tiles, + paramtype2 = "facedir", + --place_param2 = 0, + -- Path to the mesh + mesh = "triangular_sign.obj", + paramtype = "light", + bounding_boxes = {{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}}, + selection_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, + }, + }, + node_box = { + type = "wallmounted", + + -- Ceiling + wall_top = { + {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, + }, + + -- Floor + wall_bottom = { + {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, + }, + + -- Wall + wall_side = { + {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375} + } + }, + collision_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, + }, + }, + is_ground_content = false, + groups = {crumbly=3}, + }) +end + --plant_blocks:wall_sign_attention_forklift_operating Настенный знак внимание работает автопогрузчик -minetest.register_node("plant_blocks:wall_sign_attention_forklift_operating", { +triangular_sign({ + name = "plant_blocks:wall_sign_attention_forklift_operating", description = S("Wall sign attention to forklift operating"), - drawtype = "mesh", - -- Holds the texture for each "material" - tiles = { - "sign_attention_to_forklift_operating.png" - }, - paramtype2 = "facedir", - --place_param2 = 0, - -- Path to the mesh - mesh = "triangular_sign.obj", - paramtype = "light", - bounding_boxes = {{0.4375, -0.5, -0.5, 0.5, 0.5, 0.5}}, - selection_box = { - type = "fixed", - fixed = { - {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, - }, - }, - node_box = { - type = "wallmounted", - - -- Ceiling - wall_top = { - {-0.5, 0.4375, -0.5, 0.5, 0.5, 0.5}, - }, - - -- Floor - wall_bottom = { - {-0.5, -0.5, -0.5, 0.5, -0.4375, 0.5}, - }, - - -- Wall - wall_side = { - {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375} - } + tiles = { + "sign_attention_to_forklift_operating.png" }, - collision_box = { - type = "fixed", - fixed = { - {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}, - }, +}) + +triangular_sign({ + name = "plant_blocks:w15", + description = S("Caution. Falling from height is possible."), + tiles = { + "plant_blocks_w15.png" }, - is_ground_content = false, - groups = {crumbly=3}, }) --plant_blocks:yellow_line_floor diff --git a/textures/bg_green_sign.png b/textures/bg_green_sign.png index 6370de5..6de4bbd 100644 Binary files a/textures/bg_green_sign.png and b/textures/bg_green_sign.png differ diff --git a/textures/brush.png b/textures/brush.png index 5d36a71..00ad81a 100644 Binary files a/textures/brush.png and b/textures/brush.png differ diff --git a/textures/floor_up.png b/textures/floor_up.png index 22a62a7..f66615e 100644 Binary files a/textures/floor_up.png and b/textures/floor_up.png differ diff --git a/textures/forklift_sign_up.png b/textures/forklift_sign_up.png index e9280a5..2278b03 100644 Binary files a/textures/forklift_sign_up.png and b/textures/forklift_sign_up.png differ diff --git a/textures/m_floor.png b/textures/m_floor.png index 3963bcf..b76227b 100644 Binary files a/textures/m_floor.png and b/textures/m_floor.png differ diff --git a/textures/plant_blocks_arrow_black_and_yellow_line.png b/textures/plant_blocks_arrow_black_and_yellow_line.png index 8b23db1..d4b009b 100644 Binary files a/textures/plant_blocks_arrow_black_and_yellow_line.png and b/textures/plant_blocks_arrow_black_and_yellow_line.png differ diff --git a/textures/plant_blocks_arrow_black_and_yellow_line_corner.png b/textures/plant_blocks_arrow_black_and_yellow_line_corner.png index d29d13d..9eb5d9a 100644 Binary files a/textures/plant_blocks_arrow_black_and_yellow_line_corner.png and b/textures/plant_blocks_arrow_black_and_yellow_line_corner.png differ diff --git a/textures/plant_blocks_e05.png b/textures/plant_blocks_e05.png index 2a67c8e..7a9b14d 100644 Binary files a/textures/plant_blocks_e05.png and b/textures/plant_blocks_e05.png differ diff --git a/textures/plant_blocks_e07.png b/textures/plant_blocks_e07.png index a1a011e..5c82051 100644 Binary files a/textures/plant_blocks_e07.png and b/textures/plant_blocks_e07.png differ diff --git a/textures/plant_blocks_hood.png b/textures/plant_blocks_hood.png index 70585d7..a1c2334 100644 Binary files a/textures/plant_blocks_hood.png and b/textures/plant_blocks_hood.png differ diff --git a/textures/plant_blocks_w15.png b/textures/plant_blocks_w15.png new file mode 100644 index 0000000..28a6e05 Binary files /dev/null and b/textures/plant_blocks_w15.png differ diff --git a/textures/ruler.png b/textures/ruler.png index 0bd513f..3b3ab66 100644 Binary files a/textures/ruler.png and b/textures/ruler.png differ diff --git a/textures/scissors.png b/textures/scissors.png index c1fa0cd..4b8953e 100644 Binary files a/textures/scissors.png and b/textures/scissors.png differ diff --git a/textures/sign_attention_to_forklift_operating.png b/textures/sign_attention_to_forklift_operating.png index 511fe83..cf96f02 100644 Binary files a/textures/sign_attention_to_forklift_operating.png and b/textures/sign_attention_to_forklift_operating.png differ diff --git a/textures/triangular_stencil.png b/textures/triangular_stencil.png index 49f90a5..f5819fa 100644 Binary files a/textures/triangular_stencil.png and b/textures/triangular_stencil.png differ diff --git a/textures/yellow_black_line_corner_up.png b/textures/yellow_black_line_corner_up.png index 83e4b62..810591e 100644 Binary files a/textures/yellow_black_line_corner_up.png and b/textures/yellow_black_line_corner_up.png differ diff --git a/textures/yellow_black_line_up.png b/textures/yellow_black_line_up.png index 66a0aec..17eee65 100644 Binary files a/textures/yellow_black_line_up.png and b/textures/yellow_black_line_up.png differ diff --git a/textures/yellow_black_up.png b/textures/yellow_black_up.png index baa8113..34cabf7 100644 Binary files a/textures/yellow_black_up.png and b/textures/yellow_black_up.png differ diff --git a/textures/yellow_line_corner_up.png b/textures/yellow_line_corner_up.png index 83c3271..c18fe0a 100644 Binary files a/textures/yellow_line_corner_up.png and b/textures/yellow_line_corner_up.png differ diff --git a/textures/yellow_line_up.png b/textures/yellow_line_up.png index c3937b3..2b2129b 100644 Binary files a/textures/yellow_line_up.png and b/textures/yellow_line_up.png differ