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 event
- on break:
- if event-block is in the region "block":
- set {blocks::%location of event-block%} to type of event-block
- on place:
- if event-block is in the region "block":
- add event-block to {place::*}
- 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
- function score(s: player):
- wipe {_s}'s sidebar
- set name of sidebar of {_s} to "&e&lTHE WALLS"
- set score "&b" in sidebar of {_s} to 8
- set score "&d" in sidebar of {_s} to 7
- set score "&f青チーム 生き残り: &a%size of {blue::*}%" in sidebar of {_s} to 6
- set score "&f赤チーム 生き残り: &a%size of {red::*}%" in sidebar of {_s} to 5
- set score "&e" in sidebar of {_s} to 4
- set score "&fキル数: &a%{kill.%{_s}%}%" in sidebar of {_s} to 3
- if {red::*} contains {_s}:
- set score "&fチームのキル数: &a%{kill.r}%" in sidebar of {_s} to 3
- else if {blue::*} contains {_s}:
- set score "&fチームのキル数: &a%{kill.b}%" in sidebar of {_s} to 3
- set score "&c" in sidebar of {_s} to 2
- set score "&eplayerrealms.com" in sidebar of {_s} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement