Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /teamdivide:
- trigger:
- loop all players:
- set {_random} to random integer between 1 and 2
- if {_random} is 1:
- add loop-player to {red::*}
- send "&aあなたは &c赤チーム &aです" to loop-player
- set loop-player's tablist name to "&c%loop-player%"
- set loop-player's display name to "&c%loop-player%"
- set {team::%loop-player%} to "red"
- if {_random} is 2:
- add loop-player to {blue::*}
- send "&aあなたは &9青チーム &aです" to loop-player
- set loop-player's tablist name to "&9%loop-player%"
- set loop-player's display name to "&9%loop-player%"
- set {team::%loop-player%} to "blue"
- command /teamexit:
- trigger:
- clear {red::*}
- clear {blue::*}
- clear {team::*}
- send "&aすべてのチームが解散されました!" to loop-player
- loop all players:
- set loop-player's tablist name to "%loop-player%"
- command /teamteleport [<text>]:
- trigger:
- if arg-1 is not set:
- send "&c/teamteleport [redset|blueset|redtp|bluetp]"
- else if arg-1 is "bluetp":
- loop all players:
- if {team::%loop-player%} is "blue":
- teleport loop-player to {blue.tp}
- else if arg-1 is "redset":
- set {red.tp} to location of player
- send "&bset:redtp:%location of player%"
- else if arg-1 is "blueset":
- set {blue.tp} to location of player
- send "&bset:redtp:%location of player%"
- else if arg-1 is "redtp":
- loop all players:
- if {team::%loop-player%} is "red":
- teleport loop-player to {red.tp}
- else:
- send "&c/teamteleport [redset|blueset|redtp|bluetp]"
- on damage of player:
- if {red::*} contains attacker:
- if {red::*} contains victim:
- cancel event
- if {blue::*} contains attacker:
- if {blue::*} contains victim:
- cancel eventon break:
- if event-block is in the region "block":
- set {blocks::%location of event-block%} to type of event-block
- on join:
- teleport player to location (-1525, 9, -2283)
- on death of player:
- quit(victim)
- if {red::*} contains attacker:
- add 1 to {kill.r}
- else if {blue::*} contains attacker:
- add 1 to {kill.b}
- add 1 to {kill.%attacker%}
- on quit:
- quit(player)
- on respawn:
- set player's gamemode to victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement