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":
- set block at event-location to red banner
- if {team.%player%} is "blue":
- set block at event-location to blue banner
- if {team.%player%} is "yellow":
- set block at event-location to yellow banner
- if {team.%player%} is "green":
- set block at event-location to green banner
- command /jointeam [<text>] [<player>]:
- permission: sk.command.team
- trigger:
- if arg-1 is not "yellow" or "red" or "blue" or "green":
- send "&c使用法: /jointeam <team> <player>"
- stop
- else:
- set {team.%arg-2%} to arg-1
- command "/scoreboard teams join %arg-1% %arg-2%"
- if arg-1 is "red":
- command "/ne player %arg-2% prefix &c"
- if arg-1 is "blue":
- command "/ne player %arg-2% prefix &9"
- if arg-1 is "yellow":
- command "/ne player %arg-2% prefix &e"
- if arg-1 is "green":
- command "/ne player %arg-2% prefix &a"
Advertisement
Add Comment
Please, Sign In to add comment