Advertisement
SUPERFIRE777

Untitled

May 4th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. command /teamset <text>:
  2. trigger:
  3. if arg is "Mushroom":
  4. set {%player%.team} to "Mushroom"
  5. message "&c&lMushroom&rチームに入ったよ!" to the player
  6. else if arg is "Creeper":
  7. set {%player%.team} to "Creeper"
  8. message "&a&lCreeper&rチームに入ったよ!" to the player
  9. else:
  10. message "MushroomかCreeperで入力して下さい。" to the player
  11. command /maxkillchange <integer>:
  12. trigger:
  13. set {goal} to arg
  14. message "目標KILL数を%arg%に設定しました。" to the player
  15. command /start:
  16. trigger:
  17. set {playing} to true
  18. set {Mushroom.kills} to 0
  19. set {Creeper.kills} to 0
  20. on death of player:
  21. if {%attacker%.team} is "Mushroom":
  22. add 1 to {Mushroom.kills}
  23. if {Mushroom.kills} is {goal}:
  24. set {playing} to false
  25. execute console command "/title @a title {""text"":""§c§lMushroomチームの勝ち!""}"
  26. loop all players:
  27. if {%loop-player%.team} is "Mushroom":
  28. give a sunflower named "&6&lWinner medal" to loop-player
  29. if {firework} is more than 0:
  30. give 2 sunflowers named "&c&lMushroom medal" to loop-player
  31. else:
  32. give a sunflower named "&c&lMushroom medal" to loop-player
  33. subtract 1 from {firework}
  34. broadcast "&6&lWinfireworksの効果はあと%{firework}%試合続きます。"
  35. else:
  36. broadcast "あと%{goal} - {Mushroom.kills}%KILLで&c&lMushroom&rチームの勝ちとなります。"
  37. else:
  38. add 1 to {Creeper.kills}
  39. if {Creeper.kills} is {goal}:
  40. set {playing} to false
  41. execute console command "/title @a title {""text"":""§a§lCreeperチームの勝ち!""}"
  42. loop all players:
  43. if {%loop-player%.team} is "Creeper":
  44. give a sunflower named "&6&lWinner medal" to loop-player
  45. if {firework} is more than 0:
  46. give 2 sunflowers named "&a&lCreeper medal" to loop-player
  47. else:
  48. give a sunflower named "&a&lCreeper medal" to loop-player
  49. subtract 1 from {firework}
  50. broadcast "&6&lWinfireworksの効果はあと%{firework}%試合続きます。"
  51. else:
  52. broadcast "あと%{goal} - {Creeper.kills}%KILLで&a&lCreeper&rチームの勝ちとなります。"
  53. on rightclick with firework:
  54. if player's tool's name is "§6§lWinfireworks":
  55. cancel event
  56. if clicked block isn't air:
  57. set {_x} to clicked block's x-coord
  58. set {_y} to clicked block's y-coord
  59. set {_z} to clicked block's z-coord
  60. execute console command "/clear %player% fireworks 0 1 {display:{Name:""§6§lWinfireworks""}}"
  61. execute console command "/summon fireworks_rocket %{_x}% %{_y}% %{_z}% {Motion:[0.0,0.75,0.0],LifeTime:15,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:2,Colors:[I;16768310,8716070,16777215],FadeColors:[I;8339711,16729927,2389247]}]}}}}"
  62. add 10 to {firework}
  63. broadcast "&6&l%player%さんがWinfireworksを使用して報酬を2倍にしてくれました!効果はあと%{firework}%試合続きます。"
  64. command /fireworkreset:
  65. trigger:
  66. set {firework} to 0
  67. broadcast "&6&l効果持続試合数をリセットしました。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement