Mods / An AFK Story

Category: #Utility
Author: Syd
Side: Server
Created: Nov 28th 2024 at 7:42 PM
Last modified: Dec 14th 2024 at 7:57 PM
Downloads: 1114
Follow Unfollow 19

Latest file for v1.20.0-rc.1:
AnAFKStory-v0.9.3-1.19.0.zip 1-click install


Players, which stand around for 30 seconds, go "AFK". They have no hunger and get the "invulnerable" status. As soon as the player moves (or gets moved through NPCs shoving them) they will leave the AFK status.

 

You can set the AFK annoucement to be server wide or only you.

 

You can type /afk to set you AFK manually (disabled on default, but can be enabled in config)

 

  • The 30 Seconds are configurable in a config json. (set "MaxTimeOut" to the desired time in seconds)
  • to make the announcement server wide change the "SendMessageTo" to anything else but "self"
  • to enable the AFK command set "EnableAfkCommand" to true

 

I made this mod, because I'm standing around AFK while I work on my other Mods and die of hunger. (I can't got into creative mode for reasons)

Version For Game version Downloads Release date Changelog Download 1-click mod install*
v0.9.3 577 Dec 14th 2024 at 7:57 PM Show AnAFKStory-v0.9.3-1.19.0.zip Install now
v0.9.2 Dec 8th 2024 at 1:29 PM Show Install now
v0.9.0 Nov 28th 2024 at 7:43 PM Show Install now

14 Comments (oldest first | newest first)

💬 MimiKitty, 6 days ago

what does "invulnerable" do? can we totally disable the chat messages? can players look around without going afk? pretty much I would want it so once afk a player no longer loses hunger but can still chat and look around. mainly as a way to let players be on a server and "hang out" without being punished for not being active while playing. I still want them to be attackable/damagable and look around/chat!

💬 SydAuthor, Dec 14th 2024 at 7:30 PM

okay I'm very sorry this didn't come up while testing. I removed all old versions of the mod, because that is unplayable and uploaded a version with a fix hopefully.

 

I also saw, that I have to unset AFK, whe you are crafting or building as that tend to set you AFK as well.

💬 Dubble, Dec 12th 2024 at 2:14 PM

Syd We are also having the same issue. We are getting stuck at 0% hungerrate due to seemingly the same reason Noa3 mentions.

💬 Noa3, Dec 12th 2024 at 3:53 AM

Hi, i put this mod on my server and AFK starts right after connecting on the server and the status doesnt get lost if moved around or even removed again from the server. Players are now stuck to 0% Hungerrate

💬 DejFidOFF, Dec 11th 2024 at 7:58 PM

Syd

Not working. player goes AFK right after connect to server and satiety did not go down..
config:

{
  "MaxTimeOut": 120,
  "SendMessageTo": "chat",
  "EnableAfkCommand": "false"
}
💬 SydAuthor, Dec 11th 2024 at 7:07 PM

JosephOcala try to add it back in and walk around, it will try to reset itself, but looks like I have to add in a more solid reset.

💬 JosephOcala, Dec 11th 2024 at 12:31 PM

Not sure what happened but it has permanently set my hunger rate at 0, even after I removed it from my mod folder I'm still stuck at 0

💬 DejFidOFF, Dec 8th 2024 at 3:48 PM

Syd

Great! I will be testing that. Will be nice to add a kick system (configurable) so players can´t be AFK for eternity on the server

 

💬 SydAuthor, Dec 8th 2024 at 1:48 PM

DejFidOFF I added it in. It is disabled on default, but can be enabled through server settings.

💬 SydAuthor, Dec 8th 2024 at 12:30 PM

rayray good to know, thanks

💬 rayray, Dec 2nd 2024 at 10:01 PM

this works on 1.20 unstable as is 

💬 rayray, Dec 2nd 2024 at 10:00 PM
💬 Aricus, Dec 1st 2024 at 4:21 AM

Oh this looks amazing! I'm playing on 1.20 pre though, I can't wait until this is updated

💬 DejFidOFF, Nov 28th 2024 at 8:08 PM

Syd

Hey o/ Good job. I am looking for something like this a long ago. But will be possible implemented a msg to chat? Something like in MC? "Player XY is AFK" which everyone can see.

(edit comment delete)