Minecraft Blogs / Other

minecraft 1.7 vanilla AFK system!

  • 653 views, 2 today
  • 2
  • 1
  • 2
Quezler's Avatar Quezler
Level 25 : Expert Blockhead
14
Hi all, today i designed a minecraft 1.7 AFK system entirely operated by commandblocks and scoreboards!

Please tell me what you think!

All command lines in a easly to see format

scoreboard objectives add afk.walk stat.walkOneCm
scoreboard objectives add afk.swim stat.swimOneCm
scoreboard objectives add afk.boat stat.boatOneCm
scoreboard objectives add afk.fly stat.flyOneCm
scoreboard objectives add afk.jump stat.jump
scoreboard objectives add afk.horse stat.horseOneCm
scoreboard objectives add afk.all dummy
scoreboard objectives add afk.? dummy

scoreboard players set @a[score_afk.walk_min=1] afk.all 60 >comparator> scoreboard players set @a[score_afk.walk_min=1] afk.walk 0
scoreboard players set @a[score_afk.swim_min=1] afk.all 60 >comparator> scoreboard players set @a[score_afk.swim_min=1] afk.swim 0
scoreboard players set @a[score_afk.boat_min=1] afk.all 60 >comparator> scoreboard players set @a[score_afk.boat_min=1] afk.boat 0
scoreboard players set @a[score_afk.fly_min=1] afk.all 60 >comparator> scoreboard players set @a[score_afk.fly_min=1] afk.fly 0
scoreboard players set @a[score_afk.jump_min=1] afk.all 60 >comparator> scoreboard players set @a[score_afk.jump_min=1] afk.jump 0
scoreboard players set @a[score_afk.horse_min=1] afk.all 60 >comparator> scoreboard players set @a[score_afk.horse_min=1] afk.horse 0

scoreboard players remove @a[score_afk.all_min=1] afk.all 1

testfor @a[score_afk.all_min=1,score_afk.all=2] >comparator> tellraw @a {"text":"@a[score_afk.all_min=1,score_afk.all=2] is now AFK"}
scoreboard players set @a[score_afk.all=1] afk.? 1
testfor @a[score_afk.?_min=1,score_afk.all=2] >comparator> tellraw @a {"text":"@a[score_afk.?_min=1,score_afk.all=2] is no longer AFK"} >comparator> scoreboard players set @a[score_afk.?_min=1,score_afk.all=2] afk.? 0

Tags

Create an account or sign in to comment.

1
11/12/2013 7:21 pm
Level 39 : Artisan Scribe
Jetra
Jetra's Avatar
Moved submission.

Submission Rules
1
11/13/2013 12:45 am
Level 25 : Expert Blockhead
Quezler
Quezler's Avatar
i first thought to place it in blogs, but then i remembered the rules that ingame minecraft stuff should be under projects :S
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome