Data Packs Quality of Life

AFK protection V2

  • Functions
  • 7,724 views • 1 today
  • 518 downloads • 0 today
  • 11
  • 15
  • 19
TheRedLion_
Level 50 : Grandmaster Modder
25
You have many farms and want to afk very much, without getting killed by mobs or trolled by other players on a server? Then that is your DataPack. To start afking do /trigger afk_on to end you're afk session just move. You can´t start afking 30 seconds after you took damage, to prevent things like combatloging.
CompatibilityMinecraft 1.15
toMinecraft 1.16
Tags

2 Update Logs

Update #2 : by TheRedLion_ 06/14/2020 9:08:49 amJune 14, 2020 @ 1:08 pm UTC

I just fixed the title, so it looks better if you are afk.
LOAD MORE LOGS

  Have something to say?

hiennoop
08/10/2020 10:39 am
Level 1 : New Miner
Bạn nên cập nhật để bổ sung thêm bảo vệ khi đói. Điều này có nghĩa là khi người chơi cầm thức ăn bằng tay trái và thanh thức ăn có hai vạch rưỡi, anh ta sẽ tự động lấp đầy
1
CraftMaster6875
05/10/2020 4:32 pm
Level 19 : Journeyman Crafter
nice
1
_williamab
04/29/2020 1:45 pm
Level 45 : Master Explorer
I have another mistake when I don't let you get into AFK. It's always clean chat before it says you can't,

try first with your self and then with mine and you'll see how it changes.


Here the codes do not work very well to say
https://cl1p.net/uqzehsavebgyw
1
mrurl42
04/29/2020 1:03 pm
Level 43 : Master Procrastinator
A few things I would add. If the player moves from their "afk location" they should automatically be marked afk off. As it is now, I can mark myself afk and then just play the game and ignore mosters?

Also, a simpler way might be to use gamemode. Put the user into spectator mode when they are afk... then when they move or /trigger it off, put them back. You can even store their original mode in a score so you can set their gamemode back to whatever it WAS.
2
_williamab
04/29/2020 1:11 pm
Level 45 : Master Explorer
preventing the player from moving is easy I think it would be difficult to detect that the player has moved from his position and remove the afk_on and automatically put afk_off I think it would be difficult but if he does it would be fine
2
mrurl42
04/29/2020 1:20 pm
Level 43 : Master Procrastinator
history
Actually that is pretty easy. Just make an afk_x y and z scores... and store your position in them when you start afk... and anyone that is in afk whos score does not match their current pos is no longer afk.

But either preventing them or cancelling afk when moved should happen.
2
TheRedLion_
04/30/2020 6:54 am
Level 50 : Grandmaster Modder
I have updated the pack.
1
mrurl42
04/30/2020 12:03 pm
Level 43 : Master Procrastinator
When you update a pack, make sure to put in an update log so that people that favorited your pack get notified! ^_^
1
TheRedLion_
04/29/2020 1:29 pm
Level 50 : Grandmaster Modder
Thanks for These ideas, I think that I'll make a mix of These ideas
1
_williamab
04/29/2020 4:03 pm
Level 45 : Master Explorer
history
when it's done you'd better remove the afk_off because it won't make sense anymore because you take it off if you move and it happens to be directly in an afk_off state
2

Welcome