Description
Simple AFK Mod – Smarter AFK, fair sleeping, fun challenges
Tired of AFK players blocking the night? This mod automatically detects AFK, excludes AFK & spectators from sleep requirements, and adds a few playful challenges around going idle—without punishing anyone who just needs a break.
Features
- Auto-AFK detection with action-bar feedback (“You are AFK / You are no longer AFK”).
- Fair sleeping: only active (non-AFK, non-spectator) players count toward the sleep percentage.
- AFK time tracking: The mod writes AFK time to: `<world>/simple_afk_mod/afk_times.json` (in seconds), suitable for external tools like Discord bots.
- Safety for AFK players: prevents targeted aggro & area-damage triggers nearby (e.g., creepers).
- AFK Aura (cosmetic, green “protective” ring) unlocked by Statue Garden with
/afkauratoggle. - Fully bilingual: English and German.
- AFK-themed advancements (challenge frame, hidden until you complete them):
- Solid as a Rock
- Power Nap
- Statue Garden
- AFK Marathon
Server-Friendly
- Works on servers and single-player (integrated server).
- AFK team label
[AFK]in dark purple; AFK state cleared on join. - Sleep percentage recalculates on join/leave and AFK toggles.
Compatibility
- NeoForge 21.8.x / 21.9.x (MC 1.21.8 / 1.21.9)
- Pure server logic — no client mods required for core features.
Changelog
v1.5.3
- Added bilingual support: English (en_us) and German (de_de) for all chat messages and advancement toasts.
- More robust advancement awarding when leaving AFK.
- Minor internal cleanups.
v1.5.2
- Sleep percentage logic made robust: counts only non-spectators, recalculates on join/leave/world-load, and no more accidental resets to 100%.
- On world load: AFK team ensured and cleaned; on logout: no AFK state mutations, only recalculation.
- AFK Aura visuals switched to green “protective” puffs and now require “Statuengarten” + toggle.
- AFK Marathon: fixed ID to afk_marathon, grants only when leaving AFK, toast shown once.
- Removed /afkpose (kept internal flag for future use).
- Small message/UX tweaks.
v1.5.1
- Added advancements: Power Nap, Statuengarten, AFK Marathon (all depend on “Solid as a Rock”; awarded on leaving AFK).
- Implemented aura unlock via Statuengarten and /afkaura toggle.
- Fixed crashy name lookups by using safe player name components.
- General stability fixes around AFK transitions.
v1.5.0
- Core AFK system rework: auto-AFK after idle, manual toggle procedure, action-bar feedback.
- AFK players moved to a purple [AFK] team prefix.
- Added persistent AFK time storage at <world>/simple_afk_mod/afk_times.json (in seconds) for external tools/bots.
- Initial sleeping percentage integration tied to AFK state.


