optimized images and added a new sign (Caution. Possible fall from height)

This commit is contained in:
Vitaliy Olkhin 2025-01-12 21:48:28 +05:00
parent e874d4ee71
commit 54b577b380
23 changed files with 74 additions and 43 deletions

View File

@ -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 = {

View File

@ -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=Стрелка промышленного пола с черно-желтой угловой линией
Industrial floor arrow with black and yellow corner line=Стрелка промышленного пола с черно-желтой угловой линией
Caution. Falling from height is possible.=Осторожно. Возможно падение с высоты.

100
nodes.lua
View File

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 759 B

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 747 B

After

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 869 B

After

Width:  |  Height:  |  Size: 848 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 946 B

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 978 B

After

Width:  |  Height:  |  Size: 957 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 957 B

After

Width:  |  Height:  |  Size: 838 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 939 B

After

Width:  |  Height:  |  Size: 791 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 384 B