forked from mtcontrib/signs_lib
Use minetest_game steel sign to craft the various colored metal signs
instead of using steel ingots. Reduced yield to one per craft. (the "sheet metal" recipes still exist for users of "steel" mod, yield there is unchanged)
This commit is contained in:
parent
fef163662a
commit
931a3e2b15
44
init.lua
44
init.lua
@ -141,6 +141,8 @@ else
|
|||||||
default_sign_image = "default_sign_wall.png"
|
default_sign_image = "default_sign_wall.png"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
default_sign_metal = "default:sign_wall_steel"
|
||||||
|
|
||||||
--table copy
|
--table copy
|
||||||
|
|
||||||
function signs_lib.table_copy(t)
|
function signs_lib.table_copy(t)
|
||||||
@ -958,7 +960,7 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
--Alternate recipe.
|
--Alternate recipes.
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "locked_sign:sign_wall_locked",
|
output = "locked_sign:sign_wall_locked",
|
||||||
@ -968,13 +970,21 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "locked_sign:sign_wall_locked",
|
||||||
|
recipe = {
|
||||||
|
{default_sign_metal},
|
||||||
|
{"default:steel_ingot"},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- craft recipes for the metal signs
|
-- craft recipes for the metal signs
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_green 4",
|
output = "signs:sign_wall_green",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:dark_green", "dye:white", "dye:dark_green" },
|
{ "dye:dark_green", "dye:white", "dye:dark_green" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -987,10 +997,10 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_yellow 4",
|
output = "signs:sign_wall_yellow",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:yellow", "dye:black", "dye:yellow" },
|
{ "dye:yellow", "dye:black", "dye:yellow" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1003,10 +1013,10 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_red 4",
|
output = "signs:sign_wall_red",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:red", "dye:white", "dye:red" },
|
{ "dye:red", "dye:white", "dye:red" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1019,10 +1029,10 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_white_red 4",
|
output = "signs:sign_wall_white_red",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:white", "dye:red", "dye:white" },
|
{ "dye:white", "dye:red", "dye:white" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1035,10 +1045,10 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_white_black 4",
|
output = "signs:sign_wall_white_black",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:white", "dye:black", "dye:white" },
|
{ "dye:white", "dye:black", "dye:white" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1051,10 +1061,10 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_orange 4",
|
output = "signs:sign_wall_orange",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:orange", "dye:black", "dye:orange" },
|
{ "dye:orange", "dye:black", "dye:orange" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1067,10 +1077,10 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_blue 4",
|
output = "signs:sign_wall_blue",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:blue", "dye:white", "dye:blue" },
|
{ "dye:blue", "dye:white", "dye:blue" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -1083,10 +1093,10 @@ minetest.register_craft( {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "signs:sign_wall_brown 4",
|
output = "signs:sign_wall_brown",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "dye:brown", "dye:white", "dye:brown" },
|
{ "dye:brown", "dye:white", "dye:brown" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "", default_sign_metal, "" }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user