
Reconnect
本模组取代了 HiWord9 的 Reconnect Button 模组,支持 Minecraft 1.20.1–1.21.11 和 26.1–26.3。
- 此模组在多人游戏世界的游戏内菜单屏幕上添加了一个重连按钮。
- 新增:断开连接屏幕中包含一个 立即重连 (Reconnect Now) 按钮,它会在 3、10、30 和 60 秒后自动重试,连续四次失败后停止。∞ 按钮可切换每 3 秒无限重试模式。返回服务器列表或取消连接将停止重试。
- 你也可以通过在聊天栏中输入
/reconnect 来重新连接到服务器。
- 从版本
1.4 开始,你终于可以重新连接到 Realms 服务器。

支持的版本
| Minecraft |
Fabric |
NeoForge |
Forge |
Java |
| 1.20.1–1.20.4 |
是 |
是 |
是 |
17 |
| 1.20.5 |
是 |
是 |
无发布版 |
21 |
| 1.20.6, 1.21, 1.21.1 |
是 |
是 |
是 |
21 |
| 1.21.2 |
是 |
是 |
无发布版 |
21 |
| 1.21.3–1.21.11 |
是 |
是 |
是 |
21 |
| 26.1, 26.1.1, 26.1.2, 26.2, 26.3 |
是 |
是 |
是 |
25 |
请使用与你的 Minecraft 版本和加载器匹配的 JAR 文件。
这个模组会登陆 CurseForge 吗?
依赖项与不兼容项
已知问题
构建项目
请使用 Java 25 运行 Gradle。Gradle 会自动解析旧目标所需的 Java 17 和 Java 21 工具链。
要从本仓库获取文件:
git clone https://github.com/59xa/reconnect-mod-reloaded/
cd reconnect-mod-reloaded
./gradlew build
构建过程使用 Stonecutter 从共享的 common、fabric、neoforge 和 forge 源代码树构建所有支持的版本。生成的 JAR 文件写入 build/libs/<minecraft-version>/。
要构建单个版本或选定的一组版本:
./gradlew -Pbuild_versions=26.3 build
./gradlew -Pbuild_versions=26.1,26.2,26.3 build
./gradlew -Pbuild_versions=1.20.1 -Pbuild_loaders=fabric build
在 Windows 上,请使用 ./gradlew.bat 并对属性参数加上引号,例如 ./gradlew.bat "-Pbuild_versions=26.3" build。
运行开发客户端的命令为 ./gradlew -Pbuild_versions=1.20.1 :fabric:1.20.1:runClient、./gradlew -Pbuild_versions=1.20.1 :neoforge:1.20.1:runClient 或 ./gradlew -Pbuild_versions=1.20.1 :forge:1.20.1:runClient。
版本依赖项位于 versions/<minecraft-version>/gradle.properties 中。API 差异位于按版本选择的 compat 源目录中。Reconnect 行为和命令注册在所有加载器之间共享。混淆游戏版本的 Fabric JAR 文件会被重映射为中间名称(intermediary names),而通过 1.20.4 的 Forge JAR 文件则使用 SRG 名称。Forge 和 NeoForge 1.20.1 构建包含 Mixin refmaps;NeoForge 1.20.1 使用原始的 Forge 包。CI 会对每个 Minecraft 目标进行构建,并检查打包 JAR 的内容和元数据。
Forge 1.20.3 使用单独的 ForgeGradle 构建脚本,因为其原始的 Loom 开发引导程序未公开发布。
26.x Forge 构建针对 Java 21 字节码和 Mixin 兼容性,因为 Forge 自带 Mixin 0.8.7。它们使用 Java 25 进行编译和运行,这是 Minecraft 的要求。
活动的 IDE 版本默认为 26.3。使用 ./gradlew "Set active project to 26.1" 更改它,然后在提交之前运行 ./gradlew "Reset active project"。使用 build_versions 进行的定向构建不会更改活动的 IDE 版本。
鸣谢
- HiWord9 的实现 (链接)
- Fabric (链接)
- Forge (链接)
- NeoForge (链接)
- Stonecutter by KikuGie (链接) - 使得回溯移植变得可能且高效
- 你(感谢你尝试这个模组!?)

