跳到正文

DisCraft

作者:littlechasiu

Discord-Minecraft chat bridge for Fabric, supports Placeholder API.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

DisCraft

Available for Fabric
Requires Fabric API
Requires Fabric Kotlin

Available on GitHub
Available on Modrinth
Find me on Discord

A Discord chat bridge for Fabric, using the Placeholder API. Send messages in-game and have them relayed to Discord, and vice-versa. Also supports Discord mentions, emotes, and attachments.

Configuration

DisCraft can be configured by editing discraft.json in your server’s config directory.

{
  "token": "DISCORD_BOT_TOKEN",
  "webhook": "DISCORD_WEBHOOK_URL",
  "server": 241543903,
  "chat_channel": 241543903,

  // Formats for messages displayed after certain server events.
  // Supports Placeholder API's Simplified Text Format.
  // All non-message events are displayed as embeds on Discord.

  "server_started": ":white_check_mark: Server started",
  "server_stopped": ":octagonal_sign: Server stopped",
  "player_join": "%player:name% joined the game",
  "player_leave": "%player:name% left the game",

  "advancement_goal": "%player:name% has reached the goal %disc:advancement%!",
  "advancement_task": "%player:name% has made the advancement %disc:advancement%!",
  "advancement_challenge": "%player:name% has completed the challenge %disc:advancement%!",

  "discord_to_mc": "<aqua>[DC] %disc:nickname%</aqua>: %disc:message%",
  "discord_to_mc_reply": "<aqua>[DC] %disc:nickname%</aqua> <gray>(reply to</gray> %disc:reply_to%<gray>)</gray>: %disc:message%",

  // URL to obtain the player's icon from
  "avatar_url": "https://crafatar.com/avatars/%s?overlay"
}

常见问题

DisCraft 支持哪些 Minecraft 版本?

DisCraft 支持 Minecraft Java 版 1.19–1.19.2,共 3 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

DisCraft 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

littlechasiu 的其他作品

查看全部 →