Skip to content

Commit

Permalink
Add walls for LOTT stones. Closes #998
Browse files Browse the repository at this point in the history
  • Loading branch information
alek13 committed Dec 27, 2023
1 parent 31af1da commit 894ce7d
Show file tree
Hide file tree
Showing 9 changed files with 68 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ read_globals = {

-- MTG
"beds", "sfinv", "creative", "dungeon_loot",
"dye", "stairs", "sethome",
"dye", "stairs", "sethome", "walls",

-- Lord specific
"lord", "hb",
Expand Down
2 changes: 1 addition & 1 deletion mods/_various/castle/town_item.lua
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ minetest.register_node("castle:dungeon_stone", {
description = SL("Dungeon Stone"),
drawtype = "normal",
tiles = { "castle_dungeon_stone.png" },
groups = { cracky = 2 },
groups = { cracky = 2, stone = 1 },
paramtype = "light",
sounds = default.node_sound_stone_defaults(),
})
Expand Down
2 changes: 1 addition & 1 deletion mods/lord/Blocks/lord_blocks/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ minetest.register_node("lord_blocks:green_marble", {
description = S("Green Marble"),
tiles = {"lord_blocks_green_marble.png"},
is_ground_content = true,
groups = {cracky=3},
groups = {cracky=3, stone=1},
sounds = default.node_sound_stone_defaults(),
})

Expand Down
24 changes: 24 additions & 0 deletions mods/lord/Blocks/lord_walls/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local S = minetest.get_translator("lord_walls")

walls.register(":walls:orc_stone", S("Orc Stone Wall"), "lottblocks_orc_stone.png",
"lottblocks:orc_stone", default.node_sound_stone_defaults())
walls.register(":walls:orc_brick", S("Orc Brick Wall"), "lottblocks_orc_brick.png",
"lottblocks:orc_brick", default.node_sound_stone_defaults())
walls.register(":walls:orc_block", S("Orc Block Wall"), "lottblocks_orc_block.png",
"lottblocks:orc_block", default.node_sound_stone_defaults())
walls.register(":walls:marble_brick", S("Marble Brick Wall"), "lottblocks_marble_brick.png",
"lottblocks:marble_brick", default.node_sound_stone_defaults())
walls.register(":walls:limestone", S("Limestone Wall"), "lottores_limestone_ore.png",
"lottores:limestone", default.node_sound_stone_defaults())
walls.register(":walls:marble", S("Marble Wall"), "lottores_marble.png",
"lottores:marble", default.node_sound_stone_defaults())
walls.register(":walls:frozen_stone", S("Frozen Stone Wall"), "default_stone.png^lottmapgen_frozen.png",
"lottmapgen:frozen_stone", default.node_sound_stone_defaults())
walls.register(":walls:mordor_stone", S("Mordor Stone Wall"), "lottmapgen_mordor_stone.png",
"lottmapgen:mordor_stone", default.node_sound_stone_defaults())
walls.register(":walls:mordor_cobble", S("Mordor Cobble Wall"), "lottmapgen_mordor_cobble.png",
"lottmapgen:mordor_cobble", default.node_sound_stone_defaults())
walls.register(":walls:green_marble", S("Green Marble Wall"), "lord_blocks_green_marble.png",
"lord_blocks:green_marble", default.node_sound_stone_defaults())
walls.register(":walls:dungeon_stone", S("Dungeon Stone Wall"), "castle_dungeon_stone.png",
"castle:dungeon_stone", default.node_sound_stone_defaults())
12 changes: 12 additions & 0 deletions mods/lord/Blocks/lord_walls/locale/mywalls.ru.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# textdomain: lord_walls
Orc Stone Wall=Ограда из Орочьего камня
Orc Brick Wall=Ограда из Орочьего кирпича
Orc Block Wall=Ограда из Орочьего блока орочьего камня
Marble Brick Wall=Ограда из мраморного кирпича
Limestone Wall=Ограда из известняка
Marble Wall=Ограда из мрамора
Frozen Stone Wall=Ограда из обледеневшего камня
Mordor Stone Wall=Ограда из мордорского камня
Mordor Cobble Wall=Ограда из мордорского булыжника
Green Marble Wall=Ограда из зелёного мрамора
Dungeon Stone Wall=Ограда из малахита
12 changes: 12 additions & 0 deletions mods/lord/Blocks/lord_walls/locale/mywalls.uk.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# textdomain: lord_walls
Orc Stone Wall=Огорожа з Орочого каменю
Orc Brick Wall=Огорожа з Орочої цегли
Orc Block Wall=Огорожа з Орочого блоку каменя
Marble Brick Wall=Огорожа з мармурової цегли
Limestone Wall=Город з вапняку
Marble Wall=Огорожа з мармуру
Frozen Stone Wall=Огорожа з обледенілого каменю
Mordor Stone Wall=Огорожа з мордорського каменю
Mordor Cobble Wall=Огорожа з мордорського каменю
Green Marble Wall=Огорожа із зеленого мармуру
Dungeon Stone Wall=Огорожа з малахіту
12 changes: 12 additions & 0 deletions mods/lord/Blocks/lord_walls/locale/template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# textdomain: lord_walls
Orc Stone Wall=
Orc Brick Wall=
Orc Block Wall=
Marble Brick Wall=
Limestone Wall=
Marble Wall=
Frozen Stone Wall=
Mordor Stone Wall=
Mordor Cobble Wall=
Green Marble Wall=
Dungeon Stone Wall=
2 changes: 2 additions & 0 deletions mods/lord/Blocks/lord_walls/mod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name = lord_walls
depends = walls, lottblocks, lottores, lottmapgen, lord_blocks, castle
6 changes: 3 additions & 3 deletions mods/lord/Blocks/lottblocks/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ minetest.register_node("lottblocks:orc_brick", {
description = S("Orc Brick"),
tiles = {"lottblocks_orc_brick.png"},
is_ground_content = false,
groups = {cracky=2},
groups = {cracky=2, stone=1},
})
stairs.register_stair_and_slab(
"orc_brick",
Expand All @@ -125,7 +125,7 @@ minetest.register_node("lottblocks:orc_block", {
description = S("Orc Block"),
tiles = {"lottblocks_orc_block.png"},
is_ground_content = false,
groups = {cracky=2},
groups = {cracky=2, stone=1},
})
stairs.register_stair_and_slab(
"orc_block",
Expand Down Expand Up @@ -177,7 +177,7 @@ minetest.register_node("lottblocks:marble_brick", {
description = S("Marble Brick"),
tiles = {"lottblocks_marble_brick.png"},
is_ground_content = false,
groups = {cracky=2},
groups = {cracky=2, stone=1},
})
stairs.register_stair_and_slab(
"marble_brick",
Expand Down

0 comments on commit 894ce7d

Please sign in to comment.