From 0a605bdb962d0d16786c3246eeffde9e7b40426d Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Tue, 2 Aug 2022 23:47:22 -0400 Subject: [PATCH 1/6] fix some crafts --- homedecor_common/materials.lua | 1 + homedecor_exterior/init.lua | 4 ++-- homedecor_furniture_medieval/init.lua | 9 +++++++++ homedecor_wardrobe/init.lua | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/homedecor_common/materials.lua b/homedecor_common/materials.lua index 2997cf60..a6b81717 100644 --- a/homedecor_common/materials.lua +++ b/homedecor_common/materials.lua @@ -44,6 +44,7 @@ homedecor.materials = { stone = "default:stone", cobble = "default:cobble", brick = "default:brick", + obsidian_glass = "default:obsidian_glass", } if minetest.get_modpath("moreores") then diff --git a/homedecor_exterior/init.lua b/homedecor_exterior/init.lua index 1ffef060..8a835f7c 100644 --- a/homedecor_exterior/init.lua +++ b/homedecor_exterior/init.lua @@ -362,7 +362,7 @@ homedecor_exterior.shrub_colors = { local shrub_cbox = { -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 } for color, color_loc in pairs(homedecor_exterior.shrub_colors) do - minetest.register_node(":homedecor:shrubbery_large_"..color, { + homedecor.register("shrubbery_large_"..color, { description = S("Shrubbery (large, @1)", color_loc), drawtype = "mesh", mesh = "homedecor_cube.obj", @@ -384,7 +384,7 @@ for color, color_loc in pairs(homedecor_exterior.shrub_colors) do } }) - minetest.register_node(":homedecor:shrubbery_"..color, { + homedecor.register("shrubbery_"..color, { description = S("Shrubbery (@1)", color_loc), drawtype = "mesh", mesh = "homedecor_shrubbery.obj", diff --git a/homedecor_furniture_medieval/init.lua b/homedecor_furniture_medieval/init.lua index bcde356a..5dde4f20 100644 --- a/homedecor_furniture_medieval/init.lua +++ b/homedecor_furniture_medieval/init.lua @@ -79,6 +79,15 @@ homedecor.register("chains", { _sound_def = { key = "node_sound_stone_defaults", }, + crafts = { + { + output = "homedecor:chains 4", + recipe = { + { "steel_ingot","" }, + { "homedecor:bars","homedecor:bars" }, + }, + } + } }) minetest.register_alias("3dforniture:bars", "homedecor:bars") diff --git a/homedecor_wardrobe/init.lua b/homedecor_wardrobe/init.lua index 1974fa90..c345fa58 100644 --- a/homedecor_wardrobe/init.lua +++ b/homedecor_wardrobe/init.lua @@ -199,7 +199,7 @@ end minetest.register_craft( { output = "homedecor:wardrobe", recipe = { - { "homedecor:drawer_small", "homedecor:kitchen_cabinet" }, + { "homedecor:drawer_small", "homedecor:kitchen_cabinet_colorable" }, { "homedecor:drawer_small", "group:wood" }, { "homedecor:drawer_small", "group:wood" } }, From 37bc0ed58d6d0b08d04b74feab800ff464d156d6 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Tue, 2 Aug 2022 23:56:30 -0400 Subject: [PATCH 2/6] add more crafts --- homedecor_lighting/init.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/homedecor_lighting/init.lua b/homedecor_lighting/init.lua index 0bbe3d9e..39901b1d 100644 --- a/homedecor_lighting/init.lua +++ b/homedecor_lighting/init.lua @@ -1750,6 +1750,22 @@ minetest.register_craft({ }, }) +minetest.register_craft({ + output = "homedecor:rope_light_on_floor_off", + type= "shapeless", + recipe = { + "homedecor:rope_light_on_ceiling_off" + } +}) + +minetest.register_craft({ + output = "homedecor:rope_light_on_ceiling_off", + type= "shapeless", + recipe = { + homedecor.materials.steel_ingot, "homedecor:ceiling_lamp" + } +}) + minetest.register_craft({ output = "homedecor:ceiling_lamp", recipe = { From 806c8c5e78db52ef8020f0368f82bfc365a61c44 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Wed, 3 Aug 2022 00:00:22 -0400 Subject: [PATCH 3/6] last craft --- homedecor_misc/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/homedecor_misc/init.lua b/homedecor_misc/init.lua index f1d387f0..81e57e41 100644 --- a/homedecor_misc/init.lua +++ b/homedecor_misc/init.lua @@ -290,6 +290,14 @@ homedecor.register("dvd_cd_cabinet", { _sound_def = { key = "node_sound_wood_defaults", }, + crafts = { + { + type = "shapeless", + recipe = { + "homedecor:dvd_player", "homedecor:kitchen_cabinet_colorable" + } + } + } }) local pooltable_cbox = { From 0f57b2268a22e455c87d1e55ac9f69d9f992bda5 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Thu, 11 Aug 2022 21:31:20 -0400 Subject: [PATCH 4/6] fix some seats (#43) --- homedecor_seating/misc.lua | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/homedecor_seating/misc.lua b/homedecor_seating/misc.lua index 481295ce..f1b5748b 100644 --- a/homedecor_seating/misc.lua +++ b/homedecor_seating/misc.lua @@ -18,6 +18,9 @@ homedecor.register("deckchair", { selection_box = dc_cbox, collision_box = dc_cbox, on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil, + on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1) + end }) minetest.register_alias("homedecor:deckchair_foot", "homedecor:deckchair") @@ -35,6 +38,9 @@ homedecor.register("deckchair_striped_blue", { selection_box = dc_cbox, collision_box = dc_cbox, on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil, + on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1) + end }) homedecor.register("simple_bench", { @@ -52,6 +58,9 @@ homedecor.register("simple_bench", { _sound_def = { key = "node_sound_wood_defaults", }, + on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1) + end }) local bl1_sbox = { @@ -142,9 +151,7 @@ homedecor.register("kitchen_chair_wood", { after_place_node = unifieddyes.fix_rotation_nsew, on_rotate = unifieddyes.fix_after_screwdriver_nsew, on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) - pos.y = pos.y+0 -- where do I put my ass ? - homedecor.sit(pos, node, clicker) - return itemstack + return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1) end }) @@ -170,9 +177,7 @@ homedecor.register("kitchen_chair_padded", { on_dig = unifieddyes.on_dig, on_rotate = unifieddyes.fix_after_screwdriver_nsew, on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) - pos.y = pos.y+0 -- where do I put my ass ? - homedecor.sit(pos, node, clicker) - return itemstack + return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1) end }) @@ -210,6 +215,9 @@ for _, c in pairs(chairs) do collision_box = ofchairs_cbox, expand = { top = "placeholder" }, on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil, + on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) + return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1) + end }) end From 0403f47f867ddf1623cd0bc78bffcf0ee2351003 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Thu, 11 Aug 2022 23:37:26 -0400 Subject: [PATCH 5/6] fix https://github.com/mt-mods/homedecor_modpack/issues/44 --- homedecor_bathroom/init.lua | 4 ++-- homedecor_gastronomy/init.lua | 2 +- homedecor_office/init.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homedecor_bathroom/init.lua b/homedecor_bathroom/init.lua index eae05dd3..c3e7fbb8 100644 --- a/homedecor_bathroom/init.lua +++ b/homedecor_bathroom/init.lua @@ -106,7 +106,7 @@ homedecor.register("towel_rod", { walkable = false, groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,dig_tree=2}, _sound_def = { - key = "node_sound_defaults", + key = "node_sound_default", }, crafts = { { @@ -274,7 +274,7 @@ homedecor.register("toilet_paper", { walkable = false, groups = {snappy=3,oddly_breakable_by_hand=3, dig_stone = 2}, _sound_def = { - key = "node_sound_defaults", + key = "node_sound_default", }, crafts = { { diff --git a/homedecor_gastronomy/init.lua b/homedecor_gastronomy/init.lua index 8d63dd7c..348da60a 100644 --- a/homedecor_gastronomy/init.lua +++ b/homedecor_gastronomy/init.lua @@ -109,7 +109,7 @@ homedecor.register("wine_rack", { selection_box = wine_cbox, collision_box = wine_cbox, _sound_def = { - key = "node_sound_defaults", + key = "node_sound_default", }, }) diff --git a/homedecor_office/init.lua b/homedecor_office/init.lua index 41697f1b..13cca903 100644 --- a/homedecor_office/init.lua +++ b/homedecor_office/init.lua @@ -128,7 +128,7 @@ homedecor.register("calendar", { groups = {choppy=2,attached_node=1, dig_tree=2}, legacy_wallmounted = true, _sound_def = { - key = "node_sound_defaults", + key = "node_sound_default", }, infotext = S("Date (right-click to update):\n@1", os.date("%Y-%m-%d")), -- ISO 8601 format on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) From 6fa1bbeb1cf5ff9d1fd8262fe26d899fd38d0a90 Mon Sep 17 00:00:00 2001 From: Niklp <89982526+Niklp09@users.noreply.github.com> Date: Fri, 19 Aug 2022 20:15:47 +0200 Subject: [PATCH 6/6] fix wrong collision box for homedecor skylights (#45) --- homedecor_roofing/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homedecor_roofing/init.lua b/homedecor_roofing/init.lua index 830f9c53..9c0d1a56 100644 --- a/homedecor_roofing/init.lua +++ b/homedecor_roofing/init.lua @@ -14,6 +14,7 @@ minetest.register_node(":homedecor:skylight", { key = "node_sound_glass_defaults", }, selection_box = homedecor.nodebox.slab_y(0.1), + collision_box = homedecor.nodebox.slab_y(0.1), }) minetest.register_node(":homedecor:skylight_frosted", { @@ -29,6 +30,7 @@ minetest.register_node(":homedecor:skylight_frosted", { key = "node_sound_glass_defaults", }, selection_box = homedecor.nodebox.slab_y(0.1), + collision_box = homedecor.nodebox.slab_y(0.1), }) for s, s_loc in pairs({ ["asphalt"] = S("asphalt"), ["terracotta"] = S("terracotta"), ["wood"] = S("wood") }) do