介绍
中文介绍正在准备中,下面暂时显示原文。
JustAFK
A server-side Minecraft Fabric mod (1.21.11) that adds an /afk command with invulnerability, movement blocking, and automatic exit on activity.
Features
/afkcommand — toggle AFK mode on/off- Invulnerability — no damage while AFK
- Movement lock — velocity zeroed every tick, position/rotation snapped back
- Auto-exit — detects keyboard input, mouse movement, and interactions (attack/use/break)
- On-screen title — periodic “You are now AFK” reminder
- Tab-list indicator — AFK names shown in grey/italic
- Chat broadcasts — notifies other players when someone goes AFK or returns
Requirements
| Dependency | Version |
|—|—|
| Minecraft | 1.21.11 |
| Fabric Loader | ≥0.19.2 |
| Fabric API | Any |
Installation
- Install Fabric Loader for Minecraft 1.21.11
- Place the mod
.jarin your server’smods/folder - Restart the server
No client-side installation is required — the mod runs entirely on the server.
Usage
/afk— toggle AFK mode- Move your mouse, press any movement key, or interact with the world to automatically exit AFK
Building
./gradlew build
The compiled jar will be at build/libs/just-afk-1.0.0.jar.
License
MIT
常见问题
Just-AFK 支持哪些 Minecraft 版本?
Just-AFK 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Just-AFK 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分