summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua44
1 files changed, 27 insertions, 17 deletions
diff --git a/init.lua b/init.lua
index 4aa674a..fd1ca0d 100644
--- a/init.lua
+++ b/init.lua
@@ -141,6 +141,8 @@ else
default_sign_image = "default_sign_wall.png"
end
+default_sign_metal = "default:sign_wall_steel"
+
--table copy
function signs_lib.table_copy(t)
@@ -958,7 +960,7 @@ minetest.register_craft({
}
})
---Alternate recipe.
+--Alternate recipes.
minetest.register_craft({
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
minetest.register_craft( {
- output = "signs:sign_wall_green 4",
+ output = "signs:sign_wall_green",
recipe = {
{ "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( {
- output = "signs:sign_wall_yellow 4",
+ output = "signs:sign_wall_yellow",
recipe = {
{ "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( {
- output = "signs:sign_wall_red 4",
+ output = "signs:sign_wall_red",
recipe = {
{ "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( {
- output = "signs:sign_wall_white_red 4",
+ output = "signs:sign_wall_white_red",
recipe = {
{ "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( {
- output = "signs:sign_wall_white_black 4",
+ output = "signs:sign_wall_white_black",
recipe = {
{ "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( {
- output = "signs:sign_wall_orange 4",
+ output = "signs:sign_wall_orange",
recipe = {
{ "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( {
- output = "signs:sign_wall_blue 4",
+ output = "signs:sign_wall_blue",
recipe = {
{ "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( {
- output = "signs:sign_wall_brown 4",
+ output = "signs:sign_wall_brown",
recipe = {
{ "dye:brown", "dye:white", "dye:brown" },
- { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
+ { "", default_sign_metal, "" }
},
})