optimized images and added a new sign (Caution. Possible fall from height)
14
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 = {
|
||||
|
@ -18,3 +18,4 @@ 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=Стрелка промышленного пола с черно-желтой угловой линией
|
||||
Caution. Falling from height is possible.=Осторожно. Возможно падение с высоты.
|
100
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
|
||||
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 164 B |
Before Width: | Height: | Size: 759 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 726 B |
Before Width: | Height: | Size: 869 B After Width: | Height: | Size: 848 B |
Before Width: | Height: | Size: 946 B After Width: | Height: | Size: 555 B |
BIN
textures/plant_blocks_w15.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 978 B After Width: | Height: | Size: 957 B |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 858 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 957 B After Width: | Height: | Size: 838 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 939 B After Width: | Height: | Size: 791 B |
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 384 B |