kjfalkeiae

Untitled

Jul 31st, 2018
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #{team}: チーム変数
  2. on crafting of banner:
  3. cancel event
  4. on load:
  5. register new shapeless recipe for enchanted golden apple using gold block, gold block, gold block, gold block, apple, gold block, gold block, gold block, gold block
  6. command /team [<text>] [<offline player>]:
  7. permission: sk.command.team
  8. trigger:
  9. if arg-1 is not "yellow" or "red" or "blue" or "green" or "leave" or "confirmation":
  10. send "&c使用法: /team <team|leave|confirmation> <player>"
  11. stop
  12. if arg-1 is "red":
  13. set {team.%arg-2%} to 1
  14. send "&b%arg-2%のチームを&c赤&bにしました"
  15. command "/scoreboard teams join red %arg-2%"
  16. command "/ne player %arg-2% prefix &c[R] &c"
  17. stop
  18. if arg-1 is "blue":
  19. set {team.%arg-2%} to 2
  20. send "&b%arg-2%のチームを&9青&bにしました"
  21. command "/scoreboard teams join blue %arg-2%"
  22. command "/ne player %arg-2% prefix &9[B] &9"
  23. stop
  24. if arg-1 is "yellow":
  25. set {team.%arg-2%} to 3
  26. send "&b%arg-2%のチームを&e黄&bにしました"
  27. command "/scoreboard teams join yellow %arg-2%"
  28. command "/ne player %arg-2% prefix &e[E] &e"
  29. stop
  30. if arg-1 is "green":
  31. set {team.%arg-2%} to 4
  32. send "&b%arg-2%のチームを&a緑&bにしました"
  33. command "/scoreboard teams join green %arg-2%"
  34. command "/ne player %arg-2% prefix &a[G] &a"
  35. stop
  36. if arg-1 is "leave":
  37. delete {team.%arg-2%}
  38. command "/scoreboard teams leave %arg-2%"
  39. send "&b%arg-2%を所属しているチームから退出させました"
  40. command "/ne player %arg-2% clear"
  41. stop
  42. if arg-1 is "confirmation":
  43. if {team.%arg-2%} is 1:
  44. send "&b%arg-2%のチームは&c赤&bです"
  45. if {team.%arg-2%} is 2:
  46. send "&b%arg-2%のチームは&9青&bです"
  47. if {team.%arg-2%} is 3:
  48. send "&b%arg-2%のチームは&e黄&bです"
  49. if {team.%arg-2%} is 4:
  50. send "&b%arg-2%のチームは&a緑&bです"
  51.  
  52. on break of banner:
  53. if player's gamemode is survival:
  54. if {team.%player%} is 1:
  55. execute console command "/scoreboard players tag @e[tag=banner] add red"
  56. cancel event
  57. if {team.%player%} is 2:
  58. execute console command "/scoreboard players tag @e[tag=banner] add blue"
  59. cancel event
  60. if {team.%player%} is 3:
  61. execute console command "/scoreboard players tag @e[tag=banner] add yellow"
  62. cancel event
  63. if {team.%player%} is 4:
  64. execute console command "/scoreboard players tag @e[tag=banner] add green"
  65. cancel event
  66. on damage:
  67. victim is a player
  68. attacker is a player
  69. if {team.%victim%} is 1:
  70. {team.%attacker%} is 1
  71. cancel event
  72. if {team.%victim%} is 2:
  73. {team.%attacker%} is 2
  74. cancel event
  75. if {team.%victim%} is 3:
  76. {team.%attacker%} is 3
  77. cancel event
  78. if {team.%victim%} is 4:
  79. {team.%attacker%} is 4
  80. cancel event
  81.  
  82. on death:
  83. victim is a player
  84. set {_attacker} to attacker
  85. set {_victim} to victim
  86. if {_attacker} is set:
  87. if attacker is a player:
  88. strike lightning effect at victim
  89. delete {_attacker}
  90. delete {_victim}
  91. wait 1 tick
  92. force victim to respawn
  93. if attacker is not a player:
  94. execute console command "/execute %victim% ~ ~ ~ summon fireworks_rocket ~ ~2 ~ {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Trail:1,Colors:[I;%random integer between 1 and 16777215%,%random integer between 1 and 16777215%,%random integer between 1 and 16777215%],FadeColors:[I;%random integer between 1 and 16777215%]}]}}}}"
  95. delete {_victim}
  96. wait 1 tick
  97. force victim to respawn
  98. else:
  99. execute console command "/execute %victim% ~ ~ ~ summon fireworks_rocket ~ ~2 ~ {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Flicker:1,Trail:1,Colors:[I;%random integer between 1 and 16777215%,%random integer between 1 and 16777215%,%random integer between 1 and 16777215%],FadeColors:[I;%random integer between 1 and 16777215%]}]}}}}"
  100. delete {_victim}
  101. wait 1 tick
  102. force victim to respawn
  103.  
  104. command /setspawn:
  105. permission: TSP.leader
  106. permission message: &cスポーン地点を設定できるのはリーダーだけです
  107. trigger:
  108. if {team.%player%} is 1:
  109. set {redspawn} to location of player
  110. send "&c赤&bチームのスポーン地点を設定を設定しました"
  111. if {team.%player%} is 2:
  112. set {bluespawn} to location of player
  113. send "&9青&bチームのスポーン地点を設定を設定しました"
  114. if {team.%player%} is 3:
  115. set {yellowspawn} to location of player
  116. send "&e黄&bチームのスポーン地点を設定を設定しました"
  117. if {team.%player%} is 4:
  118. set {greenspawn} to location of player
  119. send "&a緑&bチームのスポーン地点を設定を設定しました"
  120. on respawn:
  121. if {team.%player%} is 1:
  122. teleport player to {redspawn}
  123. if {team.%player%} is 2:
  124. teleport player to {bluespawn}
  125. if {team.%player%} is 3:
  126. teleport player to {yellowspawn}
  127. if {team.%player%} is 4:
  128. teleport player to {greenspawn}
  129.  
  130. command /spawn:
  131. permission: TSP.spawn
  132. permission message: Unknown command. Type "/help" for help.
  133. trigger:
  134. if {team.%player%} is 1:
  135. teleport player to {redspawn}
  136. stop
  137. if {team.%player%} is 2:
  138. teleport player to {bluespawn}
  139. stop
  140. if {team.%player%} is 3:
  141. teleport player to {yellowspawn}
  142. stop
  143. if {team.%player%} is 4:
  144. teleport player to {greenspawn}
  145. stop
  146. if {team.%player%} is not 1 or 2 or 3 or 4:
  147. stop
  148.  
  149. command /refresh:
  150. permission:TSP.refresh
  151. permission message: Unknown command. Type "/help" for help.
  152. trigger:
  153. loop all players:
  154. if {team.%loop-player%} is 1:
  155. command "/ne player %loop-player% prefix &c[R] &c"
  156. wait 1 second
  157. if {team.%loop-player%} is 2:
  158. command "/ne player %loop-player% prefix &9[B] &9"
  159. wait 1 second
  160. if {team.%loop-player%} is 3:
  161. command "/ne player %loop-player% prefix &e[Y] &e"
  162. wait 1 second
  163. if {team.%loop-player%} is 4:
  164. command "/ne player %loop-player% prefix &a[G] &a"
  165. wait 1 second
  166. if {team.%loop-player%} is not set:
  167. command "/ne player %loop-player% clear"
  168. wait 1 second
  169.  
  170. command /spawnconfirmation [<text>]:
  171. aliases: /sc
  172. permission: TSP.sc
  173. permission message: &cYou don't have permission.
  174. trigger:
  175. if arg-1 is not "red" or "blue or "yellow" or "green":
  176. send "Usage: /spawnconfirmation <team>"
  177. if arg-1 is "red":
  178. send "&c赤&bのスポーン地点は%{redspawn}%です"
  179. if arg-1 is "blue":
  180. send "&9青&bのスポーン地点は%{bluespawn}%です"
  181. if arg-1 is "yellow":
  182. send "&e黄&bのスポーン地点は%{yellowspawn}%です"
  183. if arg-1 is "green":
  184. send "&a緑&bのスポーン地点は%{greenspawn}%です"
Advertisement
Add Comment
Please, Sign In to add comment