Advertisement
siso_Friends

Untitled

Feb 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.73 KB | None | 0 0
  1. on rightclick holding iron sword:
  2. name of held item contains "攻城戦に参加する"
  3. set {_team} to random integer between 1 and 2
  4. if {_team} is 1:
  5. execute console command "/pex user %player% remove Red.sk"
  6. execute console command "/pex user %player% remove Blue.sk"
  7. execute console command "/scoreboard teams join Red %player%"
  8. execute console command "/pex user %player% prefix &c[Red]&f"
  9. execute console command "/pex user %player% add Red.sk"
  10. message "&6あなたは&c赤&6チームになりました"
  11. clear player's inventory
  12. if {_team} is 2:
  13. execute console command "/pex user %player% remove Red.sk"
  14. execute console command "/pex user %player% remove Blue.sk"
  15. execute console command "/scoreboard teams join Blue %player%"
  16. execute console command "/pex user %player% prefix &9[Blue]&f"
  17. execute console command "/pex user %player% add Blue.sk"
  18. message "&6あなたは&9青&6チームになりました"
  19. clear player's inventory
  20. stop
  21. on rightclick holding cookie:
  22. broadcast "&b10秒後にゲームがスタートします"
  23. wait 10 seconds
  24. loop all players:
  25. if loop-player has permission "Red.sk":
  26. kill the loop-player
  27. execute console command "/tp @a[team=Red] -2 70 -39"
  28. if loop-player has permission "Blue.sk":
  29. kill the loop-player
  30. execute console command "/tp @a[team=Blue] -6 106 108"
  31. broadcast "&6はい、よーいスタート"
  32. broadcast "&a↓ルール↓"
  33. broadcast "&c赤&aチームの方は青チームのリースポーン地点(ガラスに囲まれたでかい塔)のエンドストーンを壊せば勝ちです"
  34. broadcast "&9青&aチームの方は赤チームのリスポーン地点(サーバーに入るときにスポーンするところ)の看板を押せば勝ちです"
  35. set {kouzyousenn} to 3
  36. add -2 to {kouzyousenn}
  37. on first join:
  38. if {kouzyousenn} 1 is set:
  39. give feather named "&b攻城戦途中参加" to player
  40. stop
  41. on join:
  42. if {kouzyousenn} 1 is set:
  43. give feather named "&b攻城戦途中参加" to player
  44. stop
  45. on rightclick holding feather:
  46. name of held item contains "攻城戦途中参加"
  47. if {_team} is 1:
  48. execute console command "/pex user %player% remove Red.sk"
  49. execute console command "/pex user %player% remove Blue.sk"
  50. execute console command "/scoreboard teams join Red %player%"
  51. execute console command "/pex user %player% prefix &c[Red]&f"
  52. execute console command "/pex user %player% add Red.sk"
  53. message "&6あなたは&c赤&6チームになりました"
  54. clear player's inventory
  55. if player has permission "Red.sk":
  56. kill the player
  57. execute console command "/tp @a[team=Red] -2 70 -39"
  58. if {_team} is 2:
  59. execute console command "/pex user %player% remove Red.sk"
  60. execute console command "/pex user %player% remove Blue.sk"
  61. execute console command "/scoreboard teams join Blue %player%"
  62. execute console command "/pex user %player% prefix &9[Blue]&f"
  63. execute console command "/pex user %player% add Blue.sk"
  64. message "&6あなたは&9青&6チームになりました"
  65. clear player's inventory
  66. if player has permission "Blue.sk":
  67. kill the player
  68. execute console command "/tp @a[team=Blue] -6 106 108"
  69. stop
  70. on respawn:
  71. if player has permission "Red.sk":
  72. execute console command "/tp %player% -2 70 -39"
  73. if player has permission "Blue.sk":
  74. execute console command "/tp %player% -6 106 108"
  75. on break of end stone:
  76. broadcast "&e%player%が&aエンドストーンを壊し、赤軍の勝利となった"
  77. loop all players:
  78. execute console command "/pex user %loop-player% remove Red.sk"
  79. execute console command "/pex user %loop-player% remove Blue.sk"
  80. broadcast "&a10秒後にゲームを終了します"
  81. play sound "entity.enderdragon.death" with volume 10 and pitch 1 at all players
  82. wait 10 seconds
  83. execute console command "/setblock -6 107 112 end_stone"
  84. execute console command "/tp @a -2 70 -58"
  85. add 2 to {kouzyousenn}
  86. stop
  87. on rightclick:
  88. block is sign
  89. if player has permission "Blue.sk":
  90. broadcast "&e%player%が&a看板をクリックした、よって青軍の勝利となった"
  91. loop all players:
  92. execute console command "/pex user %loop-player% remove Red.sk"
  93. execute console command "/pex user %loop-player% remove Blue.sk"
  94. play sound "entity.enderdragon.death" with volume 10 and pitch 1 at all players
  95. broadcast "&a10秒後にゲームを終了します"
  96. wait 10 seconds
  97. execute console command "/tp @a -2 70 -58"
  98. add 2 to {kouzyousenn}
  99. stop
  100. command /ko:
  101. permission: skript.admin
  102. trigger:
  103. loop all players:
  104. kill loop-player
  105. wait 5 seconds
  106. give iron sword named "攻城戦に参加する" to loop-player
  107. broadcast "&6これから攻城戦を開始します、参加方法は鉄剣右クリです"
  108. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement