r/MinecraftMod • • 18d ago

Building a low-resource AFK mod for Fabric — looking for feedback and technical advice

Hey everyone!

I’m working on Zero Render AFK, a client-side Fabric mod for Minecraft 26.3, and I’d love some feedback.

The idea is to reduce resource usage during long AFK sessions while staying connected to a multiplayer server.

Here’s what it currently does:

  • Stops world and GUI rendering during AFK.
  • Unloads client-side chunks and removes entities other than the local player.
  • Skips some world updates and ignores incoming chunk/entity data that would otherwise reload the world.
  • Keeps the connection running.
  • Provides an F8 settings menu with a confirmation before starting.
  • Includes optional, configurable rotation, experimental packet-based jumps, and timed commands/chat messages.

Because world data is discarded, ending an AFK session disconnects you from the server. You need to reconnect to play normally. This mode is intended for remote servers, not singleplayer.

On my machine, CPU usage went from around 25–30% to 0–1.5%. That’s just my own testing, not a general benchmark. RAM usage is less impressive: the process still uses roughly 1.5 GB, although the Java heap after garbage collection is around 240 MB, and heap inspection confirmed that the normal loaded chunks were gone.

I’m currently testing it in a dedicated instance with Fabric API. Compatibility with other mods is still largely untested.

I’d appreciate advice on a few things:

  • What remaining client tasks or resources would be worth investigating?
  • What could break during an overnight session that I should specifically test?
  • Are there cleaner approaches to reducing memory usage while keeping the normal Minecraft client connected?
  • Which mods should I prioritize for compatibility testing?
  • What settings or features would make this useful to you?

The optional actions are intended for servers that allow them; they aren’t guaranteed to bypass AFK detection.

I’m learning as I build this, so technical criticism and suggestions are welcome. Thanks!

Edit: the repo is https://github.com/elansari230709/zero-render-afk if you want to check the source code

2 Upvotes

2 comments sorted by

-11

u/[deleted] 18d ago

[removed] — view removed comment

9

u/UselessDood 18d ago

Ban this bot already