Guest User

Untitled

a guest
Apr 23rd, 2025
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.33 KB | None | 0 0
  1. variables:
  2. {pvsGameStarted} = false
  3. {pvsRound} = 1
  4. {pvsPlacementAmounts::} = 0
  5. {pvsPlayersLeft} = 0
  6.  
  7.  
  8. command /startpvs:
  9. permission: op
  10. trigger:
  11. round1()
  12.  
  13.  
  14. local function round1():
  15. set {pvsPlacementAmounts::*} to 12, 15, 18, 21, 24, 27, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 130, 140, 150, 160, 165 and 175
  16. loop all players:
  17. add 1 to {pvsPlayersLeft}
  18. broadcast "%{pvsPlayersLeft}%"
  19. if {pvsRound} = 1:
  20. {eventPaused} is true:
  21. {SayOnce} is false:
  22. send title "&cPAUSED" to all players for 5 seconds with fadein 1 seconds and fade out 1 seconds
  23. play sound "clock:event_paused" in voice category with volume 1 for all players
  24. set {SayOnce} to true
  25. {eventPaused} is false:
  26. set the center of the world border of world "combatspleef" to location(0.5, 0, -110.5)
  27. execute console command "/execute in minecraft:combatspleef run worldborder set 69"
  28. squareTeleport()
  29. play sound "clock:game_announce" in voice category with volume 1 for all players
  30. send title "&ePvSpleef" to all players for 3 seconds with fadein 1 seconds and fade out 1 seconds
  31. wait 5 seconds
  32. explainGame()
  33. wait 58 seconds
  34. tenSec()
  35. wait 10 seconds
  36. play sound "clock:pvs_music" in ambient category with volume 1 for all players
  37. set {pvsGameStart} to true
  38. wait 23 seconds
  39. play sound "clock:alert" in voice category with volume 1 for all players
  40. send title "" to all players for 3 seconds
  41. send subtitle "&cBoarder Closing!" to all players for 3 seconds with fadein 0 seconds and fade out 0.1 seconds
  42. execute console command "/execute in minecraft:combatspleef run worldborder set 13 75"
  43. wait 93 seconds
  44. stop all sounds for all players
  45. play sound "clock:overtime_head" in voice category with volume 1 for all players
  46. wait 3 seconds
  47. play sound "clock:overtime_loop" in voice category with volume 1 for all players
  48. wait 24 seconds
  49. play sound "clock:overtime_tail" in voice category with volume 1 for all players
  50. send title "&c&lRound Over!" to all players for 3 seconds with fadein 1 seconds and fade out 1 seconds
  51.  
  52. on walking on snow block:
  53. name of player's world is "combatspleef":
  54. if {pvsGameStarted} is false:
  55. stop
  56. if {pvsGameStarted} is true:
  57. set {lastWalkedSnow.%event-player%} to "%x-coord of event-block%, %y-coord of event-block%, %z-coord of event-block%"
  58.  
  59. command /setstartpvs:
  60. trigger:
  61. if {pvsGameStarted} is false:
  62. set {pvsGameStarted} to true
  63. broadcast "%{pvsGameStarted}%"
  64. loop all players:
  65. delete {lastWalkedSnow.%loop-value%}
  66. delete {brokenBlocks.%loop-value%::*}
  67. else:
  68. set {pvsGameStarted} to false
  69. broadcast "%{pvsGameStarted}%"
  70.  
  71. on server tick start:
  72. loop all players:
  73. contains({spectators::*}, "%loop-value%") is false:
  74. if name of loop-value's world is "combatspleef":
  75. if loop-value is in water:
  76. set {_victim} to loop-value-1
  77. loop all players:
  78. if loop-value-2 is not equal to {_victim}:
  79. set {_attacker} to loop-value-2
  80. if uuid of {_attacker} is equal to uuid of {_victim}:
  81. broadcast "[&c☠&r]%display name of {_victim}% fell and eliminated themselves"
  82. applyPointsWithMessage({pvsPlacementAmount::%{pvsPlayersLeft}%}, {_victim}, "PvSpleef", " &cYou died&r and placed at &e%{pvsPlayersLeft}%&r. &6+%{pvsPlacementAmount::%{pvsPlayersLeft}%}% points")
  83. spectator({_victim})
  84. stop
  85. else:
  86. contains({brokenBlocks.%{_attacker}%::*}, "%{lastWalkedSnow.%{_victim}%}%") is true:
  87. broadcast "[&c☠&r] %display name of {_attacker}% spleef'd %display name of {_victim}%"
  88. handleKill("PvSpleef", 12, {_attacker}, {_victim})
  89. spectator({_victim})
  90. stop
  91. if loop-value is in lava:
  92. set {_victim} to loop-value-1
  93. loop all players:
  94. if loop-value-2 is not equal to {_victim}:
  95. set {_attacker} to loop-value-2
  96. broadcast "%{_attacker}% and %{_victim}%"
  97. if uuid of {_attacker} is equal to uuid of {_victim}:
  98. broadcast "[&c☠&r]%display name of {_victim}% fell and eliminated themselves"
  99. spectator({_victim})
  100. stop
  101. else:
  102. contains({brokenBlocks.%{_attacker}%::*}, "%{lastWalkedSnow.%{_victim}%}%") is true:
  103. broadcast "[&c☠&r] %display name of {_attacker}% spleef'd %display name of {_victim}%"
  104. handleKill("PvSpleef", 12, {_attacker}, {_victim})
  105. spectator({_victim})
  106. stop
  107.  
  108. on break:
  109. name of event-player's world is "combatspleef":
  110. {pvsGameStarted} is false:
  111. player has permission "op":
  112. stop
  113. cancel event
  114. {pvsGameStarted} is true:
  115. add "%x-coord of event-block%, %y-coord of event-block%, %z-coord of event-block%" to {brokenBlocks.%event-player%::*}
  116. wait 10 seconds
  117. remove "%x-coord of event-block%, %y-coord of event-block%, %z-coord of event-block%" from {brokenBlocks.%event-player%::*}
  118.  
  119. on right click:
  120. world is "combatspleef":
  121. {pvsGameStarted} is true:
  122. stop
  123. {pvsGameStarted} is false:
  124. if player's tool is firework rocket:
  125. send action bar "&cUnable to use: Game has not started" to event-player
  126. cancel event
  127.  
  128.  
  129. command /tempcallexplain:
  130. permission: op
  131. trigger:
  132. explainGame()
  133.  
  134. local function explainGame():
  135. play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
  136. broadcast "&a===================================================="
  137. broadcast ""
  138. broadcast " &e&l Welcome to PvSpleef! "
  139. broadcast ""
  140. broadcast ""
  141. broadcast " &7&o The non-PvP, PvP game! "
  142. broadcast ""
  143. broadcast "&a===================================================="
  144. wait 12 seconds
  145. play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
  146. broadcast "&a===================================================="
  147. broadcast ""
  148. broadcast "&e&l Heres how it works: "
  149. broadcast ""
  150. broadcast " - You are equipped with an elytra, some armour "
  151. broadcast " and a Knockback 2 shovel "
  152. broadcast ""
  153. broadcast " - Your goal is to outlive as many players as you "
  154. broadcast " can whilst also gaining kills "
  155. broadcast ""
  156. broadcast "&a===================================================="
  157. wait 12 seconds
  158. play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
  159. broadcast "&a===================================================="
  160. broadcast ""
  161. broadcast "&e&l Coins? Here you go: "
  162. broadcast ""
  163. broadcast " - &61st place will earn you &a175 points "
  164. broadcast ""
  165. broadcast " - Each kill will earn you &a12 points "
  166. broadcast ""
  167. broadcast " - You will gain an extra set of &6bonus points "
  168. broadcast " based on the placement &ayour team&r gets "
  169. broadcast ""
  170. broadcast "&a===================================================="
  171. wait 12 seconds
  172. play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
  173. broadcast "&a===================================================="
  174. broadcast ""
  175. broadcast "&e&l Extra tips: "
  176. broadcast ""
  177. broadcast " - You have been given a &cfirework rocket. "
  178. broadcast " &7&oUse it wisely"
  179. broadcast ""
  180. broadcast ""
  181. broadcast " - Falling into the liquid below will &cinstantly"
  182. broadcast " &ckill you.&r Watch the ground below you "
  183. broadcast ""
  184. broadcast "&a===================================================="
  185. wait 12 seconds
  186. play sound "entity.item.pickup" in voice category with pitch 1.4 for all players
  187. broadcast "&a===================================================="
  188. broadcast ""
  189. broadcast ""
  190. broadcast ""
  191. broadcast " &a&oStand-by for the game to begin "
  192. broadcast ""
  193. broadcast ""
  194. broadcast ""
  195. broadcast "&a===================================================="
  196.  
  197.  
  198. local function squareTeleport():
  199. loop {red team::*}:
  200. teleport loop-value to location at -13, 114, -133 in world "combatspleef"
  201. loop {orange team::*}:
  202. teleport loop-value to location at 12, 114, -133 in world "combatspleef"
  203. loop {yellow team::*}:
  204. teleport loop-value to location at 22, 114, -112 in world "combatspleef"
  205. loop {green team::*}:
  206. teleport loop-value to location at 12, 114, -89 in world "combatspleef"
  207. loop {blue team::*}:
  208. teleport loop-value to location at -12, 114, -89 in world "combatspleef"
  209. loop {purple team::*}:
  210. teleport loop-value to location at -22, 114, -111 in world "combatspleef"
  211.  
  212.  
  213. local function circleTeleport():
  214. loop {red team::*}:
  215. teleport loop-value to location at 0, 113, -25 in world "combatspleef"
  216. loop {orange team::*}:
  217. teleport loop-value to location at 13, 113, -14 in world "combatspleef"
  218. loop {yellow team::*}:
  219. teleport loop-value to location at 25, 113, 0 in world "combatspleef"
  220. loop {green team::*}:
  221. teleport loop-value to location at 0, 113, 25 in world "combatspleef"
  222. loop {blue team::*}:
  223. teleport loop-value to location at -13, 113, 13 in world "combatspleef"
  224. loop {purple team::*}:
  225. teleport loop-value to location at -25, 113, 0 in world "combatspleef"
  226.  
  227.  
  228. local function triangleTeleport():
  229. loop {red team::*}:
  230. teleport loop-value to location at -110, 113, -3 in world "combatspleef"
  231. loop {orange team::*}:
  232. teleport loop-value to location at -129, 113, -36 in world "combatspleef"
  233. loop {yellow team::*}:
  234. teleport loop-value to location at -141, 113, -57 in world "combatspleef"
  235. loop {green team::*}:
  236. teleport loop-value to location at -110, 113, -57 in world "combatspleef"
  237. loop {blue team::*}:
  238. teleport loop-value to location at -79, 113, -57 in world "combatspleef"
  239. loop {purple team::*}:
  240. teleport loop-value to location at -91, 113, -36 in world "combatspleef"
  241.  
Advertisement
Add Comment
Please, Sign In to add comment