Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. options:
  2. #command prefixes
  3. prefix.help : &bHelp &8|&r
  4. prefix.chat : &bChat &8|&r
  5. prefix.game : &bGame &8|&r
  6. #sign tags
  7. parkoursign : "[parkour]" or "[run]" or "[templerun]" or "[course]" or "[minigame]" or "[microgame]" or "[mg]" or "[sprint]"
  8. parkoursigntop : [parkour]
  9. parkourcommand : parkour
  10. parkour : Parkour
  11.  
  12.  
  13. # #
  14. # GAMES #
  15. # #
  16.  
  17.  
  18.  
  19. on quit:
  20. delete {parkour.%uuid of player%.timestart}
  21. delete {parkour.%uuid of player%.started}
  22. delete {parkour.%uuid of player%.checkpoint}
  23. delete {parkour.%uuid of player%.checkpoint}
  24.  
  25.  
  26. command /{@parkourcommand} <text="help">:
  27. usage: /{@parkourcommand} (help)
  28. permission: admin.parkour
  29. description: Shows help for the {@parkourcommand} microgame.
  30. trigger:
  31. message "{@prefix.help} This is the MicroGames setup help:"
  32. wait 1 second
  33. message "&0"
  34. message "{@prefix.help} First, customise your game name in the MICROGAMES.SK file."
  35. wait 5 seconds
  36. message "&0"
  37. message "{@prefix.help} You can change the name from 'parkour' to anything you like!"
  38. wait 5 seconds
  39. message "&0"
  40. message "{@prefix.help} To add a starting point, place an IRON PLATE."
  41. wait 3 seconds
  42. message "&0"
  43. message "{@prefix.help} Walking on this will start the course."
  44. wait 3 seconds
  45. message "&0"
  46. message "{@prefix.help} Use a WOODEN PLATE as a checkpoint."
  47. wait 3 seconds
  48. message "&0"
  49. message "{@prefix.help} Players can return to this place with /cp."
  50. wait 4 seconds
  51. message "&0"
  52. message "{@prefix.help} Bounce pads are STONE PLATES on SLIME BLOCK. These give a random bounce!"
  53. wait 6 seconds
  54. message "&0"
  55. message "{@prefix.help} Fly pads are STONE PLATES on GOLD BLOCK. These give a short controllable jet!"
  56. wait 6 seconds
  57. message "&0"
  58. message "{@prefix.help} Tele-pads are STONE PLATES on DIAMOND BLOCK. These teleport you on top of a close-by IRON BLOCK"
  59. wait 6 seconds
  60. message "&0"
  61. message "{@prefix.help} To add a finish line, use a GOLD PLATE."
  62. wait 4 seconds
  63. message "&0"
  64. message "{@prefix.help} Add a sign with the tag {@parkoursigntop} and right click to display top scores."
  65. wait 7 seconds
  66. message "&0"
  67. message "{@prefix.help} To reset/setup top scores, use &f/reset{@parkourcommand}time"
  68.  
  69.  
  70.  
  71. command /reset{@parkourcommand}time:
  72. usage: /reset{@parkourcommand}time
  73. permission: admin.resetparkourtime
  74. description: Resets {@parkourcommand} top time score.
  75. trigger:
  76. set {time.parkour.top} to 9999
  77. set {time.parkour.top.player} to "No Results :("
  78. message "{@prefix.game} Top time reset to 9999."
  79.  
  80.  
  81. command /checkpoint:
  82. usage: /cp
  83. aliases: cp
  84. permission: member.checkpoint
  85. description: Resets player to last {@parkourcommand} checkpoint.
  86. trigger:
  87. if {parkour.%uuid of player%.checkpoint} exists:
  88. message "{@prefix.game} Returning to last checkpoint."
  89. teleport player to {parkour.%uuid of player%.checkpoint}
  90. else:
  91. message "{@prefix.game} You need to start the {@parkourcommand} game first!"
  92.  
  93.  
  94. on rightclick on sign:
  95. if line 1 of clicked block is {@parkoursign}:
  96. set line 3 of clicked block to "&5%{time.parkour.top}% &9Seconds"
  97. set line 4 of clicked block to "&3%{time.parkour.top.player}%"
  98. set line 2 of clicked block to "&5Top Score:"
  99.  
  100.  
  101. every second:
  102. add 1 to {time.now}
  103.  
  104. every day:
  105. set {time.now} to 0
  106.  
  107. on step on pressure plate:
  108. loop blocks in radius 1:
  109. if loop-block is iron pressure plate:
  110. set {parkour.%uuid of player%.timestart} to {time.now}
  111. set {parkour.%uuid of player%.started} to true
  112. message "{@prefix.game} {@parkour} started! Your time is: &a%({time.now}-{parkour.%uuid of player%.timestart})%"
  113. else if loop-block is gold block:
  114. loop 20 times:
  115. push the player upwards at speed 0.3
  116. push the player forwards at speed 0.1
  117. wait 0.2 seconds
  118. else if loop-block is slime block:
  119. loop 3 times:
  120. push the player upwards at speed 0.2
  121. push the player forwards at speed 0.1
  122. else if loop-block is diamond block:
  123. loop blocks in radius 12 of loop-block-1:
  124. loop-block-2 is iron block
  125. block above loop-block-2 is air
  126. block above block above loop-block-2 is air
  127. teleport player to block above loop-block-2
  128. else if loop-block is wooden pressure plate:
  129. if {parkour.%uuid of player%.started} is true:
  130. set {parkour.%uuid of player%.checkpoint} to location of player
  131. message "{@prefix.game} Checkpoint reached! Your time is: &a%({time.now}-{parkour.%uuid of player%.timestart})%"
  132. message "{@prefix.game} Use /cp to return if you fall off..."
  133. else if loop-block is gold pressure plate:
  134. if {parkour.%uuid of player%.started} is true:
  135. set {parkour.%uuid of player%.time.last} to ({time.now}-{parkour.%uuid of player%.timestart})
  136. if ({time.now}-{parkour.%uuid of player%.timestart}) is less than {time.parkour.top}:
  137. set {time.parkour.top} to ({time.now}-{parkour.%uuid of player%.timestart})
  138. set {time.parkour.top.player} to player
  139. message "{@prefix.game} You broke the time record!"
  140. message "{@prefix.game} Finish line reached! Your time is: &a%({time.now}-{parkour.%uuid of player%.timestart})%"
  141. delete {parkour.%uuid of player%.timestart}
  142. delete {parkour.%uuid of player%.started}
  143. delete {parkour.%uuid of player%.checkpoint}
  144. teleport player to {spawn.location}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement