add recipes

master
FaceDeer 2020-01-21 20:12:12 -07:00
parent e64a3ef9f0
commit e5d0c42640
2 changed files with 21 additions and 1 deletions

View File

@ -406,11 +406,21 @@ local function register_board(board_name, board_def)
minetest.register_node(board_name, bulletin_board_def)
end
if minetest.get_modpath("default") then
register_board("bulletin_boards:bulletin_board_basic", {
desc = S("Public Bulletin Board"),
cost = "default:paper",
icons = base_icons,
})
minetest.register_craft({
output = "bulletin_boards:bulletin_board_basic",
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'group:wood', 'default:paper', 'group:wood'},
{'group:wood', 'group:wood', 'group:wood'},
},
})
register_board("bulletin_boards:bulletin_board_copper", {
desc = S("Copper Board"),
@ -418,3 +428,12 @@ register_board("bulletin_boards:bulletin_board_copper", {
foreground = "bulletin_boards_frame_copper.png",
icons = base_icons,
})
minetest.register_craft({
output = "bulletin_boards:bulletin_board_copper",
recipe = {
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
{"default:copper_ingot", 'default:paper', "default:copper_ingot"},
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
},
})
end

View File

@ -1,2 +1,3 @@
name=bulletin_boards
description = Allows creation of global bulletin boards where players can post public messages
description = Allows creation of global bulletin boards where players can post public messages
optional_depends = default