AutoAfkSleep

Quick rating

AutoAfkSleep

No reviews yet

Automatically sleep when AFK! Features chat monitoring, disconnect phrases, and customizable failure actions. Perfect for AFK farms and idle players.

Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Unsupported

About

Project Details

Type
Mod
License
Apache License 2.0
Latest Version
1.3.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

AutoAFK Sleep - Automatic Bed Usage & Hunger Management for AFK Players (v1.2.1)

Never worry about surviving the night or starving while AFK again! This client-side mod automatically uses nearby beds when night falls and manages your hunger, keeping you safe and fed while you're away from your keyboard.

✨ Key Features

🛏️ Smart Auto-Sleep System

  • Automatically detects nighttime and attempts to sleep
  • Must be within 2 blocks of a bed (Minecraft's interaction range)
  • Only works in the Overworld for safety (beds explode in other dimensions!)
  • Intelligent timing system with optimized performance - checks more frequently as night approaches

🍖 Auto-Eat Feature (New in v1.2.0, Fixed in v1.2.1)

  • Automatically eats food when hunger drops below configurable threshold
  • Smart food selection algorithm:
    • Prioritizes safe, non-magical food (bread, meat, vegetables)
    • Avoids poisonous items (rotten flesh, spider eyes, poisonous potatoes)
    • Saves magical food (golden apples, enchanted items) for manual use
    • Configurable settings:
      • Hunger threshold (default: 14/20)
      • Minimum food value filter
      • Option to include stews and soups
    • Auto-disconnect when critically hungry with no safe food available
    • v1.2.1 Fix: Resolved critical slot selection issue - AutoEat now works reliably

💬 Chat Monitoring & Auto-Response

  • Responds to direct messages and @mentions while you're AFK
  • Fully customizable response message
  • Built-in 30-second cooldown to prevent spam
  • Automatically informs players how to make you disconnect if needed

🚪 Remote Disconnect Feature

  • Set a custom phrase that allows trusted players to disconnect you
  • Works with ANY chat message type (public, private, or even your own!)
  • Perfect for server admins or friends who need to reach you urgently
  • Default phrase: "afk-logout" (fully customizable)

⚙️ Flexible Failure Handling When unable to sleep, choose your preferred action:

  • No Action - Simply logs the failure
  • Auto-Disconnect - Safely disconnects from the server
  • Custom Command - Executes any command (e.g., /spawn, /home, /warp afkspot)

⚡ Performance Optimized (v1.1.0+)

  • Intelligent scheduling reduces CPU usage by up to 90%
  • Non-blocking operations ensure smooth gameplay
  • Configurable timing parameters for all features
  • Minimal server impact with smart polling intervals

📋 Requirements

  • Minecraft: 1.21.8+
  • Fabric Loader: 0.16.0+
  • Fabric API: Required (install separately)
  • Environment: Client-side only (no server installation needed)

🎮 Quick Start

  1. Install the mod with Fabric API
  2. Join your world/server
  3. Press K to open settings or use /autoafksleep enable
  4. Place a bed within 2 blocks of your AFK spot
  5. Configure your preferences and go AFK with confidence!

🔧 Commands

  • /autoafksleep enable - Enable the mod
  • /autoafksleep disable - Disable the mod
  • /autoafksleep status - Check current status
  • /autoafksleep ui - Open configuration GUI
  • /autoafksleep help - View all commands

🤝 Compatibility

This mod is client-side only and works on:

  • Single-player worlds
  • Multiplayer servers (no server-side installation required)
  • Realms (where you have permission to sleep)
  • Works alongside other mods

📝 License

Licensed under Apache 2.0 - You're free to use, modify, and redistribute with attribution.

🙏 Acknowledgments

Special thanks to the players at MCVerse City for testing and providing valuable feedback during development!

https://mcverse.city/


Perfect for AFK farms, long building sessions, or any time you need to step away from the game! Stay safe from mobs and hunger while maintaining your server presence. Version 1.2.1 brings reliable AutoEat functionality to keep you fed during those long AFK sessions!

Screenshots

Gallery

  • UI
    UI Take a specified action when sleep is not possible (nothing, disconned, custome command)
  • UI Key binding
    UI Key binding Open the UI via command /autoafksleep ui, or set a key bind
  • Bed
    Bed Auto sleeps within two blocks of an available bed.
  • Instructions Included
    Instructions Included Mod has it's own instructions built it
  • Sleeping
    Sleeping Sleeping takes place as normal
  • Simple UI
    Simple UI Multiple options let you customize what happens.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works