跳到正文

HookRaft

作者:6marvil

NeoForge mod that bridges Minecraft Chat with external APIs.

收藏

介绍

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

HookRaft

HookRaft is a NeoForge mod that keeps your Minecraft chat in sync with external webhooks. Forward in-game chat to outside services, receive messages back, and even send webhook messages via /hook.

Example usage with n8n for in-minecraft chat bot

Highlights

  • Two-way chat bridge – send chat to your webhook and broadcast incoming payloads in-game.
  • Flexible filters – forward everything, use regex, or stick to /hook command messages.
  • Live configuration – adjust settings without restarting the server.
  • Asynchronous HTTP – non-blocking requests keep the server responsive.

Requirements

  • Minecraft 1.21.10
  • NeoForge 21.10+
  • Java 21+

Installation

  1. Drop the latest HookRaft JAR into your server’s mods folder.
  2. Start the server to auto-generate config/hookraft-server.toml.
  3. Edit that TOML to point at your outgoing webhook URL and tweak filters.

Example Configuration Snippet

[webhook]
outgoingWebhookUrl = "https://example.com/api/webhook"
incomingPort = 8000

[chat]
filterMode = "ALL"
displayMode = "HIGHLIGHTED"
senderName = "HookRaft"

[advanced]
connectionTimeout = 10000
debugLogging = false

Commands

  • /hook <message> – send a webhook message from chat.
  • /hookraft send <message> – alias for /hook.
  • /hookraft status – show mod health.
  • /hookraft list – list all settings.
  • /hookraft get <setting> – read a setting.
  • /hookraft set <setting> <value> – change a setting (OP level 2).

Webhook Format

  • Outbound:
  {
    "type": "chat",
    "player": "PlayerName",
    "message": "Hello world!",
    "timestamp": 109971141181051
  }
  • Inbound: POST /api/receive with message, text, or content.

Health Check

  • GET /api/health returns mod status, version, and player count.

Source Code

Source code can be obtained here.

常见问题

HookRaft 支持哪些 Minecraft 版本?

HookRaft 支持 Minecraft Java 版 1.21.10,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

HookRaft 怎么安装?

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

评论

登录后评论和评分