Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. command /settimer:
  2. permission: op
  3. trigger:
  4. open virtual chest with 1 row named "&6Set timer" to player
  5. format gui slot 1 of player with light green wool named "&a10 seconds" to run:
  6. set {timer} to 10
  7. send "&7The countdown timer has been set to the &a10 seconds &7option."
  8. play sound "ui.button.click" at player
  9. format gui slot 3 of player with green wool named "&25 seconds" to run:
  10. set {timer} to 5
  11. send "&7The countdown timer has been set to the &25 seconds &7option."
  12. play sound "ui.button.click" at player
  13. format gui slot 5 of player with orange wool named "&63 seconds" to run:
  14. set {timer} to 3
  15. send "&7The countdown timer has been set to the &63 seconds &7option."
  16. play sound "ui.button.click" at player
  17. format gui slot 7 of player with red wool named "&41 second" to run:
  18. set {timer} to 1
  19. send "&7The countdown timer has been set to the &41 second &7option."
  20. play sound "ui.button.click" at player
  21.  
  22. command /timer:
  23. trigger:
  24. if {timer} is not set:
  25. send "&cTimer is not set! set it using the /settimer command."
  26. if {timer} is 10:
  27. show an action bar from "&8Game begins in 10" to player
  28. play sound "block.glass.break" at player
  29. wait 1 second
  30. show an action bar from "&8Game begins in 9" to player
  31. play sound "block.glass.break" at player
  32. wait 1 second
  33. show an action bar from "&8Game begins in 8" to player
  34. play sound "block.glass.break" at player
  35. wait 1 second
  36. show an action bar from "&8Game begins in 7" to player
  37. play sound "block.glass.break" at player
  38. wait 1 second
  39. show an action bar from "&8Game begins in 6" to player
  40. play sound "block.glass.break" at player
  41. wait 1 second
  42. show an action bar from "&8Game begins in 5" to player
  43. play sound "block.glass.break" at player
  44. wait 1 second
  45. show an action bar from "&8Game begins in 4" to player
  46. play sound "block.glass.break" at player
  47. wait 1 second
  48. show an action bar from "&8Game begins in 3" to player
  49. play sound "block.glass.break" at player
  50. wait 1 second
  51. show an action bar from "&8Game begins in 2" to player
  52. play sound "block.glass.break" at player
  53. wait 1 second
  54. show an action bar from "&8Game begins in 1" to player
  55. play sound "block.glass.break" at player
  56. wait 1 second
  57. show an action bar from "&6The game has begun!" to player
  58. play sound "block.glass.break" at player
  59. stop
  60. else if {timer} is 5:
  61. show an action bar from "&8Game begins in 5" to player
  62. play sound "block.glass.break" at player
  63. wait 1 second
  64. show an action bar from "&8Game begins in 4" to player
  65. play sound "block.glass.break" at player
  66. wait 1 second
  67. show an action bar from "&8Game begins in 3" to player
  68. play sound "block.glass.break" at player
  69. wait 1 second
  70. show an action bar from "&8Game begins in 2" to player
  71. play sound "block.glass.break" at player
  72. wait 1 second
  73. show an action bar from "&8Game begins in 1" to player
  74. play sound "block.glass.break" at player
  75. wait 1 second
  76. show an action bar from "&6The game has begun!" to player
  77. play sound "block.glass.break" at player
  78. stop
  79. else if {timer} is 3:
  80. show an action bar from "&8Game begins in 3" to player
  81. play sound "block.glass.break" at player
  82. wait 1 second
  83. show an action bar from "&8Game begins in 2" to player
  84. play sound "block.glass.break" at player
  85. wait 1 second
  86. show an action bar from "&8Game begins in 1" to player
  87. play sound "block.glass.break" at player
  88. wait 1 second
  89. show an action bar from "&6The game has begun!" to player
  90. wait 1 second
  91. play sound "block.glass.break" at player
  92. stop
  93. else if {timer} is 1:
  94. show an action bar from "&8Game begins in 1" to player
  95. play sound "block.glass.break" at player
  96. wait 1 seconds
  97. show an action bar from "&6The game has begun!" to player
  98. play sound "block.glass.break" at player
  99. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement