Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #{team}: チーム変数
- on crafting of banner:
- cancel event
- on rightclick on banner:
- if {team.%player%} is red:
- command "/scoreboard players tag @e[tag=banner] add red"
- if {team.%player%} is blue:
- command "/scoreboard players tag @e[tag=banner] add blue"
- if {team.%player%} is yellow:
- command "/scoreboard players tag @e[tag=banner] add yellow"
- if {team.%player%} is green:
- command "/scoreboard players tag @e[tag=banner] add green"
- command /team [<text>] [<player>]:
- permission: sk.command.team
- trigger:
- if arg-1 is not "yellow" or "red" or "blue" or "green" or "leave":
- send "&c使用法: /team <team> <player>"
- stop
- if arg-1 is "yellow" or "red" or "blue" or "green":
- set {team.%arg-2%} to arg-1
- command "/scoreboard teams join %arg-1% %arg-2%"
- stop
- if arg-1 is "leave"
- delete {team.%arg-2%}
- command "/scoreboard teams leave %arg-2%"
- if arg-1 is red:
- command "/ne player %arg-2% prefix &c[R]"
- if arg-1 is blue:
- command "/ne player %arg-2% prefix &9[B]"
- if arg-1 is yellow:
- command "/ne player %arg-2% prefix &e[Y]"
- if arg-1 is green:
- command "/ne player %arg-2% prefix &a[G]"
- if arg-1 none:
- command "/ne player %arg-2% clear"
- on break of banner:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment