diff --git a/depends.txt b/depends.txt index e10338b..2e15492 100644 --- a/depends.txt +++ b/depends.txt @@ -1,8 +1,8 @@ default? farming +wool stairs? homedecor? intllib? trees? -wool? moreblocks? diff --git a/init.lua b/init.lua index cbafc0a..2e23660 100644 --- a/init.lua +++ b/init.lua @@ -61,7 +61,15 @@ dofile(minetest.get_modpath("cottages").."/nodes_straw.lua"); dofile(minetest.get_modpath("cottages").."/nodes_anvil.lua"); dofile(minetest.get_modpath("cottages").."/nodes_doorlike.lua"); dofile(minetest.get_modpath("cottages").."/nodes_fences.lua"); -dofile(minetest.get_modpath("cottages").."/nodes_roof.lua"); + +if not minetest.get_modpath("moreblocks") then + dofile(minetest.get_modpath("cottages").."/nodes_roof.lua"); +else + minetest.register_alias("cottages:roof_straw", "moreblocks:stair_straw_alt") + minetest.register_alias("cottages:roof_connector_straw", "moreblocks:stair_straw") + minetest.register_alias("cottages:roof_flat_straw", "moreblocks:slab_straw") +end + dofile(minetest.get_modpath("cottages").."/nodes_barrel.lua"); --dofile(minetest.get_modpath("cottages").."/nodes_chests.lua"); diff --git a/nodes_historic.lua b/nodes_historic.lua index 1fa5ea4..2f84d26 100644 --- a/nodes_historic.lua +++ b/nodes_historic.lua @@ -179,13 +179,8 @@ minetest.register_node("cottages:wool_tent", { }) -- a fallback for cases in which there is no wool -minetest.register_node("cottages:wool", { - description = "Wool", - tiles = {"cottages_wool.png"}, - is_ground_content = false, - groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1}, -}) +minetest.register_alias("cottages:wool", "wool:white") --------------------------------------------------------------------------------------- -- crafting receipes @@ -263,10 +258,3 @@ minetest.register_craft({ {"",cottages.craftitem_stick} } }) - -minetest.register_craft({ - output = "cottages:wool", - recipe = { - {"cottages:wool_tent", "cottages:wool_tent"} - } -}) diff --git a/nodes_roof.lua b/nodes_roof.lua index 11174d8..d130348 100644 --- a/nodes_roof.lua +++ b/nodes_roof.lua @@ -147,9 +147,9 @@ end -- of cottages.register_roof( name, tiles, basic_material ) -- add the diffrent roof types --------------------------------------------------------------------------------------- cottages.register_roof( 'straw', - {"cottages_darkage_straw.png","cottages_darkage_straw.png", - "cottages_darkage_straw.png","cottages_darkage_straw.png", - "cottages_darkage_straw.png","cottages_darkage_straw.png"}, + {"farming_straw.png","farming_straw.png", + "farming_straw.png","farming_straw.png", + "farming_straw.png","farming_straw.png"}, 'cottages:straw_mat', nil ); cottages.register_roof( 'reet', {"cottages_reet.png","cottages_reet.png", diff --git a/nodes_straw.lua b/nodes_straw.lua index a26b728..e92402b 100644 --- a/nodes_straw.lua +++ b/nodes_straw.lua @@ -24,9 +24,9 @@ end minetest.register_node("cottages:straw_mat", { description = S("layer of straw"), drawtype = 'nodebox', - tiles = { 'cottages_darkage_straw.png' }, -- done by VanessaE - wield_image = 'cottages_darkage_straw.png', - inventory_image = 'cottages_darkage_straw.png', + tiles = { 'farming_straw.png' }, -- done by VanessaE + wield_image = 'farming_straw.png', + inventory_image = 'farming_straw.png', sunlight_propagates = true, paramtype = 'light', paramtype2 = "facedir", @@ -76,16 +76,8 @@ minetest.register_node("cottages:straw_bale", { }) -- just straw -minetest.register_node("cottages:straw", { - drawtype = "normal", - description = S("straw"), - tiles = {"cottages_darkage_straw.png"}, - groups = {snappy=3,choppy=3,oddly_breakable_by_hand=3,flammable=3}, - sounds = default.node_sound_wood_defaults(), - -- the bale is slightly smaller than a full node - is_ground_content = false, -}) +minetest.register_alias("cottages:straw", "farming:straw") local cottages_formspec_treshing_floor = "size[8,8]".. @@ -243,7 +235,7 @@ minetest.register_node("cottages:threshing_floor", { end local overlay1 = "^farming_wheat.png"; - local overlay2 = "^cottages_darkage_straw.png"; + local overlay2 = "^farming_straw.png"; local overlay3 = "^"..cottages.texture_wheat_seed; -- this can be enlarged by a multiplicator if desired diff --git a/textures/cottages_darkage_straw.png b/textures/cottages_darkage_straw.png deleted file mode 100644 index 9817316..0000000 Binary files a/textures/cottages_darkage_straw.png and /dev/null differ diff --git a/textures/cottages_wool.png b/textures/cottages_wool.png deleted file mode 100644 index 2bbb9cf..0000000 Binary files a/textures/cottages_wool.png and /dev/null differ