Craft recipe

This commit is contained in:
raymoo 2016-02-25 19:52:00 -08:00
parent 6e1f2727ec
commit 1b83375c8f

View File

@ -42,8 +42,9 @@ end
local function mk_mail_fs(p_name, results, err_str)
fs = "size[6,8]"
fs = fs .. "label[0,0;Inbox]"
if err_str then
fs = fs .. "label[0,0;Error: " .. err_str .. "]"
fs = fs .. "label[3,0;Error: " .. err_str .. "]"
end
fs = fs .. mk_inbox_list(results, 0, 1, 6, 6)
fs = fs .. "button[0,7;2,1;claim;Claim]"
@ -120,3 +121,13 @@ minetest.register_node("global_exchange:mailbox", {
minetest.show_formspec(p_name, mailbox_form, mk_mail_fs(p_name, res))
end,
})
minetest.register_craft( {
output = "global_exchange:mailbox",
recipe = {
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
{ "default:steel_ingot", "default:gold_ingot", "default:steel_ingot" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
}
})