akon1248

Untitled

Jul 30th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #{team}: チーム変数
  2. on crafting of banner:
  3. cancel event
  4. on rightclick on banner:
  5. if {team.%player%} is red:
  6. command "/scoreboard players tag @e[tag=banner] add red"
  7. if {team.%player%} is blue:
  8. command "/scoreboard players tag @e[tag=banner] add blue"
  9. if {team.%player%} is yellow:
  10. command "/scoreboard players tag @e[tag=banner] add yellow"
  11. if {team.%player%} is green:
  12. command "/scoreboard players tag @e[tag=banner] add green"
  13. command /team [<text>] [<player>]:
  14. permission: sk.command.team
  15. trigger:
  16. if arg-1 is not "yellow" or "red" or "blue" or "green" or "leave":
  17. send "&c使用法: /team <team> <player>"
  18. stop
  19. if arg-1 is "yellow" or "red" or "blue" or "green":
  20. set {team.%arg-2%} to arg-1
  21. command "/scoreboard teams join %arg-1% %arg-2%"
  22. stop
  23. if arg-1 is "leave"
  24. delete {team.%arg-2%}
  25. command "/scoreboard teams leave %arg-2%"
  26. if arg-1 is red:
  27. command "/ne player %arg-2% prefix &c[R]"
  28. if arg-1 is blue:
  29. command "/ne player %arg-2% prefix &9[B]"
  30. if arg-1 is yellow:
  31. command "/ne player %arg-2% prefix &e[Y]"
  32. if arg-1 is green:
  33. command "/ne player %arg-2% prefix &a[G]"
  34. if arg-1 none:
  35. command "/ne player %arg-2% clear"
  36. on break of banner:
  37. cancel event
Advertisement
Add Comment
Please, Sign In to add comment