Advertisement
taktie0304

Untitled

Jul 15th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. on death of player:
  2. if {team.%player%} is set:
  3. wait 3 ticks
  4. force respawn player
  5. set the victim's gamemode to spectator
  6. remove 1 from {%{team.%victim%}%}
  7. add 1 to {kill.%uuid of attacker%}
  8. add 1 to {death.%uuid of victim%}
  9. add 3 to {xp.%uuid of attacker%}
  10. broadcast "<%{team.%attacker%}%>%attacker% &7--&8|&6)&7--> <%{team.%victim%}%>%victim%"
  11. if {red} is 0:
  12. set {game} to false
  13. loop all players:
  14. if {team.%loop-player%} is "red":
  15. send loop-player title "&9&l敗北" with subtitle "&c味方が全員倒された" for 5 seconds
  16. add 1 to {lose.%uuid of loop-player%}
  17. add 10 to {xp.%uuid of attacker%}
  18. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  19. if {team.%loop-player%} is "blue":
  20. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  21. add 1 to {win.%uuid of loop-player%}
  22. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  23. wait 6 seconds
  24. loop all players:
  25. if {team.%loop-player%} is set:
  26. remove all items from loop-player's inventory
  27. give grey dye named "&eゲームに参加する" to loop-player
  28. teleport the loop-player to {lobby}
  29. delete {team.%loop-player%}
  30. else if {blue} is 0:
  31. set {game} to false
  32. loop all players:
  33. if {team.%loop-player%} is "red":
  34. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  35. add 1 to {win.%uuid of loop-player%}
  36. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  37. if {team.%loop-player%} is "blue":
  38. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  39. add 1 to {lose.%uuid of loop-player%}
  40. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  41. wait 6 seconds
  42. loop all players:
  43. if {team.%loop-player%} is set:
  44. remove all items from loop-player's inventory
  45. give grey dye named "&eゲームに参加する" to loop-player
  46. teleport the loop-player to {lobby}
  47. delete {team.%loop-player%}
  48. else:
  49. loop all players:
  50. if {team.%loop-player%} is "red":
  51. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  52. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  53. if {team.%loop-player%} is "blue":
  54. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  55. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement