promotional bannermobile promotional banner

简单聊天翻译(simple auto-translation)

Auto-translates Minecraft chat and keeps the original. MyMemory / Google / DeepL / OpenAI-compatible. In-game YACL config. Forge 1.20.1 client.

A simple auto-translation mod — never get lost in foreign chat again! 一个简单的自动翻译模组,妈妈再也不用担心我看不懂别人说话啦!

Currently in testing — bugs may occur. / 目前仍在测试中,可能存在错误。

Features / 功能

  • Auto-translates incoming chat and keeps the original text / 自动翻译收到的聊天消息,并保留原文
  • Optional system-message translation (NPC & mod dialogue) / 可选翻译系统消息(NPC、模组剧情对话)
  • Multiple providers: MyMemory (no key), Google, DeepL, and OpenAI-compatible APIs (OpenRouter, MiMo, ...) / 多翻译后端:MyMemory 免费无密钥、Google、DeepL、OpenAI 兼容接口(OpenRouter、MiMo 等)
  • Built-in in-game config screen (YACL) with full Chinese UI / 内置 YACL 游戏内中文配置界面
  • Response cache, request queue, timeout and length filters / 翻译缓存、请求队列、超时与长度过滤
  • Toggle anytime with a command / 随时开关

Requirements / 环境要求

  • Minecraft 1.20.1 + Forge 47.x (client-side only / 仅客户端)
  • Java 17
  • YetAnotherConfigLib (YACL) 3.6.6+ — required / 必需前置

Usage / 使用方法

  1. Drop the jar (and YACL) into your mods folder / 把本模组和 YACL 放进 mods 文件夹
  2. Open the config via Mods → 自动聊天翻译 → 配置 or /ctrans config / 从模组页"配置"按钮或命令打开设置
  3. Pick a provider, fill in the API key if needed, set your target language (default zh)

Commands / 命令

Command Description
/ctrans or /ctrans status Show current status / 查看状态
/ctrans toggle Enable / disable translation / 开关翻译
/ctrans config Open the config screen / 打开配置界面
/ctrans test <text> Test your setup with any text / 测试翻译是否可用

Privacy / 隐私说明

Chat messages to be translated are sent to the translation provider you selected (e.g. MyMemory's public API or your chosen LLM endpoint). API keys are stored in plain text in your local config file — never share your config or use a key you don't trust. 被翻译的聊天内容会发送到你选择的翻译服务(如 MyMemory 公共接口或你配置的大模型接口)。API 密钥以明文保存在本地配置文件中,请勿分享配置文件或使用来路不明的密钥。

Configuration file / 配置文件

config/autochattranslator-client.toml — every option has Chinese comments and stays in sync with the in-game screen. 所有选项均有中文注释,与游戏内界面实时同步,保存后立即生效,无需重启。

License

MIT

简单聊天翻译(simple auto-translation) Team

profile avatar
Owner
  • 1
    Projects
  • 9
    Downloads