How to make a AFK detector in minecraft(BEDROCK)
Channel:
Subscribers:
1,440
Published on ● Video Link: https://www.youtube.com/watch?v=jDVewAOB_l0
Today i will show you how to detect people that are AFK.
COMMANDS:
/scoreboard objectives add AFK dummy ""
/execute at @a run fill ~2 319 ~2 ~-2 319 ~1 air [] replace structure_void
/execute at @a run fill ~-2 319 ~-2 ~2 319 ~-1 air [] replace structure_void
/execute at @a run fill ~2 319 ~2 ~1 319 ~-2 air [] replace structure_void
/execute at @a run fill ~-2 319 ~-2 ~-1 319 ~2 air [] replace structure_void
/execute as @a at @s if block ~ 319 ~ air [] run scoreboard players set @s AFK 0
/execute as @a at @s if block ~ 319 ~ air [] run setblock ~ 319 ~ structure_void
/execute as @a at @s if block ~ 319 ~ structure_void [] run scoreboard players add @s AFK 1
/execute as @a[scores={AFK=120..}] run YOURCOMMAND