diff --git a/api.lua b/api.lua index 94e9ef4..6675470 100644 --- a/api.lua +++ b/api.lua @@ -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 }, }, groups = {handy=1, axey=1, attached_node=1, material_wood=1, deco_block=1, flammable=-1}, - _mcl_hardness = 2, - _mcl_blast_resistance = 3, + _mcl_hardness = 1, + _mcl_blast_resistance = 1, sounds = mcl_sounds.node_sound_wood_defaults(), on_rightclick = mcl_decor.sit }) diff --git a/locale/mcl_decor.ru.tr b/locale/mcl_decor.ru.tr index 97472ea..efc88ce 100644 --- a/locale/mcl_decor.ru.tr +++ b/locale/mcl_decor.ru.tr @@ -1,8 +1,12 @@ # textdomain: mcl_decor You have to stop moving before sitting down!=Вам нужно перестать двигаться, чтобы сесть! Coalquartz Tile=Уголекварцевая плитка +Coalquartz Stair=Уголекварцевая ступенька +Coalquartz Slab=Уголекварцевая плита +Double Coalquartz Slab=Двойная уголекварцевая плита Gravel Path=Дорожка из гравия Rainbow Block=Радужный блок +Table Lamp=Настольная лампа Oak Chair=Дубовый стул Acacia Chair=Стул из акации Birch Chair=Берёзовый стул diff --git a/locale/template.txt b/locale/template.txt index e9daed9..a5e105a 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -1,8 +1,12 @@ # textdomain: mcl_decor You have to stop moving before sitting down!= Coalquartz Tile= +Coalquartz Stair= +Coalquartz Slab= +Double Coalquartz Slab= Gravel Path= Rainbow Block= +Table Lamp= Oak Chair= Acacia Chair= Birch Chair= diff --git a/register.lua b/register.lua index 01df573..0d5626c 100644 --- a/register.lua +++ b/register.lua @@ -26,7 +26,7 @@ minetest.register_craft({ {"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 --- 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 --- diff --git a/textures/mcl_decor_table_lamp.png b/textures/mcl_decor_table_lamp.png new file mode 100644 index 0000000..d3ae6ae Binary files /dev/null and b/textures/mcl_decor_table_lamp.png differ diff --git a/textures/mcl_decor_table_lamp_side.png b/textures/mcl_decor_table_lamp_side.png new file mode 100644 index 0000000..8638f06 Binary files /dev/null and b/textures/mcl_decor_table_lamp_side.png differ