Rename mod: cottages → tutorial_cottages
@ -20,7 +20,7 @@ cottages = {}
|
|||||||
|
|
||||||
-- uncomment parts you do not want
|
-- uncomment parts you do not want
|
||||||
|
|
||||||
dofile(minetest.get_modpath("cottages").."/nodes_furniture.lua");
|
dofile(minetest.get_modpath("tutorial_cottages").."/nodes_furniture.lua");
|
||||||
dofile(minetest.get_modpath("cottages").."/nodes_historic.lua");
|
dofile(minetest.get_modpath("tutorial_cottages").."/nodes_historic.lua");
|
||||||
dofile(minetest.get_modpath("cottages").."/nodes_straw.lua");
|
dofile(minetest.get_modpath("tutorial_cottages").."/nodes_straw.lua");
|
||||||
dofile(minetest.get_modpath("cottages").."/nodes_roof.lua");
|
dofile(minetest.get_modpath("tutorial_cottages").."/nodes_roof.lua");
|
@ -1,3 +1,3 @@
|
|||||||
name = cottages
|
name = tutorial_cottages
|
||||||
depends = tutorial_default
|
depends = tutorial_default
|
||||||
optional_depends = stairs, homedecor, intllib
|
optional_depends = stairs, homedecor, intllib
|
@ -22,7 +22,7 @@ end
|
|||||||
|
|
||||||
-- the basic version of a bed - a sleeping mat
|
-- the basic version of a bed - a sleeping mat
|
||||||
-- to facilitate upgrade path straw mat -> sleeping mat -> bed, this uses a nodebox
|
-- 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"),
|
description = S("sleeping mat"),
|
||||||
drawtype = 'nodebox',
|
drawtype = 'nodebox',
|
||||||
tiles = { 'cottages_sleepingmat.png' }, -- done by VanessaE
|
tiles = { 'cottages_sleepingmat.png' }, -- done by VanessaE
|
||||||
@ -55,7 +55,7 @@ minetest.register_node("cottages:sleeping_mat", {
|
|||||||
|
|
||||||
|
|
||||||
-- furniture; possible replacement: 3dforniture:chair
|
-- furniture; possible replacement: 3dforniture:chair
|
||||||
minetest.register_node("cottages:bench", {
|
minetest.register_node("tutorial_cottages:bench", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
description = S("simple wooden bench"),
|
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"},
|
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
|
-- a simple table; possible replacement: 3dforniture:table
|
||||||
minetest.register_node("cottages:table", {
|
minetest.register_node("tutorial_cottages:table", {
|
||||||
description = S("table"),
|
description = S("table"),
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
-- top, bottom, side1, side2, inner, outer
|
-- 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")
|
@ -17,7 +17,7 @@ else
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- can be used to buid real stationary wagons or attached to walls as decoration
|
-- 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"),
|
description = S("wagon wheel"),
|
||||||
drawtype = "signlike",
|
drawtype = "signlike",
|
||||||
tiles = {"cottages_wagonwheel.png"}, -- done by VanessaE!
|
tiles = {"cottages_wagonwheel.png"}, -- done by VanessaE!
|
||||||
@ -35,3 +35,5 @@ minetest.register_node("cottages:wagon_wheel", {
|
|||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_alias("cottages:wagon_wheel", "tutorial_cottages:wagon_wheel")
|
@ -14,7 +14,7 @@ end
|
|||||||
-- create the three basic roof parts plus receipes for them;
|
-- create the three basic roof parts plus receipes for them;
|
||||||
cottages.register_roof = function( name, tiles, basic_material, homedecor_alternative, desc1, desc2, desc3 )
|
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,
|
description = desc1,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
--tiles = {"default_tree.png","default_wood.png","default_wood.png","default_wood.png","default_wood.png","default_tree.png"},
|
--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)
|
-- 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,
|
description = desc2,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
-- top, bottom, side1, side2, inner, outer
|
-- 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
|
-- 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,
|
description = desc3,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
-- top, bottom, side1, side2, inner, outer
|
-- 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()
|
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 )
|
end -- of cottages.register_roof( name, tiles, basic_material )
|
||||||
|
|
@ -14,7 +14,7 @@ end
|
|||||||
|
|
||||||
-- an even simpler from of bed - usually for animals
|
-- 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
|
-- 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"),
|
description = S("straw layer"),
|
||||||
drawtype = 'nodebox',
|
drawtype = 'nodebox',
|
||||||
tiles = { 'cottages_darkage_straw.png' }, -- done by VanessaE
|
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")
|
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 852 B |
Before Width: | Height: | Size: 827 B After Width: | Height: | Size: 827 B |
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 671 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 135 B |
Before Width: | Height: | Size: 316 B After Width: | Height: | Size: 316 B |