Itsyuumello

Untitled

Sep 12th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. on break:
  2. if event-block is in the region "block":
  3. set {blocks::%location of event-block%} to type of event-block
  4. on place:
  5. if event-block is in the region "block":
  6. add event-block to {place::*}
  7. command /refill:
  8. permission: skript.admin
  9. trigger:
  10. loop {place::*}:
  11. set block at loop-value to air
  12. loop {blocks::*}:
  13. set {_loc::*} to substring of loop-index from 7 to length of loop-index split at ","
  14. set {_x} to {_loc::1} parsed as number
  15. set {_y} to {_loc::2} parsed as number
  16. set {_z} to {_loc::3} parsed as number
  17. set block at location ({_x}, {_y}, {_z}) to loop-value
  18. delete {place::*}
  19. delete {break::*}
  20. on damage of player:
  21. if {red::*} contains attacker:
  22. if {red::*} contains victim:
  23. cancel event
  24. if {blue::*} contains attacker:
  25. if {blue::*} contains victim:
  26. cancel event
  27. on join:
  28. teleport player to location (-1525, 9, -2283)
  29. on death of player:
  30. quit(victim)
  31. if {red::*} contains attacker:
  32. add 1 to {kill.r}
  33. else if {blue::*} contains attacker:
  34. add 1 to {kill.b}
  35. add 1 to {kill.%attacker%}
  36. on quit:
  37. quit(player)
  38. on respawn:
  39. set player's gamemode to victim
  40.  
  41. command /team:
  42. permission: skript.admin
  43. trigger:
  44. loop all players:
  45. if size of {red::*} is 0:
  46. add loop-player to {red::*}
  47. send "&c&lYou are Red Team!" to loop-player
  48. if size of {red::*} = size of {blue::*}:
  49. send "&c&lYou are Red Team!" to loop-player
  50. add loop-player to {red::*}
  51. if size of {red::*} > size of {blue::*}:
  52. send "&9&lYou are Blue Team!" to loop-player
  53. teleport {blue::*} to location (-1635, 79, -2238)
  54. teleport {red::*} to location (-1635, 79, -2176)
  55. tab(loop-player)
  56. score(loop-player)
  57. command /gamestop:
  58. permission: skript.admin
  59. trigger:
  60. set {kill.r} to 0
  61. set {kill.b} to 0
  62. delete {blue::*}
  63. delete {red::*}
  64. loop all players:
  65. set {kill.%loop-player%} to 0
  66. set loop-player's gamemode to survival
  67. wipe loop-player's sidebar
  68.  
  69. function score(s: player):
  70. wipe {_s}'s sidebar
  71. set name of sidebar of {_s} to "&e&lTHE WALLS"
  72. set score "&b" in sidebar of {_s} to 10
  73. set score "&fTime: &a20:00" in sidebar of {_s} to 9
  74. set score "&d" in sidebar of {_s} to 8
  75. set score "&f青チーム 生き残り: &a%size of {blue::*}%" in sidebar of {_s} to 7
  76. set score "&f赤チーム 生き残り: &a%size of {red::*}%" in sidebar of {_s} to 6
  77. set score "&e" in sidebar of {_s} to 5
  78. set score "&fキル数: &a%{kill.%{_s}%}%" in sidebar of {_s} to 4
  79. if {red::*} contains {_s}:
  80. set score "&fチームのキル数: &a%{kill.r}%" in sidebar of {_s} to 4
  81. else if {blue::*} contains {_s}:
  82. set score "&fチームのキル数: &a%{kill.b}%" in sidebar of {_s} to 4
  83. set score "&c" in sidebar of {_s} to 2
  84. set score "&ePlayerrealms.com" in sidebar of {_s} to 1
  85.  
  86. function quit(d: player):
  87. if {red::*} contains {_d}:
  88. remove {_d} from {red::*}
  89. loop all players:
  90. score(loop-player)
  91. else if {blue::*} contains {_d}:
  92. remove {_d} from {blue::*}
  93. score(loop-player)
  94. function tab(t: player):
  95. if {red::*} contains {_t}:
  96. set {_t}'s nametag to "&c%{_t}%"
  97. set {_t}'s tab list to "&c%{_t}%"
  98. set {_t}'s display name to "&c%{_t}%"
  99. else if {blue::*} contains {_t}:
  100. set {_t}'s nametag to "&9%{_t}%"
  101. set {_t}'s tab list to "&9%{_t}%"
  102. set {_t}'s display name to "&9%{_t}%"
Add Comment
Please, Sign In to add comment