Advertisement
BaneOfSmite

Untitled

Jun 3rd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.31 KB | None | 0 0
  1. options:
  2. P: &6&lUHC &8ยป&7
  3.  
  4. command /prestart <integer=5>:
  5. permission: skript.op
  6. trigger:
  7. set {_food} to arg-1
  8. execute console command "/ffg"
  9. execute console command "/reset -a"
  10. execute console command "/setmaxhealth 20 *"
  11. make player execute command "/pvp global off"
  12. teleport all players to {spawnlocation}
  13. give (arg-1 of cooked beef) to all players
  14. wait 1 second
  15. broadcast "{@P} UHC is starting..."
  16. loop all players:
  17. execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player%"
  18.  
  19. command /start <integer> <integer>:
  20. permission: skript.op
  21. usage: &c/start &7<&atime till PvP&7(&ameasured in minutes&7)> <&atime till MeetUp&7(&ameasured in minutes&7)>
  22. trigger:
  23. if arg-1 is set:
  24. if arg-2 is set:
  25. set {pvptimer} to arg 1*60
  26. set {_temp} to (arg-1 - arg-2)
  27. set {meetuptimer} to {_temp}
  28. execute console command "/feed -a"
  29. execute console command "/heal -a"
  30. broadcast "{@P} &63"
  31. loop all players:
  32. execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
  33. wait 1 second
  34. broadcast "{@P} &62"
  35. loop all players:
  36. execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
  37. wait 1 second
  38. broadcast "{@P} &61"
  39. loop all players:
  40. execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
  41. wait 1 second
  42. broadcast "{@P} &6UHC starting now!"
  43. execute player command "/megabutcher"
  44. execute console command "/ffg"
  45. execute console command "/pvp global off"
  46. execute player command "/time set 1000"
  47. make player execute "/gamerule doDaylightCycle true"
  48. execute console command "/timer:timer cancel"
  49. execute console command "/timer:timer %{pvptimer}% &cPvP enabled In&7:&e"
  50. loop all players:
  51. execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 2 1"
  52. loop all players:
  53. execute console command "/playsound mob.wolf.howl %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
  54. while {pvptimer} is greater than 0:
  55. wait 1 second
  56. subtract 1 from {pvptimer}
  57. if {pvptimer} is equal to 0:
  58. execute console command "/pvp global on"
  59. execute console command "/timer:timer cancel"
  60. execute console command "/timer:timer %{meetuptimer}% &4Meetup In&7:&e"
  61. loop all players:
  62. execute console command "/playsound mob.bat.death %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
  63. broadcast "{@P} PvP is now &aenabled&7!"
  64. while {meetuptimer} is greater than 0:
  65. wait 1 second
  66. subtract 1 from {meetuptimer}
  67. if {meetuptimer} is equal to 0:
  68. broadcast "{@P} It is now Meetup, Head to &c0,0&7!"
  69. loop all players:
  70. execute console command "/playsound mob.wither.death %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
  71. delete {pvptimer}
  72. delete {meetuptimer}
  73.  
  74. command /startoff:
  75. permission: skript.op
  76. trigger:
  77. delete {pvptimer}
  78. set {gamerunning} to false
  79. wait 1 second
  80. delete {meetuptimer}
  81. broadcast "{@P} Game stopped!"
  82. loop all players:
  83. execute console command "/playsound note.pling %loop-player% %x-coordinate of loop-player% %y-coordinate of loop-player% %z-coordinate of loop-player% 1 1 1"
  84. execute console command "/scoreboard objectives remove k"
  85. execute console command "/timer cancel"
  86.  
  87. command /megabutcher:
  88. permission: skript.op
  89. trigger:
  90. execute player command "/gamerule doMobSpawning false"
  91. execute player command "/butcher"
  92. wait 1 minute
  93. execute player command "/butcher"
  94. execute player command "/gamerule doMobSpawning true"
  95.  
  96. command /setspawn:
  97. permission: skript.op
  98. trigger:
  99. set {spawnlocation} to location of command sender
  100. message "Spawn has been set to %location of command sender%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement