1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-05 10:00:26 +01:00

Commented a few unknown recipes and added warning message

- Added a warning message from unified_inventory when it detects a recipe involving
   an unknown item. Can be activated in minetest.conf with "show_unknown_craftrecipes" setting.
 - Commented a few of our unknown craft recipes
This commit is contained in:
LeMagnesium 2015-08-04 15:40:46 +02:00
parent 3725f21989
commit 388a29ef49
4 changed files with 13 additions and 10 deletions

View File

@ -950,7 +950,7 @@ minetest.register_craft( {
-- cotton versions:
minetest.register_craft( {
--[[minetest.register_craft( {
type = "shapeless",
output = "homedecor:rug_small 8",
recipe = {
@ -959,7 +959,7 @@ minetest.register_craft( {
"cotton:blue",
"cotton:black"
},
})
})]] -- Disabled. All recipe's items are unknown. //MFF(Mg|08/04/15)
minetest.register_craft( {
output = "homedecor:rug_persian 8",
@ -2091,13 +2091,13 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
--[[minetest.register_craft( {
output = "homedecor:dishwasher_marble",
recipe = {
{ "technic:slab_marble_1" },
{ "homedecor:dishwasher" },
},
})
})]] -- Disabled. Item technic:slab_marble_1 is unknown. //MFF(Mg|08/04/15)
minetest.register_craft( {
output = "homedecor:dishwasher_granite",

View File

@ -1063,13 +1063,13 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
--[[minetest.register_craft( {
output = "signs:sign_wall_blue 2",
recipe = {
{ "dye:blue", "dye:white", "dye:blue" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
})]] -- Disabled. steel:sheet_metal is unknown //MFF(Mg|08/04/15)
minetest.register_craft( {
output = "signs:sign_wall_brown 4",
@ -1079,13 +1079,13 @@ minetest.register_craft( {
},
})
minetest.register_craft( {
--[[minetest.register_craft( {
output = "signs:sign_wall_brown 2",
recipe = {
{ "dye:brown", "dye:white", "dye:brown" },
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
})]] -- Disabled. steel:sheet_metal is unknown //MFF(Mg|08/04/15)
if minetest.setting_get("log_mods") then
minetest.log("action", S("signs loaded"))

View File

@ -405,7 +405,7 @@ minetest.register_alias("farming_plus:rubber_sapling", "moretrees:rubber_tree_sa
minetest.register_alias("farming:rubber_sapling", "moretrees:rubber_tree_sapling")
minetest.register_alias("default:junglesapling","moretrees:jungletree_sapling")
minetest.register_alias("moretrees:jungletree_trunk_sideways", "moreblocks:horizontal_jungle_tree")
minetest.register_alias("moretrees:jungletree_trunk_sideways", "default:jungletree") -- Item Changed. moreblocks:horizontal_jungle_tree is unknown. //MFF(Mg|08/04/15)
minetest.register_alias("moretrees:jungletree_trunk", "default:jungletree")
minetest.register_alias("moretrees:jungletree_planks", "default:junglewood")
@ -426,4 +426,4 @@ minetest.register_alias("conifers:leaves_special", "moretrees:fir_leaves_bright"
minetest.register_alias("conifers:sapling", "moretrees:fir_sapling")
-- Overriding moretrees' palm leaves:
minetest.override_item("moretrees:palm_leaves",{walkable = false})
minetest.override_item("moretrees:palm_leaves",{walkable = false})

View File

@ -27,6 +27,9 @@ minetest.after(0.01, function()
if (not groupchk and not minetest.registered_items[chk])
or (groupchk and not unified_inventory.get_group_item(string.gsub(chk, "group:", "")).item) then
unknowns = true
if minetest.setting_getbool("show_unknown_craftrecipes") then
minetest.log("error", "Recipe for item " .. recipe.output .. " contains unknown item " .. chk)
end
end
end