diff --git a/mods/cottages/init.lua b/mods/tutorial_cottages/init.lua similarity index 75% rename from mods/cottages/init.lua rename to mods/tutorial_cottages/init.lua index d6c6c9c..b787050 100644 --- a/mods/cottages/init.lua +++ b/mods/tutorial_cottages/init.lua @@ -20,7 +20,7 @@ cottages = {} -- uncomment parts you do not want -dofile(minetest.get_modpath("cottages").."/nodes_furniture.lua"); -dofile(minetest.get_modpath("cottages").."/nodes_historic.lua"); -dofile(minetest.get_modpath("cottages").."/nodes_straw.lua"); -dofile(minetest.get_modpath("cottages").."/nodes_roof.lua"); +dofile(minetest.get_modpath("tutorial_cottages").."/nodes_furniture.lua"); +dofile(minetest.get_modpath("tutorial_cottages").."/nodes_historic.lua"); +dofile(minetest.get_modpath("tutorial_cottages").."/nodes_straw.lua"); +dofile(minetest.get_modpath("tutorial_cottages").."/nodes_roof.lua"); diff --git a/mods/cottages/locale/de.txt b/mods/tutorial_cottages/locale/de.txt similarity index 100% rename from mods/cottages/locale/de.txt rename to mods/tutorial_cottages/locale/de.txt diff --git a/mods/cottages/locale/el.txt b/mods/tutorial_cottages/locale/el.txt similarity index 100% rename from mods/cottages/locale/el.txt rename to mods/tutorial_cottages/locale/el.txt diff --git a/mods/cottages/locale/es.txt b/mods/tutorial_cottages/locale/es.txt similarity index 100% rename from mods/cottages/locale/es.txt rename to mods/tutorial_cottages/locale/es.txt diff --git a/mods/cottages/locale/id.txt b/mods/tutorial_cottages/locale/id.txt similarity index 100% rename from mods/cottages/locale/id.txt rename to mods/tutorial_cottages/locale/id.txt diff --git a/mods/cottages/locale/it.txt b/mods/tutorial_cottages/locale/it.txt similarity index 100% rename from mods/cottages/locale/it.txt rename to mods/tutorial_cottages/locale/it.txt diff --git a/mods/cottages/locale/nl.txt b/mods/tutorial_cottages/locale/nl.txt similarity index 100% rename from mods/cottages/locale/nl.txt rename to mods/tutorial_cottages/locale/nl.txt diff --git a/mods/cottages/locale/template.txt b/mods/tutorial_cottages/locale/template.txt similarity index 100% rename from mods/cottages/locale/template.txt rename to mods/tutorial_cottages/locale/template.txt diff --git a/mods/cottages/mod.conf b/mods/tutorial_cottages/mod.conf similarity index 74% rename from mods/cottages/mod.conf rename to mods/tutorial_cottages/mod.conf index 3f8b8e7..0ba1800 100644 --- a/mods/cottages/mod.conf +++ b/mods/tutorial_cottages/mod.conf @@ -1,3 +1,3 @@ -name = cottages +name = tutorial_cottages depends = tutorial_default optional_depends = stairs, homedecor, intllib diff --git a/mods/cottages/nodes_furniture.lua b/mods/tutorial_cottages/nodes_furniture.lua similarity index 90% rename from mods/cottages/nodes_furniture.lua rename to mods/tutorial_cottages/nodes_furniture.lua index b5c53b1..d152056 100644 --- a/mods/cottages/nodes_furniture.lua +++ b/mods/tutorial_cottages/nodes_furniture.lua @@ -22,7 +22,7 @@ end -- the basic version of a bed - a sleeping mat -- to facilitate upgrade path straw mat -> sleeping mat -> bed, this uses a nodebox -minetest.register_node("cottages:sleeping_mat", { +minetest.register_node("tutorial_cottages:sleeping_mat", { description = S("sleeping mat"), drawtype = 'nodebox', tiles = { 'cottages_sleepingmat.png' }, -- done by VanessaE @@ -55,7 +55,7 @@ minetest.register_node("cottages:sleeping_mat", { -- furniture; possible replacement: 3dforniture:chair -minetest.register_node("cottages:bench", { +minetest.register_node("tutorial_cottages:bench", { drawtype = "nodebox", description = S("simple wooden bench"), tiles = {"cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png"}, @@ -84,7 +84,7 @@ minetest.register_node("cottages:bench", { -- a simple table; possible replacement: 3dforniture:table -minetest.register_node("cottages:table", { +minetest.register_node("tutorial_cottages:table", { description = S("table"), drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer @@ -109,4 +109,6 @@ minetest.register_node("cottages:table", { }, }) - +minetest.register_alias("cottages:sleeping_mat", "tutorial_cottages:sleeping_mat") +minetest.register_alias("cottages:bench", "tutorial_cottages:bench") +minetest.register_alias("cottages:table", "tutorial_cottages:table") diff --git a/mods/cottages/nodes_historic.lua b/mods/tutorial_cottages/nodes_historic.lua similarity index 91% rename from mods/cottages/nodes_historic.lua rename to mods/tutorial_cottages/nodes_historic.lua index c341cc0..5471bbc 100644 --- a/mods/cottages/nodes_historic.lua +++ b/mods/tutorial_cottages/nodes_historic.lua @@ -17,7 +17,7 @@ else end -- can be used to buid real stationary wagons or attached to walls as decoration -minetest.register_node("cottages:wagon_wheel", { +minetest.register_node("tutorial_cottages:wagon_wheel", { description = S("wagon wheel"), drawtype = "signlike", tiles = {"cottages_wagonwheel.png"}, -- done by VanessaE! @@ -35,3 +35,5 @@ minetest.register_node("cottages:wagon_wheel", { legacy_wallmounted = true, sounds = default.node_sound_defaults(), }) + +minetest.register_alias("cottages:wagon_wheel", "tutorial_cottages:wagon_wheel") diff --git a/mods/cottages/nodes_roof.lua b/mods/tutorial_cottages/nodes_roof.lua similarity index 88% rename from mods/cottages/nodes_roof.lua rename to mods/tutorial_cottages/nodes_roof.lua index 9e86984..c8c665a 100644 --- a/mods/cottages/nodes_roof.lua +++ b/mods/tutorial_cottages/nodes_roof.lua @@ -14,7 +14,7 @@ end -- create the three basic roof parts plus receipes for them; cottages.register_roof = function( name, tiles, basic_material, homedecor_alternative, desc1, desc2, desc3 ) - minetest.register_node("cottages:roof_"..name, { + minetest.register_node("tutorial_cottages:roof_"..name, { description = desc1, drawtype = "nodebox", --tiles = {"default_tree.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_tree.png"}, @@ -41,7 +41,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern }) -- a better roof than the normal stairs; this one is for usage directly on top of walls (it has the form of a stair) - minetest.register_node("cottages:roof_connector_"..name, { + minetest.register_node("tutorial_cottages:roof_connector_"..name, { description = desc2, drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer @@ -70,7 +70,7 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern }) -- this one is the slab version of the above roof - minetest.register_node("cottages:roof_flat_"..name, { + minetest.register_node("tutorial_cottages:roof_flat_"..name, { description = desc3, drawtype = "nodebox", -- top, bottom, side1, side2, inner, outer @@ -96,6 +96,9 @@ cottages.register_roof = function( name, tiles, basic_material, homedecor_altern sounds = default.node_sound_wood_defaults() }) + minetest.register_alias("cottages:roof_"..name, "tutorial_cottages:roof_"..name) + minetest.register_alias("cottages:roof_connector_"..name, "tutorial_cottages:roof_connector_"..name) + minetest.register_alias("cottages:roof_flat_"..name, "tutorial_cottages:roof_flat_"..name) end -- of cottages.register_roof( name, tiles, basic_material ) diff --git a/mods/cottages/nodes_straw.lua b/mods/tutorial_cottages/nodes_straw.lua similarity index 91% rename from mods/cottages/nodes_straw.lua rename to mods/tutorial_cottages/nodes_straw.lua index f9dbd4e..e228367 100644 --- a/mods/cottages/nodes_straw.lua +++ b/mods/tutorial_cottages/nodes_straw.lua @@ -14,7 +14,7 @@ end -- an even simpler from of bed - usually for animals -- it is a nodebox and not wallmounted because that makes it easier to replace beds with straw mats -minetest.register_node("cottages:straw_mat", { +minetest.register_node("tutorial_cottages:straw_mat", { description = S("straw layer"), drawtype = 'nodebox', tiles = { 'cottages_darkage_straw.png' }, -- done by VanessaE @@ -40,3 +40,5 @@ minetest.register_node("cottages:straw_mat", { } } }) + +minetest.register_alias("cottages:straw_mat", "tutorial_cottages:straw_mat") diff --git a/mods/cottages/textures/cottages_darkage_straw.png b/mods/tutorial_cottages/textures/cottages_darkage_straw.png similarity index 100% rename from mods/cottages/textures/cottages_darkage_straw.png rename to mods/tutorial_cottages/textures/cottages_darkage_straw.png diff --git a/mods/cottages/textures/cottages_darkage_straw_bale.png b/mods/tutorial_cottages/textures/cottages_darkage_straw_bale.png similarity index 100% rename from mods/cottages/textures/cottages_darkage_straw_bale.png rename to mods/tutorial_cottages/textures/cottages_darkage_straw_bale.png diff --git a/mods/cottages/textures/cottages_homedecor_shingles_asphalt.png b/mods/tutorial_cottages/textures/cottages_homedecor_shingles_asphalt.png similarity index 100% rename from mods/cottages/textures/cottages_homedecor_shingles_asphalt.png rename to mods/tutorial_cottages/textures/cottages_homedecor_shingles_asphalt.png diff --git a/mods/cottages/textures/cottages_homedecor_shingles_terracotta.png b/mods/tutorial_cottages/textures/cottages_homedecor_shingles_terracotta.png similarity index 100% rename from mods/cottages/textures/cottages_homedecor_shingles_terracotta.png rename to mods/tutorial_cottages/textures/cottages_homedecor_shingles_terracotta.png diff --git a/mods/cottages/textures/cottages_minimal_wood.png b/mods/tutorial_cottages/textures/cottages_minimal_wood.png similarity index 100% rename from mods/cottages/textures/cottages_minimal_wood.png rename to mods/tutorial_cottages/textures/cottages_minimal_wood.png diff --git a/mods/cottages/textures/cottages_sleepingmat.png b/mods/tutorial_cottages/textures/cottages_sleepingmat.png similarity index 100% rename from mods/cottages/textures/cottages_sleepingmat.png rename to mods/tutorial_cottages/textures/cottages_sleepingmat.png diff --git a/mods/cottages/textures/cottages_wagonwheel.png b/mods/tutorial_cottages/textures/cottages_wagonwheel.png similarity index 100% rename from mods/cottages/textures/cottages_wagonwheel.png rename to mods/tutorial_cottages/textures/cottages_wagonwheel.png