Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # DOŁĄCZANIE DO DRUŻYN
- on walk on blue wool:
- set {team-blue.%player%} to false
- set {team-red.%player%} to false
- if player has stone axe and iron axe:
- player is in "world"
- make player execute command "/join blue"
- wait 5 tick
- if {team-blue.%player%} is true:
- make player execute command "/blue"
- else:
- if {team-red.%player%} is true:
- make player execute command "/red"
- else:
- send "blad!"
- teleport player to spawn
- else:
- teleport player to spawn
- send "&7&l[&4BF&7&l] &aMusisz posiadać cały osprzęt aby grać!" to player
- on walk on red wool:
- set {team-blue.%player%} to false
- set {team-red.%player%} to false
- if player has stone axe and iron axe:
- player is in "world"
- make player execute command "/join red"
- wait 5 tick
- if {team-red.%player%} is true:
- make player execute command "/red"
- else:
- if {team-blue.%player%} is true:
- make player execute command "/blue"
- else:
- send "blad!"
- teleport player to spawn
- else:
- teleport player to spawn
- send "&7&l[&4BF&7&l] &aMusisz posiadać cały osprzęt aby grać!" to player
- command /blue:
- executable by: player
- trigger:
- loop all players:
- display board named "&a&lDeathMatch" to loop-player
- make score "&c&lCzerwoni" in board of loop-player to {ticket.red}
- make score "&9&lNiebiescy" in board of loop-player to {ticket.blue}
- move display of loop-player to sidebar
- set player nametag to "§9%player%"
- equip the player with a leather helmet
- dye player's helmet blue
- equip the player with a leather tunic
- dye player's chestplate blue
- equip the player with a leather leggings
- dye player's leggings blue
- equip the player with a leather boots
- dye player's boots blue
- set {team-red.%player%} to false
- set {team-blue.%player%} to true
- teleport player to {spawn.blue}
- set {inventory.%player%} to serialized inventory of player
- wait 1 second
- set {god.%player%} to true
- wait 3 second
- set {god.%player%} to false
- set {death.%player%} to 0
- set {kill.%player%} to 0
- stop
- command /red:
- executable by: player
- trigger:
- loop all players:
- display board named "&a&lDeathMatch" to loop-player
- make score "&c&lCzerwoni" in board of loop-player to {ticket.red}
- make score "&9&lNiebiescy" in board of loop-player to {ticket.blue}
- move display of loop-player to sidebar
- set player nametag to "§c%player%"
- equip the player with a leather helmet
- dye player's helmet red
- equip the player with a leather tunic
- dye player's chestplate red
- equip the player with a leather leggings
- dye player's leggings red
- equip the player with a leather boots
- dye player's boots red
- set {team-red.%player%} to true
- set {team-blue.%player%} to false
- teleport player to {spawn.red}
- set {inventory.%player%} to serialized inventory of player
- wait 1 second
- set {god.%player%} to true
- wait 3 second
- set {god.%player%} to false
- set {death.%player%} to 0
- set {kill.%player%} to 0
- stop
- command /join <text>:
- executable by: player
- trigger:
- if arg 1 is "blue":
- if (size of {count.blue.team::*}) is equal to (size of {count.red.team::*}):
- add player to {count.blue.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &9niebieskich" to "world"
- set {team-blue.%player%} to true
- set {team-red.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.blue.team::*}) - (size of {count.red.team::*}) is equal to -2:
- add player to {count.blue.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &9niebieskich" to "world"
- set {team-blue.%player%} to true
- set {team-red.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.blue.team::*}) - (size of {count.red.team::*}) is equal to -1:
- add player to {count.blue.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &9niebieskich" to "world"
- set {team-blue.%player%} to true
- set {team-red.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.blue.team::*}) - (size of {count.red.team::*}) is equal to 1:
- add player to {count.blue.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &9niebieskich" to "world"
- set {team-blue.%player%} to true
- set {team-red.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.blue.team::*}) - (size of {count.red.team::*}) is greater than or equal to 2:
- add player to {count.red.team::*}
- send "&aNiestety druzyna &9niebieska &ajest pelna. Zostajesz przeniesiony do &cczerwonych&a!"
- set {team-red.%player%} to true
- set {team-blue.%player%} to false
- broadcast "&3%name of player% &adolaczyl do druzyny &cczerwonych" to "world"
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- send "error"
- if arg 1 is "info":
- set {info} to ({count.blue} +1) - {count.red}
- send "&f&l%{info}%"
- if arg 1 is "red":
- if (size of {count.red.team::*}) is equal to (size of {count.blue.team::*}):
- add player to {count.red.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &cczerwonych" to "world"
- set {team-red.%player%} to true
- set {team-blue.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.red.team::*}) - (size of {count.blue.team::*}) is equal to -2:
- add player to {count.red.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &cczerwonych" to "world"
- set {team-red.%player%} to true
- set {team-blue.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.red.team::*}) - (size of {count.blue.team::*}) is equal to -1:
- add player to {count.red.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &cczerwonych" to "world"
- set {team-red.%player%} to true
- set {team-blue.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.red.team::*}) - (size of {count.blue.team::*}) is equal to 1:
- add player to {count.red.team::*}
- broadcast "&3%name of player% &adolaczyl do druzyny &cczerwonych" to "world"
- set {team-red.%player%} to true
- set {team-blue.%player%} to false
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- if (size of {count.red.team::*}) - (size of {count.blue.team::*}) is greater than or equal to 2:
- add player to {count.blue.team::*}
- send "&aNiestety druzyna &cczerwona &ajest pelna. Zostajesz przeniesiony do &9niebieskich&a!"
- set {team-blue.%player%} to true
- set {team-red.%player%} to false
- broadcast "&3%name of player% &adolaczyl do druzyny &9niebieskich" to "world"
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- else:
- send "error"
- if arg 1 is "spr":
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- if arg 1 is "res":
- set {count.red} to 0
- set {count.blue} to 0
- send "&9&l%{count.blue}% &f&l- &4&l%{count.red}%"
- if arg 1 is "del":
- set {count.blue} to 0
- set {count.red} to 0
- if arg 1 is "check":
- send "ROZNICA %{_roznica}%"
- send "RED %{count.red}%"
- send "BLUE %{count.blue}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement