if moreblocks is installed, don't register the three separate "roof"

items rather, alias them to the equivalents in moreblocks instead. don't
register cottages straw or wool anymore, alias them to farming straw and
white wool.
This commit is contained in:
Vanessa Ezekowitz
2017-02-23 10:13:05 -05:00
父節點 9cee087886
當前提交 524de7d302
共有 7 個文件被更改,包括 19 次插入31 次删除

查看文件

@@ -1,8 +1,8 @@
default?
farming
wool
stairs?
homedecor?
intllib?
trees?
wool?
moreblocks?

查看文件

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

查看文件

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

查看文件

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

查看文件

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

Binary file not shown.

Before

Width:  |  Height:  |  大小: 852 B

Binary file not shown.

Before

Width:  |  Height:  |  大小: 306 B