Entities

Untitled

Jul 30th, 2017
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. Repeating: scoreboard players test *Ticks Game 0 399
  2. Repeating conditional: scoreboard players enable @a JQ
  3. chain: scoreboard players add @a[score_JQ_min=1] Q 1
  4. chain: scoreboard players set @a[score_Q_min=2] Q 0
  5. chain: scoreboard players set Q Dummy 0
  6. chain: scoreboard players reset * QC
  7. chain: scoreboard players set @a[score_Q_min=1] QC 1
  8. chain: scoreboard players operation Q Dummy += * QC
  9. chain: execute @a[score_JQ_min=1,score_Q_min=1,score_Q=1] ~ ~ ~ say Queue Message
  10. chain: execute @a[score_JQ_min=1,score_Q_min=0,score_Q=0] ~ ~ ~ say Leave Message
  11. chain: scoreboard players set @a JQ 0
  12. chain: scoreboard players test Q Dummy 2
  13. chain conditional: scoreboard players add *Ticks Game 1
  14. chain: scoreboard players test Q Dummy 0 1
  15. chain conditional: scoreboard players test *Ticks Game 1
  16. chain conditional: scoreboard players set *Ticks Game 0
  17. chain conditional: tellraw @a ["",{"text":"Game is restarting!","color":"red"}]
  18.  
  19. Scoreboard requirements:
  20. JQ - trigger
  21. Q - dummy
  22. QC - dummy
  23. D - dummy
  24. G - dummy
Add Comment
Please, Sign In to add comment