kunihiko_sato

Untitled

Dec 24th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.58 KB | None | 0 0
  1. on damage of player:
  2. attacker is player:
  3. if {%attacker%.pvp} is set:
  4. if {%victim%.pvp} is not set:
  5. cancel event
  6. else:
  7. if {%victim%.pvp} is set:
  8. cancel event
  9.  
  10. on death of player:
  11. attacker is player:
  12. if {%attacker%.pvp} is set:
  13. if {%victim%.pvp} is set:
  14. force respawn victim
  15. broadcast "&6[1vs1] &a%attacker%&eが&a%victim%&eを倒した!"
  16. broadcast "&6[1vs1] &e今回の勝者は&a%attacker%&eです!"
  17. execute console command "endarena %{%attacker%.pa}%"
  18. execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
  19. wait a second
  20. execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
  21. wait a second
  22. execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
  23. wait a second
  24. execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
  25. wait a second
  26. execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
  27.  
  28. command /addarena [<text>]:
  29. permission: 1vs1.arena.add
  30. permission message: §cYou need permission "1vs1.arena.add"!
  31. trigger:
  32. if arg-1 is set:
  33. if arg-1 is {arena::*}:
  34. send "&6[1vs1] &cそのアリーナは既に存在します!"
  35. execute console command "execute @a ~ ~ ~ /playsound minecraft:item.shield.break master @a ~ ~ ~ 5 0.5"
  36. else:
  37. send "&6[1vs1] &eAdded arena ""%arg 2%""!"
  38. add "&c[Arena] &6%arg 2%" to {arena::*}
  39. else:
  40. send "&cUsage: &7/addarena <new arena>"
  41.  
  42. command /arena-setspawn [<text>] [<text>]:
  43. permission: 1vs1.arena.spawn.set
  44. permission message: §cYou need permission "1vs1.arena.spawn.set"!
  45. aliases: /arenasetspawn, /arena-ss, /arenass, /ass
  46. trigger:
  47. if arg-1 is set:
  48. if arg-1 is {arena::*}:
  49. if {1vs1.%arg 1%.start} is set:
  50. send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
  51. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  52. else:
  53. if arg-2 is "red" or "blue":
  54. if arg-2 is "red":
  55. execute console command "execute %player% ~ ~ ~ /kill @e[type=armor_stand,tag=%arg 1%_r]"
  56. execute console command "execute %player% ~ ~ ~ /summon armor_stand ~ ~ ~ {Invisible:1,Marker:1,Tags:[""%arg 1%_r""]}"
  57. execute console command "execute %player% ~ ~ ~ /tp @e[type=armor_stand,tag=%arg 1%_r] %player%"
  58. send "&3[%arg 1%] &c&lRed&e's spawnpoint setted! (%location of player%)"
  59. if arg-2 is "blue":
  60. execute console command "execute %player% ~ ~ ~ /kill @e[type=armor_stand,tag=%arg 1%_b]"
  61. execute console command "execute %player% ~ ~ ~ /summon armor_stand ~ ~ ~ {Invisible:1,Marker:1,Tags:[""%arg 1%_b""]}"
  62. execute console command "execute %player% ~ ~ ~ /tp @e[type=armor_stand,tag=%arg 1%_b] %player%"
  63. send "&3[%arg 1%] &b&lBlue&e's spawnpoint setted! (%location of player%)"
  64. else:
  65. send "&cUsage: &7/ass %arg 1% <red/blue>"
  66. else:
  67. send "&6[1vs1] &cそのアリーナは存在しません!"
  68. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  69. else:
  70. send "&cUsage: &7/ass <arena> <red/blue>"
  71.  
  72. command /arena-removespawn [<text>]:
  73. permission: 1vs1.arena.spawn.remove
  74. permission message: §cYou need permission "1vs1.arena.spawn.remove"!
  75. aliases: /arenaremovespawn, /arena-rs, /arenars, /ars
  76. trigger:
  77. if arg-1 is set:
  78. if arg-1 is {arena::*}:
  79. if {1vs1.%arg 1%.start} is set:
  80. send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
  81. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  82. else:
  83. execute console command "/kill @e[type=armor_stand,tag=%arg 1%_c]"
  84. execute console command "/kill @e[type=armor_stand,tag=%arg 1%_b]"
  85. send "&3[%arg 1%] &eRemoved spawnpoint!"
  86. else:
  87. send "&6[1vs1] &cそのアリーナは存在しません!"
  88. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  89. else:
  90. send "&cUsage: &7/ars <arena>"
  91.  
  92. command /removearena [<text>]:
  93. permission: 1vs1.arena.remove
  94. permission message: §cYou need permission "1vs1.arena.remove"!
  95. trigger:
  96. if arg-1 is set:
  97. if arg-1 is {arena::*}:
  98. if {1vs1.%arg 1%.start} is set:
  99. send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
  100. execute console command "execute @a ~ ~ ~ /playsound minecraft:item.shield.break master @a ~ ~ ~ 5 0.5"
  101. else:
  102. delete {1vs1.%arg 2%.jc}
  103. if {%player%.ja} is arg-1:
  104. delete {%player%.ja}
  105. delete {%player%.j}
  106. else:
  107. send "&6[1vs1] &cそのアリーナは存在しません!"
  108. execute console command "execute @a ~ ~ ~ /playsound minecraft:item.shield.break master @a ~ ~ ~ 5 0.5"
  109. else:
  110. send "&cUsage: &7/removearena <arena>"
  111.  
  112. command /listarena [<text>]:
  113. permission: 1vs1.command.listarena
  114. permission message: §cYou need permission "1vs1.command.listarena"!
  115. trigger:
  116. if {arena::*} is set:
  117. send "&6&l---------------[ List of arena ]---------------"
  118. loop {arena::*}:
  119. send "%loop-value%"
  120. send "&6&l----------------------------------------------"
  121. else:
  122. send "&6&l[List of arena] &cアリーナがありません!"
  123.  
  124. command /endarena [<text>]:
  125. permission: 1vs1.command.endarena
  126. permission message: §cYou need permission "1vs1.command.endarena"
  127. trigger:
  128. if arg-1 is set:
  129. if arg-1 is {arena::*}:
  130. if {1vs1.%arg 1%.start} is set:
  131. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 5 1.0"
  132. broadcast "&3[%arg 1%] &bアリーナ終了!"
  133. execute console command "tp %{%arg 1%.r}% <ロビーの座標> 0 0"
  134. execute console command "tp %{%arg 1%.b}% <ロビーの座標> 0 0"
  135. execute console command "clear %{%arg 1%.r}%"
  136. execute console command "clear %{%arg 1%.b}%"
  137. execute console command "nt %{%arg 1%.r}% &r"
  138. execute console command "nt %{%arg 1%.b}% &r"
  139. execute console command "tn %{%arg 1%.r}% &r"
  140. execute console command "tn %{%arg 1%.b}% &r"
  141. delete {%{%arg 1%.r}%.pvp}
  142. delete {%{%arg 1%.b}%.pvp}
  143. delete {%arg 1%.r}
  144. delete {%arg 1%.b}
  145. else:
  146. send "&6[1vs1] &cそのアリーナは開始していません!"
  147. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  148. else:
  149. send "&6[1vs1] &cそのアリーナは存在しません!"
  150. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  151. else:
  152. send "&cUsage: &7/endarena <arena>"
  153.  
  154. command /nametag <player> <text>:
  155. permission: 1vs1.command.nt
  156. permission message: §cYou don't enough permission!
  157. aliases: /nt
  158. trigger:
  159. set arg-1's display name to "%coloured arg 2%%arg 1%"
  160. send "&bComplete!"
  161.  
  162. command /tabname <player> <text>:
  163. permission: 1vs1.command.tn
  164. permission message: §cYou don't enough permission!
  165. aliases: /tn
  166. trigger:
  167. set arg-1's tablist name to "%coloured arg 2%%arg 1%"
  168. send "&bComplete!"
  169.  
  170. command /startarena [<text>]:
  171. permission: 1vs1.command.startarena
  172. permission message: §cYou need permission "1vs1.command.listarena"!
  173. trigger:
  174. if arg-1 is set:
  175. if arg-1 is {arena::*}:
  176. if {1vs1.%arg 1%.start} is set:
  177. execute console command "clear %{%arg 1%.r}%"
  178. execute console command "clear %{%arg 1%.b}%"
  179. execute console command "replaceitem entity %{%arg 1%.r}% slot.hotbar.0 minecraft:iron_sword 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§eIron Sword"",Lore:["""",""§b§lStatus:"",""§6>> §2攻撃力 6"",""§6>> §2攻撃速度 1.6"",""&6>> §9不可壊""]}}"
  180. execute console command "replaceitem entity %{%arg 1%.r}% slot.hotbar.1 minecraft:bow 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§eBow""}}"
  181. execute console command "tp %{%arg 1%.r}% @e[type=armor_stand,tag=%arg 1%_r]"
  182. execute console command "tp %{%arg 1%.b}% @e[type=armor_stand,tag=%arg 1%_b]"
  183. broadcast "&6[1vs1] &e「%arg 1%」の人数が揃いましたので、アリーナを開始します。"
  184. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
  185. wait 5 seconds
  186. broadcast "&3[%arg 1%] &b開始まであと &a&l10&b 秒"
  187. execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
  188. wait 5 seconds
  189. broadcast "&3[%arg 1%] &b開始まであと &e&l5&b 秒"
  190. execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
  191. wait a second
  192. broadcast "&3[%arg 1%] &b開始まであと &6&l4&b 秒"
  193. execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
  194. wait a second
  195. broadcast "&3[%arg 1%] &b開始まであと &c&l3&b 秒"
  196. execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
  197. wait a second
  198. broadcast "&3[%arg 1%] &b開始まであと &c&l2&b 秒"
  199. execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
  200. wait a second
  201. broadcast "&3[%arg 1%] &b開始まであと &c&l1&b 秒"
  202. execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
  203. wait a second
  204. broadcast "&3[%arg 1%] &bアリーナ開始!"
  205. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.elder_guardian.curse master @a ~ ~ ~ 5 1.0"
  206. set {%{%arg 1%.r}%.pvp} to 1
  207. set {%{%arg 1%.r}%.pvp} to 1
  208. set {%{%arg 1%.r}%.pa} to arg-1
  209. execute console command "nt %{%arg 1%.r}% &c"
  210. execute console command "nt %{%arg 1%.b}% &b"
  211. execute console command "tn %{%arg 1%.r}% &c[%arg 1%] &c"
  212. execute console command "tn %{%arg 1%.b}% &b[%arg 1%] &b"
  213. else:
  214. send "&6[1vs1] &c「%arg 1%」の人数が揃っていないので、アリーナを開始できません!"
  215. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  216. else:
  217. send "&6[1vs1] &cそのアリーナは存在しません!"
  218. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  219. else:
  220. send "&cUsage: &7/startarena <arena>"
  221.  
  222. command /1vs1 [<text>] [<text>]:
  223. aliases: /1v1
  224. trigger:
  225. if arg-1 is "join" or "leave":
  226. if arg-1 is "join":
  227. if arg-2 is set:
  228. if arg-2 is {arena::*}:
  229. set {%player%.ja} to arg-2
  230. if {1vs1.%{%player%.ja}%.start} is set:
  231. send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
  232. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  233. else:
  234. if {1vs1.%player%.j} is not set:
  235. if {1vs1.%{%player%.ja}%.jc} is not set:
  236. set {1vs1.%player%.j} to {%player%.ja}
  237. set {1vs1.%{%player%.ja}%.jc} to 1
  238. broadcast "&6[1vs1] &a%player%&eが「%{%player%.ja}%」に参加しました! &71&8/&72"
  239. set {%{%player%.ja}%.r} to player
  240. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
  241. else:
  242. delete {1vs1.%{%player%.ja}%.jc}
  243. broadcast "&6[1vs1] &a%player%&eが「%{%player%.ja}%」に参加しました! &72&8/&72"
  244. set {%{%player%.ja}%.b} to player
  245. set {1vs1.%{%player%.ja}%.start} to 1
  246. execute console command "startarena %{%player%.ja}%"
  247. else:
  248. send "&6[1vs1] &c既に参加しています!"
  249. execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
  250. else:
  251. send "&cそのアリーナは存在しません!"
  252. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
  253. else:
  254. send "&cUsage: &7/1vs1 join <arena>"
  255. if arg-1 is "leave":
  256. if {%player%.%{%player%.ja}%.j} is set:
  257. if {1vs1.%{%player%.ja}%.jc} is 1:
  258. delete {1vs1.%{%player%.ja}%.jc}
  259. delete {%player%.%{%player%.ja}%.j}
  260. delete {%player%.ja}
  261. broadcast "&6[1vs1] &a%player%&eが「%{%player%.ja}%」から退出しました。 &70&8/&72"
  262. execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
  263. else:
  264. send "&6[1vs1] &cアリーナに参加していません!"
  265. execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
  266. else:
  267. send "&cUsage: &7/1vs1 <join <arena>/leave>"
Add Comment
Please, Sign In to add comment