lNockl

FilipeNock//TeamSkyWars

Apr 7th, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Plugins Usados na Codificação:
  2.  
  3. #Skript 2.2-SNAPSHOT
  4. #SkRayFall 1.8
  5. #Umbaska 2.0 Beta 5.052
  6. #WildSkript 1.8
  7. #SkStuff 1.5
  8.  
  9. #Atenção o MiniGame não ira Funcionar sem estes AddOns
  10.  
  11. on script load:
  12.     if existence of "plugins/TeamSkywars/Cages/Put-Your-Cages-Here" is false:
  13.         create file "plugins/TeamSkywars/Cages/Put-Your-Cages-Here"
  14.        
  15. on script load:
  16.     if existence of "plugins/TeamSkywars/Config.yml" is false:
  17.         delete {TeamSkywars::Config::*}
  18.         create file "plugins/TeamSkywars/Config.yml"
  19.         wait 5 seconds
  20.         #==============================Options=============================================================
  21.         if {TeamSkywars::Config::Options.WorldName} is not set:
  22.             set yaml value "Options.WorldName" from file "../../TeamSkywars/Config.yml" to "Teste"
  23.         if {TeamSkywars::Config::Options.MinPlayers} is not set:
  24.             set yaml value "Options.MinPlayers" from file "../../TeamSkywars/Config.yml" to "2"
  25.         #==============================Messages=============================================================
  26.         if {TeamSkywars::Config::Lang.NoPermission} is not set:
  27.             set yaml value "Lang.NoPermission" from file "../../TeamSkywars/Config.yml" to "&cVoce Nao tem Permissao para Isso!"
  28.         if {TeamSkywars::Config::Lang.JoinTeam} is not set:
  29.             set yaml value "Lang.JoinTeam" from file "../../TeamSkywars/Config.yml" to "&eVoce entrou no Time"
  30.         if {TeamSkywars::Config::Lang.Join} is not set:
  31.             set yaml value "Lang.Join" from file "../../TeamSkywars/Config.yml" to "Joined the Game"
  32.         if {TeamSkywars::Config::Lang.Leave} is not set:
  33.             set yaml value "Lang.Leave" from file "../../TeamSkywars/Config.yml" to "&cVoce saiu do Jogo"
  34.         if {TeamSkywars::Config::Lang.BlueTeam} is not set:
  35.             set yaml value "Lang.BlueTeam" from file "../../TeamSkywars/Config.yml" to "&9Azul"
  36.         if {TeamSkywars::Config::Lang.RedTeam} is not set:
  37.             set yaml value "Lang.RedTeam" from file "../../TeamSkywars/Config.yml" to "&4Vermelho"
  38.         if {TeamSkywars::Config::Lang.GreenTeam} is not set:
  39.             set yaml value "Lang.GreenTeam" from file "../../TeamSkywars/Config.yml" to "&2Verde"
  40.         if {TeamSkywars::Config::Lang.YellowTeam} is not set:
  41.             set yaml value "Lang.YellowTeam" from file "../../TeamSkywars/Config.yml" to "&eAmarelo"
  42.         if {TeamSkywars::Config::Lang.ArenaNotSet} is not set:
  43.             set yaml value "Lang.ArenaNotSet" from file "../../TeamSkywars/Config.yml" to "&cVerifique se a arena esta setada Corretamente!"
  44.         if {TeamSkywars::Config::Lang.StartingTitle} is not set:
  45.             set yaml value "Lang.StartingTitle" from file "../../TeamSkywars/Config.yml" to "&eIniciando em..."
  46.         if {TeamSkywars::Config::Lang.TitleSeconds} is not set:
  47.             set yaml value "Lang.TitleSeconds" from file "../../TeamSkywars/Config.yml" to "&fSegundos"
  48.         if {TeamSkywars::Config::Lang.GameStartTitle} is not set:
  49.             set yaml value "Lang.GameStartTitle" from file "../../TeamSkywars/Config.yml" to "&eSkyWars Started"
  50.         if {TeamSkywars::Config::Lang.GameStartSubTitle} is not set:
  51.             set yaml value "Lang.GameStartSubTitle" from file "../../TeamSkywars/Config.yml" to "&fMapa: FilipeNockSkript"
  52.         if {TeamSkywars::Config::Lang.GameStartMessage1} is not set:
  53.             set yaml value "Lang.GameStartMessage1" from file "../../TeamSkywars/Config.yml" to "&a-------------------------------------------------"
  54.         if {TeamSkywars::Config::Lang.GameStartMessage2} is not set:
  55.             set yaml value "Lang.GameStartMessage2" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Started! &6GoodLuck..!"
  56.         if {TeamSkywars::Config::Lang.GameStartMessage3} is not set:
  57.             set yaml value "Lang.GameStartMessage3" from file "../../TeamSkywars/Config.yml" to "&a-------------------------------------------------"
  58.         if {TeamSkywars::Config::Lang.StartingMessage20} is not set:
  59.             set yaml value "Lang.StartingMessage 20 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l20 &9Segundos!"
  60.         if {TeamSkywars::Config::Lang.StartingMessage15} is not set:
  61.             set yaml value "Lang.StartingMessage 15 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l15 &9Segundos!"
  62.         if {TeamSkywars::Config::Lang.StartingMessage10} is not set:
  63.             set yaml value "Lang.StartingMessage 10 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l10 &9Segundos!"
  64.         if {TeamSkywars::Config::Lang.StartingMessage5} is not set:
  65.             set yaml value "Lang.StartingMessage 5 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l5 &9Segundos!"
  66.         if {TeamSkywars::Config::Lang.StartingMessage4} is not set:
  67.             set yaml value "Lang.StartingMessage 4 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l4 &9Segundos!"
  68.         if {TeamSkywars::Config::Lang.StartingMessage3} is not set:
  69.             set yaml value "Lang.StartingMessage 3 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l3 &9Segundos!"
  70.         if {TeamSkywars::Config::Lang.StartingMessage2} is not set:
  71.             set yaml value "Lang.StartingMessage 2 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l2 &9Segundos!"
  72.         if {TeamSkywars::Config::Lang.StartingMessage1} is not set:
  73.             set yaml value "Lang.StartingMessage 1 Seconds" from file "../../TeamSkywars/Config.yml" to "&9TeamSkyWars Iniciando em &f&l1 &9Segundos!"
  74.         if {TeamSkywars::Config::Lang.JoinedElse} is not set:
  75.             set yaml value "Lang.JoinedElse" from file "../.. /TeamSkywars/Config.yml" to "&c"
  76.     #Options
  77.     set {TeamSkywars::Config::Options.WorldName} to yaml value "Options.WorldName" from file "../../TeamSkywars/Config.yml"
  78.     set {TeamSkywars::Config::Options.MinPlayers} to yaml value "Options.MinPlayers" from file "../../TeamSkywars/Config.yml"
  79.     #Messages
  80.     set {TeamSkywars::Config::Lang.JoinTeam} to yaml value "Lang.JoinTeam" from file "../../TeamSkywars/Config.yml"
  81.     set {TeamSkywars::Config::Lang.Leave} to yaml value "Lang.Leave" from file "../../TeamSkywars/Config.yml"
  82.     set {TeamSkywars::Config::Lang.Join} to yaml value "Lang.Join" from file "../../TeamSkywars/Config.yml"
  83.     set {TeamSkywars::Config::Lang.BlueTeam} to yaml value "Lang.BlueTeam" from file "../../TeamSkywars/Config.yml"
  84.     set {TeamSkywars::Config::Lang.RedTeam} to yaml value "Lang.RedTeam" from file "../../TeamSkywars/Config.yml"
  85.     set {TeamSkywars::Config::Lang.GreenTeam} to yaml value "Lang.GreenTeam" from file "../../TeamSkywars/Config.yml"
  86.     set {TeamSkywars::Config::Lang.YellowTeam} to yaml value "Lang.YellowTeam" from file "../../TeamSkywars/Config.yml"
  87.     set {TeamSkywars::Config::Lang.ArenaNotSet} to yaml value "Lang.ArenaNotSet" from file "../../TeamSkywars/Config.yml"
  88.     set {TeamSkywars::Config::Lang.NoPermission} to yaml value "Lang.NoPermission" from file "../../TeamSkywars/Config.yml"
  89.     set {TeamSkywars::Config::Lang.StartingTitle} to yaml value "Lang.StartingTitle" from file "../../TeamSkywars/Config.yml"
  90.     set {TeamSkywars::Config::Lang.TitleSeconds} to yaml value "Lang.TitleSeconds" from file "../../TeamSkywars/Config.yml"
  91.     set {TeamSkywars::Config::Lang.GameStartTitle} to yaml value "Lang.GameStartTitle" from file "../../TeamSkywars/Config.yml"
  92.     set {TeamSkywars::Config::Lang.GameStartSubTitle} to yaml value "Lang.GameStartSubTitle" from file "../../TeamSkywars/Config.yml"
  93.     set {TeamSkywars::Config::Lang.GameStartMessage1} to yaml value "Lang.GameStartMessage1" from file "../../TeamSkywars/Config.yml"
  94.     set {TeamSkywars::Config::Lang.GameStartMessage2} to yaml value "Lang.GameStartMessage2" from file "../../TeamSkywars/Config.yml"
  95.     set {TeamSkywars::Config::Lang.GameStartMessage3} to yaml value "Lang.GameStartMessage3" from file "../../TeamSkywars/Config.yml"
  96.     set {TeamSkywars::Config::Lang.StartingMessage20} to yaml value "Lang.StartingMessage 20 Seconds" from file "../../TeamSkywars/Config.yml"
  97.     set {TeamSkywars::Config::Lang.StartingMessage15} to yaml value "Lang.StartingMessage 15 Seconds" from file "../../TeamSkywars/Config.yml"
  98.     set {TeamSkywars::Config::Lang.StartingMessage10} to yaml value "Lang.StartingMessage 10 Seconds" from file "../../TeamSkywars/Config.yml"
  99.     set {TeamSkywars::Config::Lang.StartingMessage5} to yaml value "Lang.StartingMessage 5 Seconds" from file "../../TeamSkywars/Config.yml"
  100.     set {TeamSkywars::Config::Lang.StartingMessage4} to yaml value "Lang.StartingMessage 4 Seconds" from file "../../TeamSkywars/Config.yml"
  101.     set {TeamSkywars::Config::Lang.StartingMessage3} to yaml value "Lang.StartingMessage 3 Seconds" from file "../../TeamSkywars/Config.yml"
  102.     set {TeamSkywars::Config::Lang.StartingMessage2} to yaml value "Lang.StartingMessage 2 Seconds" from file "../../TeamSkywars/Config.yml"
  103.     set {TeamSkywars::Config::Lang.StartingMessage1} to yaml value "Lang.StartingMessage 1 Seconds" from file "../../TeamSkywars/Config.yml"
  104.     set {TeamSkywars::Config::Lang.JoinedElse} to yaml value "Lang.JoinedElse" from file "../../TeamSkywars/Config.yml"
  105.    
  106. Variables:
  107.     {player.count.teste} = 0
  108.     {team.green} = 0
  109.     {team.red} = 0
  110.     {team.blue} = 0
  111.     {team.yellow} = 0
  112.     {arena.%player%.kills} = 0
  113.    
  114. command /tsw-check:
  115.     trigger:
  116.         if {playing.%player%.arena} is true:
  117.             if {arena.alive} = 1:
  118.                 loop {alive::*}:
  119.                     send "%loop-index% win the game"
  120.                     teleport player to {tsw.spect}
  121.    
  122. command /leave:
  123.     trigger:
  124.         if {playing.%player%.lobby} or {playing.%player%.arena} is true:
  125.             remove 1 from {player.count.teste}
  126.             teleport player to {tsw.mainlobby}
  127.             set {playing.%player%.lobby} to false
  128.             send "%colored {TeamSkywars::Config::Lang.Leave}%"
  129.             display board named "" to player
  130.             set player's tab list name to "&f%player%"
  131.             set {playing.%player%.spec} to false
  132.             set player's gamemode to survival
  133.             heal the player
  134.             set hunger of player to 20
  135.             clear player's inventory
  136.             remove the player from {team.red.arena::*}
  137.             remove the player from {team.blue.arena::*}
  138.             remove the player from {team.yellow.arena::*}
  139.             remove the player from {team.green.arena::*}
  140.             if player is in {team.red.arena::*}:
  141.                 remove 1 from {team.red}
  142.                 if player is in {team.blue.arena::*}:
  143.                     remove 1 from {team.blue}
  144.                     if player is in {team.yellow.arena::*}:
  145.                         remove 1 from {team.yellow}
  146.                         if player is in {team.green.arena::*}:
  147.                             remove 1 from {team.green}
  148.         else:
  149.             send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
  150.  
  151. command /tsw [<text>]:
  152.     trigger:
  153.         if player has permission "tsw.use":
  154.             if arg 1 is "join":
  155.                 if {tsw.lobby} is set:
  156.                     add 1 to {player.count.teste}
  157.                     add 1 to {arena.alive}
  158.                     add player to {alive::*}
  159.                     set {playing.%player%.lobby} to true
  160.                     teleport player to {tsw.lobby}
  161.                     broadcast "&e%player% %colored {TeamSkywars::Config::Lang.Join}% &7(%{player.count.teste}%/12) "
  162.                     set name of sidebar of player to "&e&lTeamSkyWars"
  163.                     set score "&1" in sidebar of player to 8
  164.                     set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  165.                     set score "&2" in sidebar of player to 6
  166.                     set score "&fWaiting..." in sidebar of player to 5
  167.                     set score "&3" in sidebar of player to 4
  168.                     set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  169.                     set score "&4" in sidebar of player to 2
  170.                     set score "&ewww.youserver.net" in sidebar of player to 1
  171.                     clear player's inventory
  172.                     set player's gamemode to adventure
  173.                     heal the player
  174.                     set hunger of player to 20
  175.                     set slot 0 of player to bow named "&eKits"
  176.                     set slot 1 of player to paper named "&bTeams"
  177.                     set slot 8 of player to bed named "&cLeave"
  178.                     if {player.count.teste} is equal to 2:
  179.                         make all players execute command "/tsw ybaidmstau"
  180.                         if {team.red.arena::*} is equal to 3:
  181.                             make player execute command "/team blue"
  182.                             if {team.blue.arena::*} is equal to 3:
  183.                                 make player execute command "/team green"
  184.                                 if {team.green.arena::*} is equal to 3:
  185.                                     make player execute command "/team yellow"
  186.                 else:
  187.                     send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
  188.        
  189.             if arg 1 is not set:
  190.                 make player execute command "/tsw help"
  191.             if arg 1 is "help":
  192.                 send "&9===============&8[&bArenaCommands&8]&9==============="                 
  193.                 send "&e/tsw join "
  194.                 send "&e/team &9[Team] &7=>&9Blue, &4Red, &eYellow, &2Green"
  195.                 send "&e/leave"
  196.         if player has permission "tsw.use":
  197.             if arg 1 is "ybaidmstau":
  198.                 if {tsw.lobby} is set:
  199.                     if {playing.%player%.lobby} is true:
  200.                         set {team.blue} to 0
  201.                         set {team.red} to 0
  202.                         set {team.green} to 0
  203.                         set {team.yellow} to 0
  204.                         heal player
  205.                         set hunger of player to 20
  206.                         display board named "" to player
  207.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f20 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 5 seconds
  208.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage20}%"
  209.                         play raw sound "random.click" at player with pitch 1 volume 0.3
  210.                         set name of sidebar of player to "&e&lTeamSkyWars"
  211.                         set score "&1" in sidebar of player to 8
  212.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  213.                         set score "&2" in sidebar of player to 6
  214.                         set score "&fStarting in &a20s" in sidebar of player to 5
  215.                         set score "&3" in sidebar of player to 4
  216.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  217.                         set score "&4" in sidebar of player to 2
  218.                         set score "&ewww.youserver.net" in sidebar of player to 1
  219.                         wait 5 seconds
  220.                         display board named "" to player
  221.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f15 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 5 seconds
  222.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage15}%"
  223.                         play raw sound "random.click" at player with pitch 1 volume 0.3
  224.                         set name of sidebar of player to "&e&lTeamSkyWars"
  225.                         set score "&1" in sidebar of player to 8
  226.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  227.                         set score "&2" in sidebar of player to 6
  228.                         set score "&fStarting in &a15s" in sidebar of player to 5
  229.                         set score "&3" in sidebar of player to 4
  230.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  231.                         set score "&4" in sidebar of player to 2
  232.                         set score "&ewww.youserver.net" in sidebar of player to 1
  233.                         wait 5 seconds
  234.                         display board named "" to player
  235.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f10 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 5 seconds
  236.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage10}%"
  237.                         play raw sound "random.click" at player with pitch 1 volume 0.3
  238.                         set name of sidebar of player to "&e&lTeamSkyWars"
  239.                         set score "&1" in sidebar of player to 8
  240.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  241.                         set score "&2" in sidebar of player to 6
  242.                         set score "&fStarting in &a10s" in sidebar of player to 5
  243.                         set score "&3" in sidebar of player to 4
  244.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  245.                         set score "&4" in sidebar of player to 2
  246.                         set score "&ewww.youserver.net" in sidebar of player to 1
  247.                         wait 5 seconds
  248.                         display board named "" to player
  249.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f5 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
  250.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage5}%"
  251.                         play raw sound "random.click" at player with pitch 1 volume 0.3
  252.                         set name of sidebar of player to "&e&lTeamSkyWars"
  253.                         set score "&1" in sidebar of player to 8
  254.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  255.                         set score "&2" in sidebar of player to 6
  256.                         set score "&fStarting in &a5s" in sidebar of player to 5
  257.                         set score "&3" in sidebar of player to 4
  258.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  259.                         set score "&4" in sidebar of player to 2
  260.                         set score "&ewww.youserver.net" in sidebar of player to 1
  261.                         wait 1 second
  262.                         display board named "" to player
  263.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f4 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
  264.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage4}%"
  265.                         play raw sound "random.click" at player with pitch 1 volume 0.3
  266.                         set name of sidebar of player to "&e&lTeamSkyWars"
  267.                         set score "&1" in sidebar of player to 8
  268.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  269.                         set score "&2" in sidebar of player to 6
  270.                         set score "&fStarting in &a4s" in sidebar of player to 5
  271.                         set score "&3" in sidebar of player to 4
  272.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  273.                         set score "&4" in sidebar of player to 2
  274.                         set score "&ewww.youserver.net" in sidebar of player to 1
  275.                         wait 1 second
  276.                         display board named "" to player
  277.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f3 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
  278.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage3}%"
  279.                         play raw sound "random.click" at player with pitch 1 volume 0.3
  280.                         set name of sidebar of player to "&e&lTeamSkyWars"
  281.                         set score "&1" in sidebar of player to 8
  282.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  283.                         set score "&2" in sidebar of player to 6
  284.                         set score "&fStarting in &a3s" in sidebar of player to 5
  285.                         set score "&3" in sidebar of player to 4
  286.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  287.                         set score "&4" in sidebar of player to 2
  288.                         set score "&ewww.youserver.net" in sidebar of player to 1
  289.                         wait 1 second
  290.                         display board named "" to player
  291.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f2 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
  292.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage2}%"
  293.                         play raw sound "random.click" at player with pitch 1 volume 0.3
  294.                         set name of sidebar of player to "&e&lTeamSkyWars"
  295.                         set score "&1" in sidebar of player to 8
  296.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  297.                         set score "&2" in sidebar of player to 6
  298.                         set score "&fStarting in &a2s" in sidebar of player to 5
  299.                         set score "&3" in sidebar of player to 4
  300.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  301.                         set score "&4" in sidebar of player to 2
  302.                         set score "&ewww.youserver.net" in sidebar of player to 1
  303.                         wait 1 second
  304.                         display board named "" to player
  305.                         send player title "%colored {TeamSkywars::Config::Lang.StartingTitle}%" with subtitle "&f1 %colored {TeamSkywars::Config::Lang.TitleSeconds}%" for 1 seconds
  306.                         send "%colored {TeamSkywars::Config::Lang.StartingMessage1}%"
  307.                         play raw sound "random.click" at player with pitch 1 volume 0.3    
  308.                         set name of sidebar of player to "&e&lTeamSkyWars"
  309.                         set score "&1" in sidebar of player to 8
  310.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  311.                         set score "&2" in sidebar of player to 6
  312.                         set score "&fStarting in &a1s" in sidebar of player to 5
  313.                         set score "&3" in sidebar of player to 4
  314.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  315.                         set score "&4" in sidebar of player to 2
  316.                         set score "&ewww.youserver.net" in sidebar of player to 1
  317.                         wait 1 second
  318.                         set {_session} to new edit session in player's world with limit -1
  319.                         paste schem "plugins/TeamSkyWars/Cages/cage-red" at {loc.red} using {_session} ignoring air
  320.                         paste schem "plugins/TeamSkyWars/Cages/cage-blue" at {loc.blue} using {_session} ignoring air
  321.                         paste schem "plugins/TeamSkyWars/Cages/cage-yellow" at {loc.yellow} using {_session} ignoring air
  322.                         paste schem "plugins/TeamSkyWars/Cages/cage-green" at {loc.green} using {_session} ignoring air
  323.                         teleport {team.red.arena::*} to {tsw.red.spawn}
  324.                         teleport {team.blue.arena::*} to {tsw.blue.spawn}
  325.                         teleport {team.yellow.arena::*} to {tsw.yellow.spawn}
  326.                         teleport {tteam.green.arena::*} to {tsw.green.spawn}
  327.                         set player's gamemode to adventure
  328.                         set slot 1 of player to air
  329.                         send "&cAguardando...15"
  330.                         display board named "" to player
  331.                         set name of sidebar of player to "&e&lTeamSkyWars"
  332.                         set score "&1" in sidebar of player to 8
  333.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  334.                         set score "&2" in sidebar of player to 6
  335.                         set score "&cPre-Game &a15s" in sidebar of player to 5
  336.                         set score "&3" in sidebar of player to 4
  337.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  338.                         set score "&4" in sidebar of player to 2
  339.                         set score "&ewww.youserver.net" in sidebar of player to 1
  340.                         wait 5 seconds
  341.                         send "&cAguardando...10"
  342.                         display board named "" to player
  343.                         set name of sidebar of player to "&e&lTeamSkyWars"
  344.                         set score "&1" in sidebar of player to 8
  345.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  346.                         set score "&2" in sidebar of player to 6
  347.                         set score "&cPre-Game &a10s" in sidebar of player to 5
  348.                         set score "&3" in sidebar of player to 4
  349.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  350.                         set score "&4" in sidebar of player to 2
  351.                         set score "&ewww.youserver.net" in sidebar of player to 1
  352.                         wait 5 seconds
  353.                         send "&cAguardando...5"
  354.                         display board named "" to player
  355.                         set name of sidebar of player to "&e&lTeamSkyWars"
  356.                         set score "&1" in sidebar of player to 8
  357.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  358.                         set score "&2" in sidebar of player to 6
  359.                         set score "&cPre-Game &a5s" in sidebar of player to 5
  360.                         set score "&3" in sidebar of player to 4
  361.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  362.                         set score "&4" in sidebar of player to 2
  363.                         set score "&ewww.youserver.net" in sidebar of player to 1
  364.                         wait 1 seconds
  365.                         display board named "" to player
  366.                         send "&cAguardando...4"
  367.                         set name of sidebar of player to "&e&lTeamSkyWars"
  368.                         set score "&1" in sidebar of player to 8
  369.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  370.                         set score "&2" in sidebar of player to 6
  371.                         set score "&cPre-Game &a4s" in sidebar of player to 5
  372.                         set score "&3" in sidebar of player to 4
  373.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  374.                         set score "&4" in sidebar of player to 2
  375.                         set score "&ewww.youserver.net" in sidebar of player to 1
  376.                         wait 1 seconds
  377.                         send "&cAguardando...3"
  378.                         display board named "" to player
  379.                         set name of sidebar of player to "&e&lTeamSkyWars"
  380.                         set score "&1" in sidebar of player to 8
  381.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  382.                         set score "&2" in sidebar of player to 6
  383.                         set score "&cPre-Game &a3s" in sidebar of player to 5
  384.                         set score "&3" in sidebar of player to 4
  385.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  386.                         set score "&4" in sidebar of player to 2
  387.                         set score "&ewww.youserver.net" in sidebar of player to 1
  388.                         wait 1 seconds
  389.                         send "&cAguardando...2"
  390.                         display board named "" to player
  391.                         set name of sidebar of player to "&e&lTeamSkyWars"
  392.                         set score "&1" in sidebar of player to 8
  393.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  394.                         set score "&2" in sidebar of player to 6
  395.                         set score "&cPre-Game &a2s" in sidebar of player to 5
  396.                         set score "&3" in sidebar of player to 4
  397.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  398.                         set score "&4" in sidebar of player to 2
  399.                         set score "&ewww.youserver.net" in sidebar of player to 1
  400.                         wait 1 seconds
  401.                         display board named "" to player
  402.                         set name of sidebar of player to "&e&lTeamSkyWars"
  403.                         set score "&1" in sidebar of player to 8
  404.                         set score "&fPlayers: &a%{player.count.teste}%/12" in sidebar of player to 7
  405.                         set score "&2" in sidebar of player to 6
  406.                         set score "&cPre-Game &a1s" in sidebar of player to 5
  407.                         set score "&3" in sidebar of player to 4
  408.                         set score "&fMap: &a%colored {TeamSkywars::Config::Options.WorldName}%" in sidebar of player to 3
  409.                         set score "&4" in sidebar of player to 2
  410.                         set score "&ewww.youserver.net" in sidebar of player to 1
  411.                         send "&cAguardando...1"
  412.                         undo changes of {_session}
  413.                         clear player's inventory
  414.                         set {playing.%player%.arena} to true
  415.                         set {playing.%player%.lobby} to false
  416.                         execute console command "/chestrefill"
  417.                         display board named "" to player
  418.                         play raw sound "random.levelup" at player with pitch 1 volume 0.3      
  419.                         send player title "%colored {TeamSkywars::Config::Lang.GameStartTitle}%" with subtitle "%colored {TeamSkywars::Config::Lang.GameStartSubTitle}%" for 2 seconds
  420.                         display board named "" to player
  421.                         send "%colored {TeamSkywars::Config::Lang.GameStartMessage1}%"
  422.                         send ""
  423.                         send "%colored {TeamSkywars::Config::Lang.GameStartMessage2}%"
  424.                         send ""
  425.                         send "%colored {TeamSkywars::Config::Lang.GameStartMessage3}%"
  426.                         wait 2 ticks
  427.                         make player execute command "/timerstart 1"
  428.                         wait 20 ticks
  429.                         heal player
  430.                         set hunger of player to 20
  431.                         set player's gamemode to survival
  432.                         wait 1 minutes
  433.                         make player execute command "/timerstop"
  434.                         execute console command "/chestrefill"
  435.                         play raw sound "random.chestopen" at player with pitch 1 volume 0.3
  436.                         send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
  437.                         play raw sound "random.chestopen" at player with pitch 1 volume 0.3
  438.                         send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
  439.                         wait 3 ticks
  440.                         make player execute command "/timerstart 2"
  441.                         wait 2 minutes
  442.                         make player execute command "/timerstop"
  443.                         execute console command "/chestrefill"
  444.                         play raw sound "random.chestopen" at player with pitch 1 volume 0.3
  445.                         send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
  446.                         play raw sound "random.chestopen" at player with pitch 1 volume 0.3
  447.                         send player title "" with subtitle "&eAll Chests has been Refilled" for 3 seconds
  448.                         if {playing.%player%.arena} is true:
  449.                             if {player.count.teste} = 0:
  450.                                 wait 1 second
  451.                                 set {playing.%player%.arena} to false
  452.                        
  453.                     else:
  454.                         send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
  455.                 else:
  456.                     send "%colored {TeamSkywars::Config::Lang.ArenaNotSet}%"
  457.                        
  458. command /tswsetup [<text>] [<text>]:
  459.     trigger:
  460.         if player has permission "tsw.admin":
  461.             if arg 1 is not set:
  462.                 send "&e/tswsetup create"
  463.                 send "&e/tswsetup setmainlobby"
  464.                 send "&e/tswsetup setspawn &4(blue)&c(red)&2(green)&6(yellow)"
  465.                 send "&e/tswsetup setlobby"
  466.                 send "&e/tswsetup setspec"
  467.                 send "&e/tswsetup delarena"
  468.             if arg 1 is "create":
  469.                 set slot 0 of player to stick named "&c&L>>&e&lArenaCreator&c&l<<"
  470.                 set slot 2 of player to REDSTONE named "&c&L>>&e&lFinishCreation&c&l<<"
  471.                 set {wand.chest} to true
  472.             if arg 1 is "setmainlobby":
  473.                 set {tsw.mainlobby} to location of player
  474.                 send "&8[&bTeamSkyWars&8] &9MainLobby &eSuccesFull Set."
  475.             if arg 1 is "setspawn":
  476.                 if arg 2 is "blue":
  477.                     set {tsw.blue.spawn} to location of player
  478.                     set {loc.blue} to location of player
  479.                     send "&8[&bTeamSkyWars&8] &eSpawn &9%arg 2% &eSet to Arena."
  480.                 if arg 2 is "red":
  481.                     set {tsw.red.spawn} to location of player
  482.                     set {loc.red} to location of player
  483.                     send "&8[&bTeamSkyWars&8] &eSpawn &4%arg 2% &eSet to Arena."
  484.                 if arg 2 is "yellow":
  485.                     set {tsw.yellow.spawn} to location of player
  486.                     set {loc.yellow} to location of player
  487.                     send "&8[&bTeamSkyWars&8] &eSpawn &6%arg 2% &eSet to Arena."
  488.                 if arg 2 is "green":
  489.                     set {tsw.green.spawn} to location of player
  490.                     set {loc.green} to location of player
  491.                     send "&8[&bTeamSkyWars&8] &eSpawn &2%arg 2% &eSet to Arena."
  492.             if arg 1 is "setlobby":
  493.                 set {tsw.lobby} to location of player
  494.                 send "&8[&bTeamSkyWars&8] &eLobby SuccesFull Set to Arena"
  495.             if arg 1 is "setspec":
  496.                 set {tsw.spect} to location of player
  497.                 send "&8[&bTeamSkyWars&8] &eSpectator SuccesFull Set to Arena"
  498.             if arg 1 is "delarena":
  499.                 delete {tsw.lobby}
  500.                 delete {tsw.spect}
  501.                 delete {tsw.mainlobby}
  502.                 delete {tsw.yellow.spawn}
  503.                 delete {tsw.red.spawn}
  504.                 delete {tsw.green.spawn}
  505.                 delete {tsw.blue.spawn}
  506.                 delete {loc.green}
  507.                 delete {loc.red}
  508.                 delete {loc.blue}
  509.                 delete {loc.yellow}
  510.                 send "&eRemoving Spawns.."
  511.                 wait 1 second
  512.                 send "&eRemoving Variables.."
  513.                 wait 1 second
  514.                 send "&eAll Locations and Spawns loaded and removed successful"
  515.         else:
  516.             send "%colored {TeamSkywars::Config::Lang.NoPermission}%"
  517.            
  518.            
  519. command /forcestart:
  520.     trigger:
  521.         if {playing.%player%.lobby} is true:
  522.             make all players execute command "/tsw ybaidmstau"
  523.         else:
  524.             send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"        
  525.        
  526.            
  527. #Teams===================================================================
  528. command /team [<text>]:
  529.     trigger:
  530.         if {playing.%player%.lobby} is true:
  531.             if argument 1 is "blue":
  532.                 send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.BlueTeam}%"
  533.                 set {team1.%player%} to 1
  534.                 add player to {team.blue.arena::*}
  535.                 add 1 to {team.blue}
  536.                 set player's tab list name to "&9%player%"
  537.                 set display name of player to "&9%player%"
  538.             if argument 1 is "red":
  539.                 send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.RedTeam}%"
  540.                 set {team2.%player%} to 2
  541.                 add 1 to {team.red}
  542.                 add player to {team.red.arena::*}
  543.                 set player's tab list name to "&4%player%"
  544.                 set display name of player to "&4%player%"
  545.             if argument 1 is "yellow":
  546.                 send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.YellowTeam}%"
  547.                 set {team3.%player%} to 3
  548.                 add 1 to {team.yellow}
  549.                 add player to {team.yellow.arena::*}
  550.                 set player's tab list name to "&e%player%"
  551.                 set display name of player to "&6%player%"
  552.             if argument 1 is "green":
  553.                 send "%colored {TeamSkywars::Config::Lang.JoinTeam}% %colored {TeamSkywars::Config::Lang.GreenTeam}%"
  554.                 set {team4.%player%} to 4
  555.                 add 1 to {team.green}
  556.                 add player to {team.green.arena::*}
  557.                 set player's tab list name to "&2%player%"
  558.                 set display name of player to "&2%player%"
  559.             if arg 1 is not set:
  560.                 open chest with 1 rows named "&bTeams" to player
  561.                 wait 2 ticks
  562.                 format slot 0 of player with wool:11 named "&eTeam &9Blue" with lore "&7Click to select Team" to close then run [make player execute command "/team blue"]
  563.                 format slot 1 of player with wool:14 named "&eTeam &4Red" with lore "&7Click to select Team" to close then run [make player execute command "/team red"]
  564.                 format slot 2 of player with wool:4 named "&eTeam &6Yellow" with lore "&7Click to select Team" to close then run [make player execute command "/team yellow"]
  565.                 format slot 3 of player with wool:5 named "&eTeam &2Green" with lore "&7Click to select Team" to close then run [make player execute command "/team green"]
  566.         else:  
  567.             send "%colored {TeamSkywars::Config::Lang.JoinedElse}%"
  568.             set player's tab list name to "&f%player%"
  569.            
  570. command /swkit:
  571.     trigger:
  572.         open chest with 5 rows named "&eKits" to player
  573.    
  574. on rightclick with bed:
  575.     if {playing.%player%.lobby} is true:
  576.         make player execute "/leave"
  577.     else:
  578.         cancel event
  579.    
  580. on rightclick with paper:
  581.     if {playing.%player%.lobby} is true:
  582.         make player execute "/team"
  583.     else:
  584.         cancel event
  585.        
  586. on rightclick with bow:
  587.     if {playing.%player%.lobby} is true:
  588.         make player execute "/swkit"
  589.     else:
  590.         cancel event
  591.        
  592. on break:
  593.     if {playing.%player%.lobby} is true:
  594.         cancel event
  595.        
  596. on place:
  597.     if {playing.%player%.lobby} is true:
  598.         cancel event
  599.        
  600. on break:
  601.     if {playing.%player%.spec} is true:
  602.         cancel event
  603.        
  604. on place:
  605.     if {playing.%player%.spec} is true:
  606.         cancel event
  607.        
  608. on drop:       
  609.     if {playing.%player%.spec} is true:
  610.         cancel event       
  611.        
  612. on inventory click:    
  613.     if {playing.%player%.spec} is true:
  614.         cancel event
  615.  
  616. on drop:       
  617.     if {playing.%player%.lobby} is true:
  618.         cancel event       
  619.        
  620. on damage:
  621.     damage cause is void:
  622.         if {playing.%victim%.arena} is true:
  623.             teleport victim to {tsw.spect}
  624.             clear victim's inventory
  625.             set {playing.%victim%.spec} to true
  626.             set gamemode of victim to spectator
  627.             add 100 to victim's balance
  628.             send "&6+100 Coins for participation" to victim
  629.             send "&cYou Died!" to victim
  630.             send victim title "&cYou Died" with subtitle "&fYou are Curently Spectator" for 4 seconds
  631.             broadcast "&7%victim% &ehas killed by void!"
  632.             set slot 4 of victim to bed named "&eLeave"
  633.             remove 1 from {arena.alive}
  634.             remove player from {arena.player.alive::*}
  635.             if victim is in {team.blue.arena::*}:
  636.                 remove 1 from {team.blue}
  637.                 if victim is in {team.red.arena::*}:
  638.                     remove 1 from {team.red}
  639.                     if victim is in {team.yellow.arena::*}:
  640.                         remove 1 from {team.yellow}
  641.                         if victim is in {team.green.arena::*}:
  642.                             remove 1 from {team.green}
  643.         else:
  644.             send ""
  645.        
  646. on damage of player:
  647.     if {playing.%victim%.arena} is true:
  648.         damage is more than victim's health
  649.         cancel event
  650.         heal victim
  651.         teleport victim to {tsw.spect}
  652.         add 1 to attacker's balance
  653.         send "&6+1 Coins" to attacker
  654.         send "&cYou Died!" to victim
  655.         send victim title "&cYou Died" with subtitle "&fYou are Curently Spectator" for 4 seconds
  656.         add 1 to {arena.%attacker%.kills}
  657.         remove 1 from {arena.alive}
  658.         remove victim from {arena.player.alive::*}
  659.         broadcast "&7%victim% &ehas killed by &7%attacker%!"
  660.     else:
  661.         send ""
  662.  
  663. on damage:     
  664.     damage cause is fall:  
  665.         if {playing.%victim%.lobby} is true:
  666.             cancel event
  667.            
  668. on damage:
  669.     if {team1.%attacker%} is 1:
  670.         if {team.%victim%} is 1:
  671.             cancel event
  672.     if {team2.%attacker%} is 2:
  673.         if {team.%victim%} is 2:
  674.             cancel event           
  675.     if {team3.%attacker%} is 3:
  676.         if {team.%victim%} is 3:
  677.             cancel event
  678.     if {team4.%attacker%} is 3:
  679.         if {team.%victim%} is 2:
  680.             cancel event   
  681.            
  682. on break:
  683.     if "%World of player%" is "%{TeamSkywars::Config::Options.WorldName}%":
  684.         {playing.%player%.arena} is true:
  685.             {tsw.game.ignore.locations::%location of event-block%} is not set
  686.             add location of block to {tsw.game.broken.blocks::*}
  687.             add type of block to {tsw.game.broken.type::*}
  688.             set {tsw.game.ignore.locations::%location of event-block%} to true
  689.        
  690. on place:
  691.     if "%World of player%" is "%{TeamSkywars::Config::Options.WorldName}%":
  692.         {playing.%player%.arena} is true:
  693.             {tsw.games.ignore.locations:%location of event-block%} is not set
  694.             add location of block to {tsw.games.place.blocks::*}
  695.             add type of block to {tsw.games.place.type::*}
  696.             set {tsw.games.ignore.locations::%location of event-block%} to true
  697.            
  698. on chat:
  699.     cancel event
  700.     loop all players:
  701.         if player is {team.blue.arena::*}:
  702.             send "&9[Azul] &7%player%&7: &e%message%" to loop-player
  703.         else:
  704.             cancel event
  705.            
  706. on chat:
  707.     cancel event
  708.     loop all players:
  709.         if player is {team.red.arena::*}:
  710.             send "&c[Red] &7%player%&7: &e%message%" to loop-player
  711.         else:
  712.             cancel event
  713.            
  714. on chat:
  715.     cancel event
  716.     loop all players:
  717.         if player is {team.yellow.arena::*}:
  718.             send "&e[Yellow] &7%player%&7: &e%message%" to loop-player
  719.         else:
  720.             cancel event
  721.  
  722. on chat:
  723.     cancel event
  724.     loop all players:
  725.         if player is {team.green.arena::*}:
  726.             send "&2[Green] &7%player%&7: &e%message%" to loop-player
  727.         else:
  728.             cancel event
  729.    
  730. command /tswregen:
  731.     executable by: console
  732.     trigger:
  733.         loop {tsw.game.broken.blocks::*}:
  734.             set {_loc} to loop-value
  735.             set block at {_loc} to {tsw.game.broken.type::%loop-index%}
  736.         delete {tsw.game.broken.blocks::*}
  737.         delete {tsw.game.broken.type::*}
  738.         delete {tsw.game.ignore.locations::*}
  739.  
  740. command /tswregen1:
  741.     executable by: console
  742.     trigger:
  743.         loop {tsw.games.place.blocks::*}:
  744.             set {_loc} to loop-value
  745.             set block at {_loc} to air
  746.         delete {tsw.games.place.blocks::*}
  747.         delete {tsw.games.place.type::*}
  748.         delete {tsw.games.ignore.locations::*}
  749.            
  750. command /chest wand:
  751.     trigger:
  752.         set slot 0 of player to blaze rod named "&c&L>>&e&lAdd Chest&c&l<<"
  753.         set {wand.chest} to true
  754.  
  755. command /tswwand:
  756.     trigger:
  757.         set slot 0 of player to iron axe named "&bTeamSkyWars &eWand"      
  758.    
  759. on leftclick:
  760.     if tool of player is blaze rod named "&c&L>>&e&lAdd Chest&c&l<<":
  761.         if {wand.chest} is true:
  762.             add target block to {tsw.refill.chests::*}
  763.             send "&c>>>>>>>>>>>>>>>>>>&e&LChestAdded&c<<<<<<<<<<<<<<<<<<<<"
  764.        
  765. on rightclick with blaze rod:
  766.     if {wand.chest} is true:
  767.         send "&6Stopped ChestAdd type /chest wand for add more Chests!"
  768.         set {wand.chest} to false
  769.         set slot 0 of player to air
  770.        
  771. on rightclick:
  772.     if tool of player is iron axe named "&bTeamSkyWars &eWand":
  773.         set {tsw.loc1} to location of player
  774.         send "&eLoc 1 SuccesFull set to %location of player%"
  775.        
  776. on click:
  777.     if tool of player is iron axe named "&bTeamSkyWars &eWand":
  778.         set {tsw.loc2} to location of player
  779.         send "&eLoc 2 SuccesFull set to %location of player%"
  780.    
  781. on break:
  782.     if {wand.chest} is true:
  783.         cancel event
  784.         send "          &7RightClick for Finish Chest Add"
  785.        
  786. on script load:
  787.     send "&8[&bTeamSkyWars&8] &ePlugin Developeed by FilipeNock!" to console
  788.     send "&8[&bTeamSkyWars&8] &8www.youtube.com/filipenock!" to console
  789.     send "&8[&bTeamSkyWars&8] &eStarting Plugin....." to console
  790.     send "&8[&bTeamSkyWars&8] &eFiles has been Created!" to console
  791.    
  792. #=============================EnderPearlCountdowns================================
  793.    
  794. on rightclick with ender pearl:
  795.     if {ec.%player%} is true:
  796.         send "&cwait %{ec.time.%player%}% seconds for use enderpearl"
  797.         set name of tool to "&c%{ec.time.%player%}% restantes"
  798.         cancel event
  799.         stop
  800.     else:
  801.         set {ec.time.%player%} to 59 seconds
  802.         set {ec.%player%} to true
  803.         wait 16 seconds
  804.         set {ec.%player%} to false
  805.         send "&eVoce Ja pode usar enderpearl Novamente."
  806.        
  807. every 1 second:
  808.     loop all players:
  809.         if {ec.%loop-player%} is true:
  810.             subtract 1 second from {ec.time.%loop-player%}
  811.        
  812. #====================================ChestReffil=========================================
  813.            
  814. command /chestrefill:
  815.     executable by: console
  816.     trigger:
  817.         loop {tsw.refill.chests::*}:    
  818.             if block at loop-value is not a chest:
  819.                 remove loop-value from {tsw.refill.chests::*}
  820.             else:
  821.                 set block at loop-value to air
  822.                 clear all entities
  823.                 set block at loop-value to chest
  824.                 chance of 80%:
  825.                     chance of 20%:
  826.                         add 1 diamond sword to slot 25 of block at loop-value
  827.                     chance of 50%:
  828.                         add 1 leather helmet to slot 25 of block at loop-value
  829.                     chance of 5%:
  830.                         add 1 diamond helmet to slot 25 of block at loop-value
  831.                     chance of 25%:
  832.                         add 1 gold helmet to slot 25 of block at loop-value
  833.                 chance of 80%:
  834.                     chance of 20%:
  835.                         add 1 iron boots to slot 12 of block at loop-value
  836.                     chance of 50%:
  837.                         add 1 leather boots to slot 12 of block at loop-value
  838.                     chance of 5%:
  839.                         add 1 diamond boots to slot 12 of block at loop-value
  840.                     chance of 25%:
  841.                         add 1 gold boots to slot 12 of block at loop-value
  842.                 chance of 80%:
  843.                     chance of 20%:
  844.                         add 1 iron chestplate to slot 13 of block at loop-value
  845.                     chance of 25%:
  846.                         add 1 gold chestplate to slot 13 of block at loop-value
  847.                     chance of 50%:
  848.                         add 1 leather chestplate to slot 13 of block at loop-value
  849.                     chance of 5%:
  850.                         add 1 diamond chestplate to slot 13 of block at loop-value
  851.                 chance of 80%:
  852.                     chance of 40%:
  853.                         add 1 wood sword to slot 11 of block at loop-value
  854.                     chance of 20%:
  855.                         add 1 gold sword to slot 11 of block at loop-value
  856.                     chance of 5%:
  857.                         add 1 diamond sword to slot 11 of block at loop-value
  858.                     chance of 20%:
  859.                         add 1 stone sword to slot 11 of block at loop-value
  860.                     chance of 15%:
  861.                         add 1 iron sword to slot 11 of block at loop-value
  862.                 chance of 90%:
  863.                     chance of 10%:
  864.                         add 42 oak wood to slot 7 of block at loop-value
  865.                     chance of 10%:
  866.                         add 36 oak wood to slot 7 of block at loop-value
  867.                     chance of 10%:
  868.                         add 31 oak wood to slot 7 of block at loop-value
  869.                     chance of 10%:
  870.                         add 46 oak wood to slot 7 of block at loop-value
  871.                     chance of 10%:
  872.                         add 61 oak wood to slot 7 of block at loop-value
  873.                     chance of 10%:
  874.                         add 30 oak wood to slot 7 of block at loop-value
  875.                     chance of 10%:
  876.                         add 37 oak wood to slot 7 of block at loop-value
  877.                     chance of 10%:
  878.                         add 43 oak wood to slot 7 of block at loop-value
  879.                     chance of 10%:
  880.                         add 32 oak wood to slot 7 of block at loop-value
  881.                     chance of 10%:
  882.                         add 29 oak wood to slot 7 of block at loop-value
  883.                 chance of 80%:
  884.                     chance of 20%:
  885.                         add 1 iron leggings to slot 9 of block at loop-value
  886.                     chance of 50%:
  887.                         add 1 leather leggings to slot 9 of block at loop-value
  888.                     chance of 5%:
  889.                         add 1 diamond leggings to slot 9 of block at loop-value
  890.                     chance of 25%:
  891.                         add 1 gold leggings to slot 9 of block at loop-value
  892.                 chance of 80%:
  893.                     chance of 10%:
  894.                         add 23 steak to slot 16 of block at loop-value
  895.                     chance of 10%:
  896.                         add 12 steak to slot 16 of block at loop-value
  897.                     chance of 10%:
  898.                         add 5 steak to slot 16 of block at loop-value
  899.                     chance of 10%:
  900.                         add 8 steak to slot 16 of block at loop-value
  901.                     chance of 10%:
  902.                         add 43 steak to slot 16 of block at loop-value
  903.                     chance of 10%:
  904.                         add 45 steak to slot 16 of block at loop-value
  905.                     chance of 10%:
  906.                         add 21 steak to slot 16 of block at loop-value
  907.                     chance of 10%:
  908.                         add 62 steak to slot 16 of block at loop-value
  909.                     chance of 10%:
  910.                         add 13 steak to slot 16 of block at loop-value
  911.                     chance of 10%:
  912.                         add 41 steak to slot 16 of block at loop-value
  913.                 chance of 70%:
  914.                     chance of 10%:
  915.                         add 3 snowball to slot 5 of block at loop-value
  916.                     chance of 10%:
  917.                         add 5 snowball to slot 5 of block at loop-value
  918.                     chance of 10%:
  919.                         add 12 snowball to slot 5 of block at loop-value
  920.                     chance of 10%:
  921.                         add 16 snowball to slot 5 of block at loop-value
  922.                     chance of 10%:
  923.                         add 8 snowball to slot 5 of block at loop-value
  924.                     chance of 10%:
  925.                         add 6 snowball to slot 5 of block at loop-value
  926.                     chance of 10%:
  927.                         add 4 snowball to slot 5 of block at loop-value
  928.                     chance of 10%:
  929.                         add 14 snowball to slot 5 of block at loop-value
  930.                     chance of 10%:
  931.                         add 15 snowball to slot 5 of block at loop-value
  932.                     chance of 10%:
  933.                         add 26 snowball to slot 5 of block at loop-value
  934.                 chance of 50%:
  935.                     chance of 10%:
  936.                         add 3 egg to slot 5 of block at loop-value
  937.                     chance of 10%:
  938.                         add 5 egg to slot 5 of block at loop-value
  939.                     chance of 10%:
  940.                         add 12 egg to slot 5 of block at loop-value
  941.                     chance of 10%:
  942.                         add 16 egg to slot 5 of block at loop-value
  943.                     chance of 10%:
  944.                         add 8 egg to slot 5 of block at loop-value
  945.                     chance of 10%:
  946.                         add 6 egg to slot 5 of block at loop-value
  947.                     chance of 10%:
  948.                         add 4 egg to slot 5 of block at loop-value
  949.                     chance of 10%:
  950.                         add 14 egg to slot 5 of block at loop-value
  951.                     chance of 10%:
  952.                         add 15 egg to slot 5 of block at loop-value
  953.                     chance of 10%:
  954.                         add 26 egg to slot 5 of block at loop-value
  955.                 chance of 35%:
  956.                     add 1 golden apple to slot 2 of block at loop-value
  957.                 chance of 80%:
  958.                     chance of 10%:
  959.                         add 26 arrow to slot 5 of block at loop-value
  960.                     chance of 10%:
  961.                         add 7 arrow to slot 5 of block at loop-value
  962.                     chance of 10%:
  963.                         add 18 arrow to slot 5 of block at loop-value
  964.                     chance of 10%:
  965.                         add 43 arrow to slot 5 of block at loop-value
  966.                     chance of 10%:
  967.                         add 63 arrow to slot 5 of block at loop-value
  968.                     chance of 10%:
  969.                         add 4 arrow to slot 5 of block at loop-value
  970.                     chance of 10%:
  971.                         add 1 arrow to slot 5 of block at loop-value
  972.                     chance of 10%:
  973.                         add 24 arrow to slot 5 of block at loop-value
  974.                     chance of 10%:
  975.                         add 46 arrow to slot 5 of block at loop-value
  976.                     chance of 10%:
  977.                         add 36 arrow to slot 5 of block at loop-value
Advertisement
Add Comment
Please, Sign In to add comment