Reconnect
A mod that supersedes HiWord9's Reconnect Button mod, supporting Minecraft 1.20.1–1.21.11 and 26.1–26.3.
- This mod adds a reconnect button on your in-game menu screen while in a Multiplayer world.
- NEW: The disconnected screen includes a Reconnect Now button which automatically retries after 3, 10, 30 and 60 seconds, stopping after four failed attempts. The ∞ button toggles unlimited retries every 3 seconds. Returning to the server list or cancelling a connection stops retries.
- You can also reconnect to a server by typing
/reconnect in chat.
- You can finally reconnect to a Realms server starting with version
1.4.

Supported versions
| Minecraft |
Fabric |
NeoForge |
Forge |
Java |
| 1.20.1–1.20.4 |
Yes |
Yes |
Yes |
17 |
| 1.20.5 |
Yes |
Yes |
No release |
21 |
| 1.20.6, 1.21, 1.21.1 |
Yes |
Yes |
Yes |
21 |
| 1.21.2 |
Yes |
Yes |
No release |
21 |
| 1.21.3–1.21.11 |
Yes |
Yes |
Yes |
21 |
| 26.1, 26.1.1, 26.1.2, 26.2, 26.3 |
Yes |
Yes |
Yes |
25 |
Please use the JAR file matching your Minecraft version and loader.
Will this mod come to CurseForge?
- There are currently no plans of bringing this mod to Curseforge. For now this mod is available for download on releases page or on Modrinth
Dependencies and Incompatibilities
- There are currently no incompatibilities seen with this mod at the moment.
Known issues
Building the project
Please run Gradle with Java 25. Gradle resolves the Java 17 and Java 21 toolchains required by older targets automatically.
To get the files from this repository:
git clone https://github.com/59xa/reconnect-mod-reloaded/
cd reconnect-mod-reloaded
./gradlew build
The build uses Stonecutter to build all supported versions from the shared common, fabric, neoforge and forge source trees. Finished jars are written to build/libs/<minecraft-version>/.
To build one version or a selection of versions:
./gradlew -Pbuild_versions=26.3 build
./gradlew -Pbuild_versions=26.1,26.2,26.3 build
./gradlew -Pbuild_versions=1.20.1 -Pbuild_loaders=fabric build
On Windows, use ./gradlew.bat and quote the property argument, for example ./gradlew.bat "-Pbuild_versions=26.3" build.
Run a development client with ./gradlew -Pbuild_versions=1.20.1 :fabric:1.20.1:runClient, ./gradlew -Pbuild_versions=1.20.1 :neoforge:1.20.1:runClient or ./gradlew -Pbuild_versions=1.20.1 :forge:1.20.1:runClient.
Version dependencies live in versions/<minecraft-version>/gradle.properties. API differences live in version-selected compat source directories. Reconnect behaviour and command registration are shared across loaders. Fabric jars for obfuscated game versions are remapped to intermediary names, and Forge jars through 1.20.4 use SRG names. The Forge and NeoForge 1.20.1 builds include Mixin refmaps; NeoForge 1.20.1 uses the original Forge packages. CI builds every Minecraft target and checks the contents and metadata of the packaged jars.
Forge 1.20.3 uses a separate ForgeGradle build script because its original Loom development bootstrap is unpublished.
The 26.x Forge builds target Java 21 bytecode and Mixin compatibility because Forge ships Mixin 0.8.7. They compile and run with Java 25, as required by Minecraft.
The active IDE version defaults to 26.3. Change it with ./gradlew "Set active project to 26.1", then run ./gradlew "Reset active project" before committing. Targeted builds using build_versions leave the active IDE version unchanged.
Credits
- HiWord9's implementation (link)
- Fabric (link)
- Forge (link)
- NeoForge (link)
- Stonecutter by KikuGie (link) - for making backporting possible and efficient
- You (for giving this mod a try! ?)
评论 0
登录后参与评分
还没有评论,来抢沙发吧