Hi guys, this is a follow-up video to my last one in which I showed you how to allow one player to sleep on a Vanilla SMP server.
PLAYER COMMAND:
/scoreboard objectives add sleep dummy
Should you wish to see the scoreboard type:
/scoreboard objectives setdisplay sidebar sleep
KEY:
R = Repeat
C = Chain
CN= Conditional
U = Unconditional
A = Always Active
COMMANDS:
1: (R,U,A) : scoreboard players set @a sleep 0 {Sleeping:0b}
2: (R,U,A) : scoreboard players add @a sleep 1 {Sleeping:1b}
3: (R,U,A) : testfor @p[score_sleep=90,score_sleep_min=90]
4: (C,CN,A): scoreboard players set @a[score_sleep_min=20] sleep -2
5: (C,CN,A): time add 13000
6: (C,CN,A): tellraw @a ["",{"text":"Rise and Shine!","color":"aqua"}]
7: (R,U,A) : testfor @p[score_sleep=4,score_sleep_min=4]
8: (C,CN,A): tellraw @a {"text":"","color":"yellow","extra":[{"selector":"@a[score_sleep_min=4]"},{"text":" is sleeping"}]}