Advertisement
Itsyuumello

Untitled

Sep 13th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. command /teamdivide:
  2. trigger:
  3. loop all players:
  4. set {_random} to random integer between 1 and 2
  5. if {_random} is 1:
  6. add loop-player to {red::*}
  7. send "&aあなたは &c赤チーム &aです" to loop-player
  8. set loop-player's tablist name to "&c%loop-player%"
  9. set loop-player's display name to "&c%loop-player%"
  10. set {team::%loop-player%} to "red"
  11. if {_random} is 2:
  12. add loop-player to {blue::*}
  13. send "&aあなたは &9青チーム &aです" to loop-player
  14. set loop-player's tablist name to "&9%loop-player%"
  15. set loop-player's display name to "&9%loop-player%"
  16. set {team::%loop-player%} to "blue"
  17. command /teamexit:
  18. trigger:
  19. clear {red::*}
  20. clear {blue::*}
  21. clear {team::*}
  22. send "&aすべてのチームが解散されました!" to loop-player
  23. loop all players:
  24. set loop-player's tablist name to "%loop-player%"
  25. command /teamteleport [<text>]:
  26. trigger:
  27. if arg-1 is not set:
  28. send "&c/teamteleport [redset|blueset|redtp|bluetp]"
  29. else if arg-1 is "bluetp":
  30. loop all players:
  31. if {team::%loop-player%} is "blue":
  32. teleport loop-player to {blue.tp}
  33. else if arg-1 is "redset":
  34. set {red.tp} to location of player
  35. send "&bset:redtp:%location of player%"
  36. else if arg-1 is "blueset":
  37. set {blue.tp} to location of player
  38. send "&bset:redtp:%location of player%"
  39. else if arg-1 is "redtp":
  40. loop all players:
  41. if {team::%loop-player%} is "red":
  42. teleport loop-player to {red.tp}
  43. else:
  44. send "&c/teamteleport [redset|blueset|redtp|bluetp]"
  45. on damage of player:
  46. if {red::*} contains attacker:
  47. if {red::*} contains victim:
  48. cancel event
  49. if {blue::*} contains attacker:
  50. if {blue::*} contains victim:
  51. cancel eventon break:
  52. if event-block is in the region "block":
  53. set {blocks::%location of event-block%} to type of event-block
  54. on place:
  55. if event-block is in the region "block":
  56. add event-block to {place::*}
  57. command /reset:
  58. permission: skript.admin
  59. trigger:
  60. loop {place::*}:
  61. set block at loop-value to air
  62. loop {blocks::*}:
  63. set {_loc::*} to substring of loop-index from 7 to length of loop-index split at ","
  64. set {_x} to {_loc::1} parsed as number
  65. set {_y} to {_loc::2} parsed as number
  66. set {_z} to {_loc::3} parsed as number
  67. set block at location ({_x}, {_y}, {_z}) to loop-value
  68. delete {place::*}
  69. delete {break::*}
  70. on join:
  71. teleport player to location (-1525, 9, -2283)
  72. on death of player:
  73. quit(victim)
  74. if {red::*} contains attacker:
  75. add 1 to {kill.r}
  76. else if {blue::*} contains attacker:
  77. add 1 to {kill.b}
  78. add 1 to {kill.%attacker%}
  79. on quit:
  80. quit(player)
  81. on respawn:
  82. set player's gamemode to victim
  83. function score(s: player):
  84. wipe {_s}'s sidebar
  85. set name of sidebar of {_s} to "&e&lTHE WALLS"
  86. set score "&b" in sidebar of {_s} to 8
  87. set score "&d" in sidebar of {_s} to 7
  88. set score "&f青チーム 生き残り: &a%size of {blue::*}%" in sidebar of {_s} to 6
  89. set score "&f赤チーム 生き残り: &a%size of {red::*}%" in sidebar of {_s} to 5
  90. set score "&e" in sidebar of {_s} to 4
  91. set score "&fキル数: &a%{kill.%{_s}%}%" in sidebar of {_s} to 3
  92. if {red::*} contains {_s}:
  93. set score "&fチームのキル数: &a%{kill.r}%" in sidebar of {_s} to 3
  94. else if {blue::*} contains {_s}:
  95. set score "&fチームのキル数: &a%{kill.b}%" in sidebar of {_s} to 3
  96. set score "&c" in sidebar of {_s} to 2
  97. set score "&eplayerrealms.com" in sidebar of {_s} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement