Add table lamps and update locales

and something i forgor
This commit is contained in:
Mikita Wiśniewski 2022-03-22 16:54:53 +07:00
parent 014d1dcfd8
commit f4699123d8
6 changed files with 46 additions and 3 deletions

View File

@ -78,8 +78,8 @@ function mcl_decor.register_chair(name, desc, material, tiles)
fixed = { -0.25, -0.5, -0.25, 0.25, 0.5, 0.25 }, fixed = { -0.25, -0.5, -0.25, 0.25, 0.5, 0.25 },
}, },
groups = {handy=1, axey=1, attached_node=1, material_wood=1, deco_block=1, flammable=-1}, groups = {handy=1, axey=1, attached_node=1, material_wood=1, deco_block=1, flammable=-1},
_mcl_hardness = 2, _mcl_hardness = 1,
_mcl_blast_resistance = 3, _mcl_blast_resistance = 1,
sounds = mcl_sounds.node_sound_wood_defaults(), sounds = mcl_sounds.node_sound_wood_defaults(),
on_rightclick = mcl_decor.sit on_rightclick = mcl_decor.sit
}) })

View File

@ -1,8 +1,12 @@
# textdomain: mcl_decor # textdomain: mcl_decor
You have to stop moving before sitting down!=Вам нужно перестать двигаться, чтобы сесть! You have to stop moving before sitting down!=Вам нужно перестать двигаться, чтобы сесть!
Coalquartz Tile=Уголекварцевая плитка Coalquartz Tile=Уголекварцевая плитка
Coalquartz Stair=Уголекварцевая ступенька
Coalquartz Slab=Уголекварцевая плита
Double Coalquartz Slab=Двойная уголекварцевая плита
Gravel Path=Дорожка из гравия Gravel Path=Дорожка из гравия
Rainbow Block=Радужный блок Rainbow Block=Радужный блок
Table Lamp=Настольная лампа
Oak Chair=Дубовый стул Oak Chair=Дубовый стул
Acacia Chair=Стул из акации Acacia Chair=Стул из акации
Birch Chair=Берёзовый стул Birch Chair=Берёзовый стул

View File

@ -1,8 +1,12 @@
# textdomain: mcl_decor # textdomain: mcl_decor
You have to stop moving before sitting down!= You have to stop moving before sitting down!=
Coalquartz Tile= Coalquartz Tile=
Coalquartz Stair=
Coalquartz Slab=
Double Coalquartz Slab=
Gravel Path= Gravel Path=
Rainbow Block= Rainbow Block=
Table Lamp=
Oak Chair= Oak Chair=
Acacia Chair= Acacia Chair=
Birch Chair= Birch Chair=

View File

@ -26,7 +26,7 @@ minetest.register_craft({
{"mcl_core:coal_lump", "mcl_nether:quartz"} {"mcl_core:coal_lump", "mcl_nether:quartz"}
} }
}) })
mcl_stairs.register_stair_and_slab_simple("coalquartz_tile", "mcl_decor:coalquartz_tile", S("Coalquartz Tile Stair"), S("Coalquartz Tile Slab"), S("Double Coal Quartz Slab")) mcl_stairs.register_stair_and_slab_simple("coalquartz_tile", "mcl_decor:coalquartz_tile", S("Coalquartz Stair"), S("Coalquartz Slab"), S("Double Coalquartz Slab"))
--- Gravel Path --- --- Gravel Path ---
minetest.register_node("mcl_decor:gravel_path", { minetest.register_node("mcl_decor:gravel_path", {
@ -103,6 +103,41 @@ minetest.register_craft({
} }
}) })
--- Table Lamp ---
minetest.register_node("mcl_decor:table_lamp", {
description = S("Table Lamp"),
tiles = {"mcl_decor_table_lamp.png", "mcl_decor_table_lamp.png", "mcl_decor_table_lamp_side.png",
"mcl_decor_table_lamp_side.png", "mcl_decor_table_lamp_side.png", "mcl_decor_table_lamp_side.png"},
drawtype = "nodebox",
paramtype = "light",
stack_max = 64,
node_box = {
type = "fixed",
fixed = {
{-0.25, -0.5, -0.25, 0.25, -0.375, 0.25},
{-0.0625, -0.375, -0.0625, 0.0625, 0, 0.0625},
{-0.3125, 0, -0.3125, 0.3125, 0.5, 0.3125},
}
},
selection_box = {
type = "fixed",
fixed = {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125},
},
is_ground_content = false,
light_source = minetest.LIGHT_MAX,
groups = {handy=1, axey=1, attached_node=1, material_wood=1, deco_block=1, flammable=-1},
sounds = mcl_sounds.node_sound_wood_defaults(),
_mcl_blast_resistance = 0.9,
_mcl_hardness = 0.9,
})
minetest.register_craft({
output = "mcl_decor:table_lamp 3",
recipe = {
{"group:wool", "group:wool", "group:wool"},
{"group:wool", "mcl_torches:torch", "group:wool"},
{"group:stone", "group:stone", "group:stone"}
}
})
--- Tables and Chairs --- --- Tables and Chairs ---

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 B