commit 012f89c17d7745529d40d8613725d08459682df9 Author: Vitaliy Olkhin Date: Sun Jan 7 18:07:17 2024 +0500 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..2531dcf --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# plant_blocks +Mod for the construction of industrial buildings. \ No newline at end of file diff --git a/industrial_floor.lua b/industrial_floor.lua new file mode 100644 index 0000000..a42d1b2 --- /dev/null +++ b/industrial_floor.lua @@ -0,0 +1,176 @@ +local S = minetest.get_translator("plant_blocks") + +--plant_blocks:brush +minetest.register_craftitem("plant_blocks:brush", { + description = S("Brush"), + inventory_image = "brush.png" +}) + +minetest.register_craft({ + output = 'plant_blocks:brush', + recipe = { + {'basic_materials:plastic_sheet','', ''}, + {'basic_materials:steel_strip', '', ''}, + {'default:stick', '', ''}, + } +}) + +--plant_blocks:ruler +minetest.register_craftitem("plant_blocks:ruler", { + description = S("Ruler"), + inventory_image = "ruler.png" +}) + +minetest.register_craft({ + output = 'plant_blocks:ruler', + recipe = { + {'default:stick','default:sword_steel', ''}, + }, + replacements = {{"default:sword_steel", "default:sword_steel"}} +}) + +--plant_blocks:industrial_floor +minetest.register_node("plant_blocks:floor", { + description = S("Industrial floor"), + tiles = { + "floor_up.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(), +}) + +minetest.register_craft({ + output = 'plant_blocks:floor', + recipe = { + {'basic_materials:cement_block','plant_blocks:brush', 'dye:grey'}, + }, + replacements = {{"plant_blocks:brush", "plant_blocks:brush"}} +}) + +--plant_blocks:yellow_black_floor +minetest.register_node("plant_blocks:yellow_black_floor", { + description = S("Industrial black and yellow floor"), + tiles = { + "yellow_black_up.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(), +}) + +minetest.register_craft({ + output = 'plant_blocks:yellow_black_floor', + recipe = { + {'dye:black','dye:yellow', ''}, + {'basic_materials:cement_block', 'plant_blocks:brush', ''}, + {'', '', ''}, + }, + replacements = {{"plant_blocks:brush", "plant_blocks:brush"}} +}) + +--plant_blocks:yellow_black_line_floor +minetest.register_node("plant_blocks:yellow_black_line_floor", { + description = S("Industrial with black and yellow line floor"), + paramtype2 = "facedir", + place_param2 = 0, + tiles = { + "floor_up.png^[combine:32x32:0,0=yellow_black_line_up.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(), +}) + +minetest.register_craft({ + output = 'plant_blocks:yellow_black_line_floor', + recipe = { + {'dye:black','dye:yellow', 'plant_blocks:ruler'}, + {'plant_blocks:floor', 'plant_blocks:brush', ''}, + {'', '', ''}, + }, + replacements = { + {"plant_blocks:brush", "plant_blocks:brush"}, + {"plant_blocks:ruler", "plant_blocks:ruler"} + } +}) + +--plant_blocks:yellow_black_line_corner_floor +minetest.register_node("plant_blocks:yellow_black_line_corner_floor", { + description = S("Industrial floor with black and yellow corner line"), + paramtype2 = "facedir", + place_param2 = 0, + tiles = { + "floor_up.png^yellow_black_line_corner_up.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(), +}) + +minetest.register_craft({ + output = 'plant_blocks:yellow_black_line_corner_floor', + recipe = { + {'dye:black','dye:yellow', 'plant_blocks:ruler'}, + {'plant_blocks:floor', 'plant_blocks:brush', 'plant_blocks:ruler'}, + {'', '', ''}, + }, + replacements = { + {"plant_blocks:brush", "plant_blocks:brush"}, + {"plant_blocks:ruler", "plant_blocks:ruler"}, + {"plant_blocks:ruler", "plant_blocks:ruler"} + } +}) + +--plant_blocks:industrial_forklift_sign_floor +minetest.register_node("plant_blocks:forklift_floor_sign", { + description = S("Industrial forklift floor sign"), + paramtype2 = "facedir", + place_param2 = 0, + tiles = { + "floor_up.png^forklift_sign_up.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(), +}) + +minetest.register_craft({ + output = 'plant_blocks:forklift_floor_sign', + recipe = { + {'dye:black','', 'dye:yellow'}, + {'plant_blocks:ruler', 'plant_blocks:floor', 'plant_blocks:ruler'}, + {'plant_blocks:brush', 'plant_blocks:ruler', ''}, + }, + replacements = { + {"plant_blocks:brush", "plant_blocks:brush"}, + {"plant_blocks:ruler", "plant_blocks:ruler"}, + {"plant_blocks:ruler", "plant_blocks:ruler"}, + {"plant_blocks:ruler", "plant_blocks:ruler"} + } +}) diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..f01a482 --- /dev/null +++ b/init.lua @@ -0,0 +1 @@ +dofile(minetest.get_modpath("plant_blocks") .. "/industrial_floor.lua") \ No newline at end of file diff --git a/locale/plant_blocks.ru.tr b/locale/plant_blocks.ru.tr new file mode 100644 index 0000000..dd3e7f5 --- /dev/null +++ b/locale/plant_blocks.ru.tr @@ -0,0 +1,8 @@ +# textdomain: plant_blocks +Industrial black and yellow floor=Промышленный черный и жолтый пол +Brush=Кисть +Industrial floor=Промышленный пол +Ruler=Линейка +Industrial with black and yellow line floor=Промышленный с черно-желтый линией пол +Industrial floor with black and yellow corner line=Промышленный пол с черно-желтой угловой линии +Industrial forklift floor sign=Промышленный напольный знак погрузчика \ No newline at end of file diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..5e85bc3 --- /dev/null +++ b/mod.conf @@ -0,0 +1,6 @@ +name = plant_blocks +description = Mod for the construction of industrial buildings. +depends = default, basic_materials, dye +min_minetest_version = 5.7 +title = Plant blocks +author = VinAdmin \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..d34be86 Binary files /dev/null and b/screenshot.png differ diff --git a/textures/brush.png b/textures/brush.png new file mode 100644 index 0000000..5d36a71 Binary files /dev/null and b/textures/brush.png differ diff --git a/textures/floor_up.png b/textures/floor_up.png new file mode 100644 index 0000000..22a62a7 Binary files /dev/null and b/textures/floor_up.png differ diff --git a/textures/forklift_sign_up.png b/textures/forklift_sign_up.png new file mode 100644 index 0000000..e9280a5 Binary files /dev/null and b/textures/forklift_sign_up.png differ diff --git a/textures/m_floor.png b/textures/m_floor.png new file mode 100644 index 0000000..3963bcf Binary files /dev/null and b/textures/m_floor.png differ diff --git a/textures/ruler.png b/textures/ruler.png new file mode 100644 index 0000000..0bd513f Binary files /dev/null and b/textures/ruler.png differ diff --git a/textures/yellow_black_line_corner_up.png b/textures/yellow_black_line_corner_up.png new file mode 100644 index 0000000..83e4b62 Binary files /dev/null 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 new file mode 100644 index 0000000..66a0aec Binary files /dev/null and b/textures/yellow_black_line_up.png differ diff --git a/textures/yellow_black_up.png b/textures/yellow_black_up.png new file mode 100644 index 0000000..baa8113 Binary files /dev/null and b/textures/yellow_black_up.png differ