Inspired by a Reddit post entitled Why can’t they make a way to STOP losing days if you go afk by accident…
I made a mod that stops time if you go AFK.
By default this mod will pause the game if it doesn't receive cursor movement or button press for 60 seconds. Any player input including cursor movement will restart the timer.
You can change the number of seconds in the config or GMCM menu.
You can also have the mod display a scroll with text that says "AFK" in the middle of the screen by enabling it in the config.
By default the mod now pauses the game rather than just stopping the game clock. This is equivalent to having a menu open. If you turn off FreezeGame in the config, things like character movement will continue while AFK but time will not progress.
Config
You can edit the config.json file that is created when first running the game or use GMCM.
Technical
Requires SMAPI, uses Harmony.
Implements a Generic Mod Config Menu interface to change config settings in-game.
Compatible with Mod Updater for automatic updates.
Code is at https://www.curseforge.com/members/erinthe.
If you want to complain or ask for help or help me test my mods, you can visit my Discord server.
A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.