Home›Java›Mods›AFK Guardian
AFK Guardian
ModsJava

AFK Guardian

Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

by FedShved · on Modrinth

A mod which allows you to safely leave your pc and still be sure that you won't die to a random zombie or anything else. Stay aware of your status using…

⬇ Download on Modrinth

AFK Guardian lets you walk away from your PC mid-game without coming back to a death screen. The moment something starts hurting your character while you're AFK, it grabs a screenshot, disconnects you from the server, and sends the screenshot straight to your phone over Telegram — so a creeper, another player, lava, or starvation never quietly ends your session.

And it's two-way: from Telegram you can check your status, pull a live screenshot, or yank yourself off the server — all from your phone, on any server you join.

🛡️ Client-side only. You install it on your client; nothing goes on the server. Works on every server you join — no admin needed.

What it does

Control it from your phone

Message your bot from anywhere:

Works with or without Telegram

Leave the bot token empty and you still get the auto-disconnect-on-damage safety net. Telegram only adds the alerts and remote control on top.

Setup (Telegram, ~2 minutes)

  1. In Telegram, message @BotFather, send /newbot, and copy the bot token it gives you — it's free.
  2. In Minecraft, open Mods → AFK Guardian → Config (or edit config/afkguardian-client.toml) and paste the token into telegram.botToken.
  3. Join a world and send your bot /id — it replies with your chat id. (You must be in-game for this.) Put that number into telegram.chatId.
  4. Done. Walk away for the AFK threshold (default 5 min) and you'll get the "AFK detected" message.

Settings you can tune

In the in-game config screen or the config file: AFK delay, the health-drop threshold that counts as danger, whether to attach a screenshot, the low-hunger alert level, periodic-update interval, and whether to auto-disconnect at all.

Honest limitations — please read

Requirements

Minecraft 1.21.1 · NeoForge 21.1.x · client-side · MIT licensed.

💬 Found a bug or have an idea? Open an issue on the source repo — feedback very welcome.![The token can be put into the config file ]The pop up menu after pressing k

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more