MineClonia/MineClone2 compatibility (#3)

This commit is contained in:
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org 2023-10-14 13:29:04 +02:00 committed by GitHub
parent 02951241de
commit 184b290634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 3 deletions

View File

@ -379,7 +379,9 @@ local function register_board(board_name, board_def)
local tile = background.."^"..generate_random_board(98, 7, board_def.icons).."^"..foreground
local bulletin_board_def = {
description = board_def.desc,
groups = {choppy=1},
groups = {choppy=1, axey=1, handy=1},
_mcl_hardness = 0.8,
_mcl_blast_resistance = 1,
tiles = {tile},
inventory_image = tile,
paramtype = "light",
@ -437,4 +439,38 @@ minetest.register_craft({
{"default:copper_ingot", "default:copper_ingot", "default:copper_ingot"},
},
})
end
end
if core.get_modpath("mcl_core") then
register_board("bulletin_boards:wood", {
desc = S("Public Bulletin Board"),
cost = "mcl_core:paper",
icons = base_icons,
})
core.register_craft({
output = "bulletin_boards:wood",
recipe = {
{'group:wood', 'group:wood', 'group:wood'},
{'group:wood', 'mcl_core:paper', 'group:wood'},
{'group:wood', 'group:wood', 'group:wood'},
},
})
if minetest.get_modpath("mcl_copper") then
register_board("bulletin_boards:copper", {
desc = S("Copper Board"),
cost = "mcl_copper:copper_ingot",
foreground = "bulletin_boards_frame_copper.png",
icons = base_icons,
})
core.register_craft({
output = "bulletin_boards:copper",
recipe = {
{"mcl_copper:copper_ingot", "mcl_copper:copper_ingot", "mcl_copper:copper_ingot"},
{"mcl_copper:copper_ingot", 'mcl_core:paper', "mcl_copper:copper_ingot"},
{"mcl_copper:copper_ingot", "mcl_copper:copper_ingot", "mcl_copper:copper_ingot"},
},
})
end
end

View File

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