Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/lord-server/lord
Browse files Browse the repository at this point in the history
  • Loading branch information
albel4 committed Dec 24, 2019
2 parents 9e4e9e8 + 633edc3 commit 2ccc674
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 11 deletions.
29 changes: 29 additions & 0 deletions mods/lord_homedecor/building_blocks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,35 @@ minetest.register_node("lord_homedecor:terrycloth_towel", {
is_ground_content = true,
groups = {crumbly=3},
})
--********************************************************
-- Canopy - Навес
--
minetest.register_node("lord_homedecor:canopy", {
drawtype = "raillike",
description = SL("Canopy"),
tiles = {"building_blocks_canopy.png"},
inventory_image = "building_blocks_canopy_inv.png",
paramtype = "light",
walkable = false,
selection_box = {
type = "fixed",
-- but how to specify the dimensions for curved and sideways rails?
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
sunlight_propagates = true,
is_ground_content = true,
groups = {crumbly=3},
})
minetest.register_craft({
output = 'lord_homedecor:canopy 2',
recipe = {
{"wool:red", "wool:white", "wool:red"},
}
})

--********************************************************
-- Chess board tiling
--
minetest.register_node("lord_homedecor:BWtile", {
drawtype = "raillike",
description = SL("Chess board tiling"),
Expand Down
1 change: 1 addition & 0 deletions mods/lord_homedecor/locale/ru.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Grate slab = Плита из решетки
Fireplace = Камин
Wood Framed Glass = Стекло в деревянной рамке
Terrycloth towel = Махровый половичок
Canopy = Навес
Tarmac Spread = Асфальтовая дорожка
Chess board tiling = Черепица "Шахматная доска"
Brobble Spread = Дорожка из обожженной глины
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion mods/lottblocks/decoration.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ minetest.register_craft({
}
})

--[[Dwarf Tombs, by Amaz.
--[[Dwarf Tombs, by Amaz. | Гробница гнома
minetest.register_node("lottblocks:dwarf_tomb_top", {
description = "Dwarf Tomb",
drawtype = "nodebox",
Expand Down
11 changes: 9 additions & 2 deletions mods/lottblocks/locale/ru.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ Wooden Trapdoor = Яблоневый люк
Wooden Fence = Яблоневый забор
Wooden Table = Яблоневый стол
Wooden Chair = Яблоневый стул
Wooden Stanchion= Яблоневые стойки
Junglewood Door = Эвкалиптовая дверь
Junglewood Door With Lock = Эвкалиптовая дверь с замком
Junglewood Trapdoor = Эвкалиптовый люк
Expand All @@ -139,22 +140,25 @@ Junglewood Table = Эвкалиптовый стол
Junglewood Chair = Эвкалиптовый стул
Junglewood Ladder = Эвкалиптовая лестница
Junglewood Stick = Эвкалиптовая палочка
Junglewood Stanchion= Эвкалиптовые стойки
Alder Door = Ольховая дверь
Alder Door With Lock = Ольховая дверь с замком
Alder Trapdoor = Ольховый люк
Alder Fence = Ольховый забор
Alder Table = Ольховый стол
Alder Chair = Ольховый стул
Alder Ladder = Ольховая лестница
Alder Stick = Ольховая палочка
Alder Stick = Ольховая палочка
Alder Stanchion = Ольховые стойки
Birch Door = Берёзовая дверь
Birch Door With Lock = Берёзовая дверь с замком
Birch Trapdoor = Берёзовый люк
Birch Fence = Берёзовый забор
Birch Table = Берёзовый стол
Birch Chair = Берёзовый стул
Birch Ladder = Берёзовая лестница
Birch Stick = Берёзовая палочка
Birch Stick = Берёзовая палочка
Birch Stanchion = Берёзовые стойки
Pine Door = Сосновая дверь
Pine Door With Lock = Сосновая дверь с замком
Pine Trapdoor = Сосновый люк
Expand All @@ -163,6 +167,7 @@ Pine Table = Сосновый стол
Pine Chair = Сосновый стул
Pine Ladder = Сосновая лестница
Pine Stick = Сосновая палочка
Pine Stanchion = Сосновые стойки
Lebethron Door = Лебетроновая дверь
Lebethron Door With Lock = Лебетроновая дверь с замком
Lebethron Trapdoor = Лебетроновый люк
Expand All @@ -171,6 +176,7 @@ Lebethron Table = Лебетроновый стол
Lebethron Chair = Лебетроновый стул
Lebethron Ladder = Лебетроновая лестница
Lebethron Stick = Лебетроновая палочка
Lebethron Stanchion = Лебетроновые стойки
Mallorn Door = Маллорновая дверь
Mallorn Door With Lock = Маллорновая дверь с замком
Mallorn Trapdoor = Маллорновый люк
Expand All @@ -179,3 +185,4 @@ Mallorn Table = Маллорновый стол
Mallorn Chair = Маллорновый стул
Mallorn Ladder = Маллорновая лестница
Mallorn Stick = Маллорновая палочка
Mallorn Stanchion = Маллорновые стойки
78 changes: 70 additions & 8 deletions mods/lottblocks/wooden_stuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,37 @@ function lottblocks.register_wooden_stuff(name, description, texture, wood_name)
}
})

-- STANCHION | СТОЙКИ
minetest.register_node("lottblocks:" .. name .. "_stanchion", {
description = SL(description .. " Stanchion"),
tiles = { texture },
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, -0.4, 0.5, -0.4 },
{ 0.4, -0.5, -0.5, 0.5, 0.5, -0.4 },
{ -0.5, -0.5, 0.4, -0.4, 0.5, 0.5 },
{ 0.4, -0.5, 0.4, 0.5, 0.5, 0.5 },
},
},
groups = node_groups
})
minetest.register_craft({
output = "lottblocks:" .. name .. "_stanchion",
recipe = {
{ stick_name, '', stick_name },
{ '', '', '' },
{ stick_name, '', stick_name },
}
})

end

-- TABLE | СТОЛ
minetest.register_node("lottblocks:" .. name .. "_table", {
description = SL(description .. " Table"),
tiles = { texture },
Expand All @@ -223,6 +253,16 @@ function lottblocks.register_wooden_stuff(name, description, texture, wood_name)
},
groups = node_groups
})
minetest.register_craft({
output = "lottblocks:" .. name .. "_table",
recipe = {
{ wood_name, wood_name, wood_name },
{ 'group:stick', 'group:stick', 'group:stick' },
{ 'group:stick', '', 'group:stick' },
}
})

-- CHAIR | КРЕСЛА
minetest.register_node("lottblocks:" .. name .. "_chair", {
description = SL(description .. " Chair"),
tiles = { texture },
Expand All @@ -247,14 +287,6 @@ function lottblocks.register_wooden_stuff(name, description, texture, wood_name)
},
groups = node_groups
})
minetest.register_craft({
output = "lottblocks:" .. name .. "_table",
recipe = {
{ wood_name, wood_name, wood_name },
{ 'group:stick', 'group:stick', 'group:stick' },
{ 'group:stick', '', 'group:stick' },
}
})
minetest.register_craft({
output = "lottblocks:" .. name .. "_chair",
recipe = {
Expand All @@ -280,3 +312,33 @@ lottblocks.register_wooden_stuff("birch", "Birch", "lottplants_birchwood.png", "
lottblocks.register_wooden_stuff("pine", "Pine", "lottplants_pinewood.png", "lottplants:pinewood")
lottblocks.register_wooden_stuff("lebethron", "Lebethron", "lottplants_lebethronwood.png", "lottplants:lebethronwood")
lottblocks.register_wooden_stuff("mallorn", "Mallorn", "lottplants_mallornwood.png", "lottplants:mallornwood")

--***********************************************************
--** WOODEN STANCHION | СТОЙКИ ИЗ ЯБЛОНИ **
--***********************************************************
minetest.register_node("lottblocks:wooden_stanchion", {
description = SL("Wooden Stanchion"),
tiles = { "default_wood.png" },
drawtype = "nodebox",
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, -0.4, 0.5, -0.4 },
{ 0.4, -0.5, -0.5, 0.5, 0.5, -0.4 },
{ -0.5, -0.5, 0.4, -0.4, 0.5, 0.5 },
{ 0.4, -0.5, 0.4, 0.5, 0.5, 0.5 },
},
},
groups = {choppy=2,oddly_breakable_by_hand=2,flammable=3,wood=1}
})
minetest.register_craft({
output = "lottblocks:wooden_stanchion",
recipe = {
{ 'default:stick', '', 'default:stick' },
{ '', '', '' },
{ 'default:stick', '', 'default:stick' },
}
})

0 comments on commit 2ccc674

Please sign in to comment.