Tags
Creators
Details
Licensed Apache-2.0
Published last year
Updated last year
All versions
1.2.1
Release
AutoAfkSleep 1.2.1last year 257
Compatibility
Minecraft: Java Edition
1.21–1.21.8
Platform
Fabric
Supported environments
Client-side
Changes
[1.2.1] - 2025-08-15
Fixed
- AutoEat Slot Selection: Fixed critical issue where food wouldn't be selected properly
- Added Mixin accessor to properly access and modify the selected hotbar slot
- Now correctly switches to food slot before attempting to eat
- Synchronizes slot changes with server using packets
- Log Spam: Removed excessive logging from overlay messages (coordinates, etc.)
- Code Quality: Removed all blocking operations, improved state management
Technical
- Implemented Mixin system for accessing private PlayerInventory.selectedSlot field
- Simplified slot switching logic - direct modification instead of complex workarounds
- Better error handling and state validation
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:70PMZ1cL:8mEqTOs9"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:70PMZ1cL:8mEqTOs9"
}

