MsHai AFK
一款客户端 Fabric 模组,用于自动化在 AesirMC Minecraft 服务器中挂机(AFK)的重复步骤。它会自动为你登录、从服务器菜单中选择游戏模式、移动到挂机区域,并在重启或断开连接后帮你回到原位。
由 MsHai 制作
功能
-
自动登录。 在重生后发送 /login <password>,并等待服务器的确认。
-
游戏模式选择。 打开服务器菜单(下界之星)并点击你选择的子服务器——Towny、ASMP、Skyblock、BoxPVP、MMORPG 或 Faction。列表是从菜单中自动读取的,因此即使服务器调整了内容,它也能继续正常工作。
-
AFK 区域。 在支持的模式下,运行 /afk 并点击你选择的 AFK 区域。
-
队列处理。 如果该模式已关闭或已满,服务器会将你加入队列,并可能将你踢出。模组会每 15 秒重新尝试加入队列,直到你真正进入为止。
-
资源包感知。 在点击任何内容之前,会等待服务器的材质包加载完成。
-
自动重连。 如果你被踢出或失去连接,它会进行倒计时并尝试重新连接——并且会持续重试直到成功。如果是你主动断开连接,则不会触发此功能。
-
大厅重新加入。 如果服务器重启仅将你的游戏模式切换到大厅(而不会踢出你),模组会检测到这一情况,并将你直接返回到之前的游戏模式,无需重新登录。
-
自动跳跃。 让你持续跳跃以避免被系统判定为挂机(AFK)。可通过按 Ctrl + 左 Shift + J 切换开关。
-
状态显示。 在左上角显示当前所处的步骤。
本模组没有经济系统、交易功能、/pay 命令或任何形式的物品处理——这些内容已被有意移除。
使用方法
使用 Ctrl + Left Shift + K 打开设置界面 —— 在主菜单和游戏内均可用。界面为完全自定义绘制,按功能分组并配有简单的开关。
| 设置项 |
功能说明 |
| Auto login |
加入服务器后自动执行完整登录流程 |
Auto /login |
重生后自动发送你的密码 |
| Reconnect / Delay |
断线后自动重连,以及等待时长 |
| Target mode |
选择要进入的子服务器模式 |
| AFK area / AFK zone |
执行 /afk 命令并点击你选择的区域(并非所有模式都可用) |
| Wait for texture pack |
在资源包加载完成前不执行任何操作 |
| Lobby rejoin |
如果被踢回大厅,自动返回到你所在的模式 |
| Auto jump |
保持持续跳跃(也可通过 Ctrl + Left Shift + J 切换) |
| Server address / Password |
文本输入框 |
一次性 AFK 区域设置
/afk 菜单中的所有区域均使用相同的物品,因此通过**标签(label)**进行匹配。列表会在首次打开菜单时自动填充:
- 加入对应模式,自行输入一次
/afk。
- 按下 Ctrl + Left Shift + K,然后点击 AFK zone 以循环浏览各个区域。
- 开启 AFK area。
此后即可全自动运行。
版本支持
Minecraft 1.21 – 1.21.11。 每个 Minecraft 版本都有独立的 jar 文件——请下载与你游戏版本匹配的那一个。在此版本范围内,Minecraft 的客户端 API 更改了两次(分别在 1.21.2 和 1.21.9),因此单个 jar 无法兼容所有版本。每个 jar 文件都精确绑定到其对应版本,如果你安装了错误的版本,Fabric 将拒绝加载它,而不会导致游戏崩溃。
不支持 26.1 和 26.2 —— Fabric 在这些版本中切换到了不同的映射(mappings)。
依赖要求
- Fabric Loader
- Fabric API
- Java 21
注意事项
- 你的密码以明文形式存储在
config/mshaiafk.json 中。如果你与他人共用电脑,请务必注意这一点。
- 此模组会代替你发送指令和点击菜单。请确保你所游玩的服务器的规则允许此类操作。
- 仅适用于客户端——无需在服务器上安装。
MsHai AFK
A client-side Fabric mod that automates the repetitive steps of staying AFK on the AesirMC Minecraft server. It logs in for you, picks your game mode from the server's menu, moves to the AFK area, and gets you back in place after a restart or a disconnect.
Made by MsHai
Features
- Auto login. Sends
/login <password> after spawn and waits for the server's confirmation.
- Game mode selection. Opens the server menu (nether star) and clicks the sub-server you chose — Towny, ASMP, Skyblock, BoxPVP, MMORPG or Faction. The list is read from the menu automatically, so it keeps working if the server changes things around.
- AFK area. On supported modes it runs
/afk and clicks the AFK zone you picked.
- Queue handling. If the mode is closed or full, the server puts you in a queue and can drop you from it. The mod keeps re-joining the queue every 15 seconds until you actually get in.
- Resource pack aware. Waits until the server's texture pack has finished loading before clicking anything.
- Auto reconnect. If you get kicked or lose connection, it counts down and reconnects — and keeps retrying until it succeeds. It does nothing if you disconnect on purpose.
- Lobby rejoin. If the server restarts only your game mode and drops you to the lobby (without kicking you), the mod detects it and returns you to your mode without logging in again.
- Auto jump. Keeps you jumping so you don't get flagged as AFK. Toggle with Ctrl + Left Shift + J.
- Status display. Shows the current step in the top-left corner.
There is no economy, trading, /pay or item handling of any kind — intentionally left out.
Usage
Open the settings screen with Ctrl + Left Shift + K — works both in the main menu and in-game. The interface is fully custom-drawn, grouped into sections with simple on/off switches.
| Setting |
What it does |
| Auto login |
Runs the whole flow after you join |
Auto /login |
Sends your password after spawn |
| Reconnect / Delay |
Reconnects after a disconnect, and how long it waits |
| Target mode |
Which sub-server to enter |
| AFK area / AFK zone |
Runs /afk and clicks the zone you picked (not available on every mode) |
| Wait for texture pack |
Doesn't act until the pack is loaded |
| Lobby rejoin |
Returns you to your mode if you get dropped to the lobby |
| Auto jump |
Keeps you jumping (also Ctrl + Left Shift + J) |
| Server address / Password |
Text fields |
One-time AFK area setup
The zones in the /afk menu all use the same item, so they are matched by their label. The list fills itself the first time the menu is opened:
- Join the mode and type
/afk once yourself.
- Press Ctrl + Left Shift + K and click AFK zone to cycle through the zones.
- Turn AFK area on.
After that it is fully automatic.
Version support
Minecraft 1.21 – 1.21.11. Every Minecraft version has its own jar — download the one that matches your game. Minecraft changed its client API twice in this range (in 1.21.2 and 1.21.9), so a single jar cannot cover all of them. Each jar is pinned to its exact version, so if you install the wrong one Fabric will simply refuse to load it instead of breaking your game.
26.1 and 26.2 are not supported — Fabric moved to different mappings in those versions.
Requirements
- Fabric Loader
- Fabric API
- Java 21
Notes
- Your password is stored in plain text in
config/mshaiafk.json. Keep that in mind if you share your computer.
- This mod sends commands and clicks menus on your behalf. Make sure the rules of the server you play on allow this.
- Client-side only — you do not need to install it on a server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