Rename mod: cottages → tutorial_cottages

master
Wuzzy 2022-08-02 15:17:52 +02:00
parent fa0e5fd73c
commit 23e2da13f9
20 changed files with 23 additions and 14 deletions

View File

@ -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");

View File

@ -1,3 +1,3 @@
name = cottages
name = tutorial_cottages
depends = tutorial_default
optional_depends = stairs, homedecor, intllib

View File

@ -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")

View File

@ -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")

View File

@ -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 )

View File

@ -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")

View File

Before

Width:  |  Height:  |  Size: 852 B

After

Width:  |  Height:  |  Size: 852 B

View File

Before

Width:  |  Height:  |  Size: 827 B

After

Width:  |  Height:  |  Size: 827 B

View File

Before

Width:  |  Height:  |  Size: 671 B

After

Width:  |  Height:  |  Size: 671 B

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 135 B

After

Width:  |  Height:  |  Size: 135 B

View File

Before

Width:  |  Height:  |  Size: 316 B

After

Width:  |  Height:  |  Size: 316 B