Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===========================#
- # BedWars 2.0 #
- # By: Pianme #
- #===========================#
- #========== Event on join ==========#
- on join:
- set join message to ""
- remove haste from player
- if {BedWars.Scoreboards.Prelobby} is not set:
- set {BedWars.Scoreboards.Action.PreLobby} to "on"
- delete {BedWars.Soreboard.Started}
- set {BedWars.Events.Waiting} to true
- delete {Started.BedWars.Upgrades}
- teleport player to {BedWars.Waitroom}
- clear player's inventory
- if {Kills.%player%} is not set:
- set {Kills.%player%} to 0
- delete {BedWars.LeaveGame.%player%}
- add 1 to {BedWars.Join.Players}
- if {BedWars.Join.Players} is 12:
- execute console command "bedwars start"
- loop all players:
- set action bar of loop-player to "%{Joined}% &6%player%"
- on load:
- delete {BedWars.InGame}
- on drop:
- if {BedWars.Events.Waiting} is true:
- cancel event
- on place:
- if {BedWars.Events.Waiting} is true:
- cancel event
- on break:
- if {BedWars.Events.Waiting} is true:
- cancel event
- on damage:
- if {BedWars.Events.Waiting} is true:
- cancel event
- on inventory click:
- if {BedWars.Events.Waiting} is true:
- cancel event
- on connect:
- if {BedWars.InGame} is true:
- kick player due to "&6Game in progress."
- if {BedWars.Regen.Arena} is true:
- kick player due to "&bRegeneration arena."
- command /BedWars [<text>] [<text>] [<text>] [<text>]:
- aliases: /bedwars
- trigger:
- if arg 1 is not set:
- send "&7&l&m-------------------------------------------"
- send " &6Bedwars by Pianme"
- send " &fVersion 2.0"
- send ""
- send " &eUse &b/BedWars help"
- send ""
- send "&7&l&m-------------------------------------------"
- if arg 1 is "help":
- if player has permission "BedWars.Admin":
- if arg 2 is not set:
- send "&7&l&m------------------------------------"
- send ""
- send " &6Bedwars version 2.0 "
- send " "
- send " &e/bedwars setwaitroom . &7(Put the waitroom)"
- send " &e/bedwars setspawn &f<color>. &7(Put the spawn of teams)"
- send " &e/bedwars setdrops &f<color>. &7(Put the spawn of drop items)"
- send " &e/bedwars setshop &f<color>. &7(Put the villager of shop)"
- send " &e/bedwars setupgrades &f<color>. &7Put the villager of Upgrades"
- send ""
- send " &6Use /BedWars help 2 &7(To see more commands) &cPage 1/3"
- send "&7&l&m------------------------------------"
- if arg 2 is "2":
- send "&7&l&m------------------------------------"
- send ""
- send " &e/bedwars setemerald &f<number> . &7(7Put the spawn of drop emerald)"
- send " &e/bedwars setdiamond &f<number>. &7(Put the spawn of drop diamond)"
- send " &e/bedwars setdeath. &7(Put the spawn of death player)"
- send " &e/bedwars setspect. &7(Put the spect point)"
- send " &e/bedwars reload. &f(Reload all config)"
- send ""
- send " &6Use /BedWars help 3 &7(To see more commands) &cPage 2/3"
- send "&7&l&m------------------------------------"
- if arg 2 is "3":
- send "&7&l&m------------------------------------"
- send ""
- send " &e/bedwars wand. &7(Select the arena) "
- send " &e/bedwars save. &7(Save the all aren)"
- send " &e/bedwars removevillager. &7(Remove the all entityes of villager)"
- send " &e/bedwars createregion &f<color>. &7(Create the region of team )"
- send " &e/bedwars bedregion &f<color>. &7(Create bed region)"
- send " &e/bedwars deleteregion &f<color>. &7(Create the region of bed)"
- send ""
- send " &6Use /BedWars help &7(To see more commands) &cPage 3/3"
- send "&7&l&m------------------------------------"
- else:
- send "&aComando desconocido . Utiliza /help"
- if arg 1 is "deleteregion":
- if arg 2 is "red":
- make player execute command "rg delete BedRed"
- make player execute command "rg delete PreRed"
- send "&7Sucefully delete region of team red"
- if arg 2 is "blue":
- make player execute command "rg delete BedBlue"
- make player execute command "rg delete PreBlue"
- send "&7Sucefully delete region of team blue"
- if arg 2 is "yellow":
- make player execute command "rg delete BedYellow"
- make player execute command "rg delete PreYellow"
- send "&7Sucefully delete region of team yellow"
- if arg 2 is "green":
- make player execute command "rg delete BedGreen"
- make player execute command "rg delete PreGreen"
- send "&7Sucefully delete region of team green"
- if arg 1 is "bedregion":
- if arg 2 is "red":
- make player execute command "region define BedRed"
- wait 1 second
- make player execute command "region flag BedRed pvp allow"
- make player execute command "region flag BedRed block-break allow"
- make player execute command "region flag BedRed block-place allow"
- make player execute command "region flag BedRed use allow"
- make player execute command "region flag BedRed chest-access allow"
- make player execute command "region flag BedRed tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the bed region of team &cRED"
- if arg 2 is "blue":
- make player execute command "region define BedBlue"
- wait 1 second
- make player execute command "region flag BedBlue pvp allow"
- make player execute command "region flag BedBlue block-break allow"
- make player execute command "region flag BedBlue block-place allow"
- make player execute command "region flag BedBlue use allow"
- make player execute command "region flag BedBlue chest-access allow"
- make player execute command "region flag BedBlue tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the bed region of team &3BLUE"
- if arg 2 is "green":
- make player execute command "region define BedGreen"
- wait 1 second
- make player execute command "region flag BedGreen pvp allow"
- make player execute command "region flag BedGreen block-break allow"
- make player execute command "region flag BedGreen block-place allow"
- make player execute command "region flag BedGreen use allow"
- make player execute command "region flag BedGreen chest-access allow"
- make player execute command "region flag BedGreen tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the bed region of team &2GREEN"
- if arg 2 is "yellow":
- make player execute command "region define BedYellow"
- wait 1 second
- make player execute command "region flag BedYellow pvp allow"
- make player execute command "region flag BedYellow block-break allow"
- make player execute command "region flag BedYellow block-place allow"
- make player execute command "region flag BedYellow use allow"
- make player execute command "region flag BedYellow chest-access allow"
- make player execute command "region flag BedYellow tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the bed region of team &eYELLOW"
- if arg 2 is not "yellow" or "red" or "blue" or "green":
- send "&cPlese put the color availables: &7Yellow , Green , Red , Blue"
- if arg 1 is "createregion":
- if arg 2 is "red":
- make player execute command "region define PreRed"
- wait 1 second
- make player execute command "region flag PreRed pvp allow"
- make player execute command "region flag PreRed block-break allow"
- make player execute command "region flag PreRed block-place allow"
- make player execute command "region flag PreRed use allow"
- make player execute command "region flag PreRed chest-access allow"
- make player execute command "region flag PreRed tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the region of team &cRED"
- if arg 2 is "blue":
- make player execute command "region define PreBlue"
- wait 1 second
- make player execute command "region flag PreBlue pvp allow"
- make player execute command "region flag PreBlue block-break allow"
- make player execute command "region flag PreBlue block-place allow"
- make player execute command "region flag PreBlue use allow"
- make player execute command "region flag PreBlue chest-access allow"
- make player execute command "region flag PreBlue tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the region of team &3BLUE"
- if arg 2 is "green":
- make player execute command "region define PreGreen"
- wait 1 second
- make player execute command "region flag PreGreen pvp allow"
- make player execute command "region flag PreGreen block-break allow"
- make player execute command "region flag PreGreen block-place allow"
- make player execute command "region flag PreGreen use allow"
- make player execute command "region flag PreGreen chest-access allow"
- make player execute command "region flag PreGreen tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the region of team &2GREEN"
- if arg 2 is "yellow":
- make player execute command "region define PreYellow"
- wait 1 second
- make player execute command "region flag PreYellow pvp allow"
- make player execute command "region flag PreYellow block-break allow"
- make player execute command "region flag PreYellow block-place allow"
- make player execute command "region flag PreYellow use allow"
- make player execute command "region flag PreYellow chest-access allow"
- make player execute command "region flag PreYellow tnt deny"
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send ""
- send "&7Sucefully create the region of team &eYELLOW"
- if arg 2 is not "yellow" or "red" or "blue" or "green":
- send "&cPlese put the color availables: &7Yellow , Green , Red , Blue"
- if arg 1 is "save":
- send "&ASaving arena"
- set {Skywars.SaveArena.lag} to 0
- set {Skywars.SaveArena.total} to 0
- set {Skywars.SaveArena.blocks} to 0
- wait 10 ticks
- loop blocks within {Pos1.Skywars.Arena} to {Pos2.Skywars.Arena}:
- if loop-block is not air:
- add 1 to {Skywars.SaveArena.total}
- loop blocks within {Pos1.Skywars.Arena} to {Pos2.Skywars.Arena}:
- if loop-block is not air:
- set {Skywars.SaveArena.blocks::%location of loop-block%} to type of block at loop-block
- add 1 to {Skywars.SaveArena.blocks}
- add 1 to {Skywars.SaveArena.lag}
- set action bar of player to "&2Saving Blocks &7(&c%{Skywars.SaveArena.blocks}%&f/&b%{Skywars.SaveArena.total}%&7) &2Progress"
- if {Skywars.SaveArena.lag} = 500:
- set {Skywars.SaveArena.lag} to 0
- wait 2 seconds
- chance of 50%:
- wait 1 second
- else:
- wait 0.5 seconds
- send "&b&l----------------------------------"
- send "&f"
- send " &aArena save "
- send "&f"
- send "&b&l----------------------------------"
- if arg 1 is "wand":
- set slot 0 of player to a diamond axe named "&7&lSelection the arena &bRight click POS1 . Left Click POS2" with lore "&cClick to define the regen arena."
- send "&7&lSelection the arena &bRight click POS1 . Left Click POS2"
- if arg 1 is "setwaitroom":
- if player has permission "BedWars.Admin":
- send "&aYou have correctly placed a waiting room"
- set {BedWars.Waitroom} to player's location
- if arg 1 is "setspawn":
- if player has permission "BedWars.Admin":
- if arg 2 is "red":
- send "&7You have successfully the spawn &cred"
- set {BedWars.TeamSpawn.Red} to player's location
- if arg 2 is "blue":
- send "&7You have successfully the spawn &3blue"
- set {BedWars.TeamSpawn.Blue} to player's location
- if arg 2 is "green":
- send "&7You have successfully the spawn &2green"
- set {BedWars.TeamSpawn.Green} to player's location
- if arg 2 is "yellow":
- send "&7You have successfully the spawn &eyellow"
- set {BedWars.TeamSpawn.Yellow} to player's location
- if arg 1 is "setshop":
- if player has permission "BedWars.Admin":
- if arg 2 is "red":
- send "&7You put the team shop &cred"
- set {BedWars.TeamShop.Red} to player's location
- spawn 1 villager at {BedWars.TeamShop.Red}
- set name of last spawned entity to "&c&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- if arg 2 is "blue":
- send "&7You put the team shop &3blue"
- set {BedWars.TeamShop.Blue} to player's location
- spawn 1 villager at {BedWars.TeamShop.Blue}
- set name of last spawned entity to "&b&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- if arg 2 is "green":
- send "&7You put the team shop &2green"
- set {BedWars.TeamShop.Green} to player's location
- spawn 1 villager at {BedWars.TeamShop.Green}
- set name of last spawned entity to "&2&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- if arg 2 is "yellow":
- send "&7You put the team shop &eyellow"
- set {BedWars.TeamShop.Yellow} to player's location
- spawn 1 villager at {BedWars.TeamShop.Yellow}
- set name of last spawned entity to "&e&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- if arg 1 is "setdrops":
- if player has permission "BedWars.Admin":
- if arg 2 is "red":
- send "&7You put the drops items to team &cred"
- set {BedWars.TeamDrops.Red} to player's location
- if arg 2 is "blue":
- send "&7You put the drops items to team &3blue"
- set {BedWars.TeamDrops.Blue} to player's location
- if arg 2 is "green":
- send "&7You put the drops items to team &2green"
- set {BedWars.TeamDrops.Green} to player's location
- if arg 2 is "yellow":
- send "&7You put the drops items to team &eyellow"
- set {BedWars.TeamDrops.Yellow} to player's location
- if arg 1 is "setupgrades":
- if player has permission "BedWars.Admin":
- if arg 2 is "red":
- send "&7You put the upgrades to team &cred"
- set {BedWars.TeamUpgrades.Red} to player's location
- spawn 1 villager at {BedWars.TeamUpgrades.Red}
- set name of last spawned entity to "&c&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- if arg 2 is "blue":
- send "&7You put the upgrades to team &3blue"
- set {BedWars.TeamUpgrades.Blue} to player's location
- spawn 1 villager at {BedWars.TeamUpgrades.Blue}
- set name of last spawned entity to "&b&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- if arg 2 is "green":
- send "&7You put the upgrades to team &2green"
- set {BedWars.TeamUpgrades.Green} to player's location
- spawn 1 villager at {BedWars.TeamUpgrades.Green}
- set name of last spawned entity to "&2&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- if arg 2 is "yellow":
- send "&7You put the upgrades to team &eyellow"
- set {BedWars.TeamUpgrades.Yellow} to player's location
- spawn 1 villager at {BedWars.TeamUpgrades.Yellow}
- set name of last spawned entity to "&e&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- if arg 1 is "setemerald":
- if player has permission "BedWars.Admin":
- if arg 2 is "1":
- send "&7You put the spawn of spawner of emerald &c1"
- set {BedWars.SpawnItems1.E} to player's location
- if arg 2 is "2":
- send "&7You put the spawn of spawner of emerald &c2"
- set {BedWars.SpawnItems2.E} to player's location
- if arg 2 is "3":
- send "&7You put the spawn of spawner of emerald &c3"
- set {BedWars.SpawnItems3.E} to player's location
- if arg 2 is "4":
- send "&7You put the spawn of spawner of emerald &c4"
- set {BedWars.SpawnItems4.E} to player's location
- if arg 1 is "setdiamond":
- if player has permission "BedWars.Admin":
- if arg 2 is "1":
- send "&7You put the spawn of spawner of diamond &c1"
- set {BedWars.SpawnItems1.D} to player's location
- if arg 2 is "2":
- send "&7You put the spawn of spawner of diamond &c2"
- set {BedWars.SpawnItems2.D} to player's location
- if arg 2 is "3":
- send "&7You put the spawn of spawner of diamond &c3"
- set {BedWars.SpawnItems3.D} to player's location
- if arg 2 is "4":
- send "&7You put the spawn of spawner of diamond &c4"
- set {BedWars.SpawnItems4.D} to player's location
- if arg 2 is "5":
- send "&7You put the spawn of spawner of diamond &c5"
- set {BedWars.SpawnItems5.D} to player's location
- if arg 2 is "6":
- send "&7You put the spawn of spawner of diamond &c6"
- set {BedWars.SpawnItems6.D} to player's location
- if arg 1 is "setdeath":
- if player has permission "BedWars.Admin":
- send "&7You put the spawn point of death"
- set {BedWars.SetDeath} to player's location
- if arg 1 is "setspect":
- if player has permission "BedWars.Admin":
- send "&7You put the spawn point of spect"
- set {BedWars.SetSpect} to player's location
- if arg 1 is "removevillager":
- if sender is player:
- if player has permission "BedWars.Admin":
- loop entities in radius 400 around the player:
- if loop-entity is not a player:
- kill loop-entity
- send "&7Deleted all entitys of villager."
- if sender is console:
- loop entities in radius 200 around the player:
- if loop-entity is not a player:
- kill loop-entity
- send "&7Deleted all entitys of villager." to console
- if arg 1 is "randomjointeam":
- if {BedWars.InGame.Team} is not set:
- add 1 to {BedWars.InGame.RedTeam1}
- if {BedWars.InGame.RedTeam1} is 1:
- add player to {BedWars.PreRed::*}
- set {BedWars.InGame.Team} to 1
- stop
- if {BedWars.InGame.Team} is 1:
- add 1 to {BedWars.InGame.RedTeam2}
- if {BedWars.InGame.RedTeam2} is 1:
- add player to {BedWars.PreRed::*}
- set {BedWars.InGame.Team} to 2
- stop
- if {BedWars.InGame.Team} is 2:
- add 1 to {BedWars.InGame.RedTeam3}
- if {BedWars.InGame.RedTeam3} is 1:
- add player to {BedWars.PreRed::*}
- set {BedWars.InGame.Team} to 3
- stop
- if {BedWars.InGame.Team} is 3:
- add 1 to {BedWars.InGame.BlueTeam1}
- if {BedWars.InGame.BlueTeam1} is 1:
- add player to {BedWars.TeamBlue::*}
- set {BedWars.InGame.Team} to 4
- stop
- if {BedWars.InGame.Team} is 4:
- add 1 to {BedWars.InGame.BlueTeam2}
- if {BedWars.InGame.BlueTeam2} is 1:
- add player to {BedWars.TeamBlue::*}
- set {BedWars.InGame.Team} to 5
- stop
- if {BedWars.InGame.Team} is 5:
- add 1 to {BedWars.InGame.BlueTeam3}
- if {BedWars.InGame.BlueTeam3} is 1:
- add player to {BedWars.TeamBlue::*}
- set {BedWars.InGame.Team} to 6
- stop
- if {BedWars.InGame.Team} is 6:
- add 1 to {BedWars.InGame.GreenTeam1}
- if {BedWars.InGame.GreenTeam1} is 1:
- add player to {BedWars.TeamGreen::*}
- set {BedWars.InGame.Team} to 7
- stop
- if {BedWars.InGame.Team} is 7:
- add 1 to {BedWars.InGame.GreenTeam2}
- if {BedWars.InGame.GreenTeam2} is 1:
- add player to {BedWars.TeamGreen::*}
- set {BedWars.InGame.Team} to 8
- stop
- if {BedWars.InGame.Team} is 8:
- add 1 to {BedWars.InGame.GreenTeam3}
- if {BedWars.InGame.GreenTeam3} is 1:
- add player to {BedWars.TeamGreen::*}
- set {BedWars.InGame.Team} to 9
- stop
- if {BedWars.InGame.Team} is 9:
- add 1 to {BedWars.InGame.YellowTeam1}
- if {BedWars.InGame.YellowTeam1} is 1:
- add player to {BedWars.TeamYellow::*}
- set {BedWars.InGame.Team} to 10
- stop
- if {BedWars.InGame.Team} is 10:
- add 1 to {BedWars.InGame.YellowTeam2}
- if {BedWars.InGame.YellowTeam2} is 1:
- add player to {BedWars.TeamYellow::*}
- set {BedWars.InGame.Team} to 11
- stop
- if {BedWars.InGame.Team} is 11:
- add 1 to {BedWars.InGame.YellowTeam3}
- if {BedWars.InGame.YellowTeam3} is 1:
- add player to {BedWars.TeamYellow::*}
- stop
- if arg 1 is "stop":
- if sender is console:
- wait 5 seconds
- send "&aRESTART IN 5 SECONDS OF SERVER" to console
- delete {BedWars.Scoreboards.Prelobby}
- loop all players:
- delete {BedWars.LeaveGame.%loop-player%}
- delete {Kills.%loop-player%}
- delete {BedWars.Buy.Chain.Armor.%loop-player%}
- delete {BedWars.Armor.Chain.%loop-player%}
- delete {BedWars.Buy.Iron.Armor.%loop-player%}
- delete {BedWars.Buy.Diamond.Armor.%loop-player%}
- delete {BedWars.Shears.%loop-player%}
- loop all players:
- bungeecord connect loop-player to "%{Bungee_Server}%" #Nombre
- set {BedWars.Regen.Arena} to true
- delete {BedWars.InGame.Team}
- delete {BedWars.InGame.RedTeam1}
- delete {BedWars.InGame.RedTeam2}
- delete {BedWars.InGame.RedTeam3}
- delete {BedWars.InGame.BlueTeam1}
- delete {BedWars.InGame.BlueTeam2}
- delete {BedWars.InGame.BlueTeam3}
- delete {BedWars.InGame.GreenTeam1}
- delete {BedWars.InGame.GreenTeam2}
- delete {BedWars.InGame.GreenTeam3}
- delete {BedWars.InGame.YellowTeam1}
- delete {BedWars.InGame.YellowTeam2}
- delete {BedWars.InGame.YellowTeam3}
- delete {BedWars.PreRed::*}
- delete {BedWars.TeamBlue::*}
- delete {BedWars.TeamGreen::*}
- delete {BedWars.TeamYellow::*}
- delete {BedWars.BreakBed.Red}
- delete {BedWars.BreakBed.Green}
- delete {BedWars.BreakBed.Blue}
- delete {BedWars.BreakBed.Yellow}
- delete {BedWars.Search.Lose-Red}
- delete {BedWars.Search.Lose-Blue}
- delete {BedWars.Search.Lose-Yellow}
- delete {BedWars.Search.Lose-Green}
- delete {Started.BedWarsTeamBlue}
- delete {Started.BedWarsTeamRed}
- delete {Started.BedWarsTeamYellow}
- delete {Started.BedWarsTeamGreen}
- delete {BedWars.StopLoopRed}
- delete {BedWars.StopLoopBlue}
- delete {BedWars.StopLoopYellow}
- delete {BedWars.StopLoopGreen}
- delete {BedWars.Vidas.Red}
- delete {BedWars.Vidas.Blue}
- delete {BedWars.Vidas.Yellow}
- delete {BedWars.Vidas.Green}
- delete {BedWars.Scoreboard.Game}
- delete {Started.BedWars.Time.Seconds}
- delete {Started.BedWars.Time.Minutes}
- delete {Started.BedWars.Emerald.Time}
- delete {Started.BedWars.Diamond.Time}
- delete {BedWars.Soreboard.Started}
- delete {TotalJugadores::*}
- delete {Started.BedWars.Upgrades}
- delete {BedWars.More.Items.Green}
- delete {BedWars.More.Items.Red}
- delete {BedWars.More.Items.Yellow}
- delete {BedWars.More.Items.Blue}
- delete {BedWars.Haste.Red}
- delete {BedWars.Haste.Blue}
- delete {BedWars.Haste.Yellow}
- delete {BedWars.Haste.Green}
- delete {BedWars.Sharpness.Red}
- delete {BedWars.Sharpness.Blue}
- delete {BedWars.Sharpness.Yellow}
- delete {BedWars.Sharpness.Green}
- delete {BedWars.Protection.Red}
- delete {BedWars.Protection.Blue}
- delete {BedWars.Protection.Green}
- delete {BedWars.Protection.Yellow}
- delete {BedWars.Respawn.Green}
- delete {BedWars.Respawn.Blue}
- delete {BedWars.Respawn.Red}
- delete {BedWars.Respawn.Yellow}
- delete {Started.BedWars.Upgrades}
- delete {BedWars.Join.Players}
- execute console command "bedwars removevillager"
- loop all players:
- delete {BedWars.PlayerTeam.%loop-player%}
- delete {BedWars.InGame}
- loop all dropped items:
- delete loop-value
- wait 1 tick
- loop all entities:
- loop all players:
- loop-entity-1 != loop-player:
- delete loop-entity-1
- loop blocks within {Pos1.Skywars.Arena} to {Pos2.Skywars.Arena}:
- if {Skywars.SaveArena.lag} > 100:
- wait 0.5 seconds
- set {Skywars.SaveArena.lag} to 0
- if {Skywars.SaveArena.blocks::%location of loop-block%} is not set:
- if loop-block is not air:
- add 1 to {Skywars.SaveArena.lag}
- set loop-block to air
- else:
- if type of loop-block is not {Skywars.SaveArena.blocks::%location of loop-block%}:
- add 1 to {Skywars.SaveArena.lag}
- set block at loop-block to {Skywars.SaveArena.blocks::%location of loop-block%}
- spawn 1 villager at {BedWars.TeamShop.Red}
- set name of last spawned entity to "&c&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- spawn 1 villager at {BedWars.TeamUpgrades.Red}
- set name of last spawned entity to "&c&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- wait 1 second
- spawn 1 villager at {BedWars.TeamShop.Blue}
- set name of last spawned entity to "&b&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- spawn 1 villager at {BedWars.TeamUpgrades.Blue}
- set name of last spawned entity to "&b&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- wait 1 second
- spawn 1 villager at {BedWars.TeamShop.Green}
- set name of last spawned entity to "&2&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- spawn 1 villager at {BedWars.TeamUpgrades.Green}
- set name of last spawned entity to "&2&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- wait 1 second
- spawn 1 villager at {BedWars.TeamShop.Yellow}
- set name of last spawned entity to "&e&lITEM SHOP"
- apply slowness 255 to last spawned entity for 999 days
- spawn 1 villager at {BedWars.TeamUpgrades.Yellow}
- set name of last spawned entity to "&e&lCLICK TO UPGRADES"
- apply slowness 255 to last spawned entity for 999 days
- send "&6SERVER ALREDY TO GAME" to console
- delete {BedWars.Regen.Arena}
- if arg 1 is "start":
- if sender is console:
- loop all players:
- make loop-player execute command "bedwars randomjointeam "
- add loop-player to {TotalJugadores::*}
- add 1 to {partidas-%loop-player%}
- set {Kills.%loop-player%} to 0
- set loop-player's gamemode to survival
- set {BedWars.Soreboard.Started} to true
- broadcast "%{Prefix}% &6The game starting in 10 seconds"
- wait 5 seconds
- broadcast "%{Prefix}% &6The game starting in 5 seconds"
- wait 1 seconds
- broadcast "%{Prefix}% &6The game starting in 4 seconds"
- wait 1 seconds
- broadcast "%{Prefix}% &6The game starting in 3 seconds"
- wait 1 seconds
- broadcast "%{Prefix}% &6The game starting in 2 seconds"
- wait 1 second
- broadcast "%{Prefix}% &6The game starting in 1 seconds"
- wait 1 second
- set {BedWars.InGame} to true
- loop all players:
- wait 1 second
- loop {BedWars.PreRed::*}:
- set the loop-player's tablist name to "&c&lR &c%loop-player%"
- set {BedWars.PlayerTeam.%loop-player%} to "Red"
- clear loop-player's inventory
- equip loop-player with leather helmet of unbreaking 1 named "&cTEAM RED"
- equip loop-player with leather chestplate named "&cTEAM RED"
- equip loop-player with leather pants named "&cTEAM RED"
- equip loop-player with leather boots named "&cTEAM RED"
- dye loop-player's helmet (255, 0, 0)
- dye loop-player's chestplate (255, 0, 0)
- dye loop-player's leggings (255, 0, 0)
- dye loop-player's boots (255, 0, 0)
- give wooden pickaxe of unbreaking 3 to loop-player
- teleport loop-player to {BedWars.TeamSpawn.Red}
- heal the loop-player
- set level of loop-player to 0
- set food bar to 20
- loop {BedWars.TeamBlue::*}:
- set the loop-player's tablist name to "&3&lB &3%loop-player%"
- set {BedWars.PlayerTeam.%loop-player%} to "Blue"
- clear loop-player's inventory
- equip loop-player with leather helmet of unbreaking 1 named "&3TEAM BLUE"
- equip loop-player with leather chestplate named "&3TEAM BLUE"
- equip loop-player with leather pants named "&3TEAM BLUE"
- equip loop-player with leather boots named "&3TEAM BLUE"
- dye loop-player's helmet (52, 221, 221)
- dye loop-player's chestplate (52, 221, 221)
- dye loop-player's leggings (52, 221, 221)
- dye loop-player's boots (52, 221, 221)
- give wooden pickaxe of unbreaking 3 to loop-player
- teleport loop-player to {BedWars.TeamSpawn.Blue}
- heal the loop-player
- set level of loop-player to 0
- set food bar to 20
- loop {BedWars.TeamYellow::*}:
- set the loop-player's tablist name to "&e&lY &e%loop-player%"
- set {BedWars.PlayerTeam.%loop-player%} to "Yellow"
- clear loop-player's inventory
- equip loop-player with leather helmet of unbreaking 1 named "&eTEAM YELLOW"
- equip loop-player with leather chestplate named "&eTEAM YELLOW"
- equip loop-player with leather pants named "&eTEAM YELLOW"
- equip loop-player with leather boots named "&eTEAM YELLOW"
- dye loop-player's helmet (255, 255, 0)
- dye loop-player's chestplate (255, 255, 0)
- dye loop-player's leggings (255, 255, 0)
- dye loop-player's boots (255, 255, 0)
- give wooden pickaxe of unbreaking 3 to loop-player
- teleport loop-player to {BedWars.TeamSpawn.Yellow}
- heal the loop-player
- set level of loop-player to 0
- set food bar to 20
- loop {BedWars.TeamGreen::*}:
- set the loop-player's tablist name to "&2&lG &2%loop-player%"
- set {BedWars.PlayerTeam.%loop-player%} to "Green"
- clear loop-player's inventory
- equip loop-player with leather helmet of unbreaking 1 named "&2TEAM GREEN"
- equip loop-player with leather chestplate named "&2TEAM GREEN"
- equip loop-player with leather pants named "&2TEAM GREEN"
- equip loop-player with leather boots named "&2TEAM GREEN"
- dye loop-player's helmet (0, 255, 0)
- dye loop-player's chestplate (0, 255, 0)
- dye loop-player's leggings (0, 255, 0)
- dye loop-player's boots (0, 255, 0)
- give wooden pickaxe of unbreaking 3 to loop-player
- teleport loop-player to {BedWars.TeamSpawn.Green}
- heal the loop-player
- set level of loop-player to 0
- set food bar to 20
- delete {Started.BedWars.Upgrades}
- set {Started.BedWars.Upgrades} to "game"
- set {Started.BedWarsTeamRed} to true
- set {Started.BedWarsTeamBlue} to true
- set {Started.BedWarsTeamGreen} to true
- set {Started.BedWarsTeamYellow} to true
- set {Started.BedWars.Time.Minutes} to 05
- set {Started.BedWars.Time.Seconds} to 60
- delete {BedWars.Scoreboards.Action.PreLobby}
- delete {BedWars.Events.Waiting}
- broadcast "&a&l笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆"
- broadcast " %{Prefix}%"
- broadcast ""
- broadcast "%{Line1}%"
- broadcast "%{Line2}%"
- broadcast "%{Line3}%"
- broadcast "%{Line4}%"
- broadcast ""
- broadcast " &f&lby: &f&lPianme"
- broadcast "&a&l笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆笆"
- set {BedWars.Scoreboard.Game} to true
- loop all players:
- create a new simple scoreboard named "game::%loop-player%"
- execute console command "bedwars holograms"
- loop 360 times:
- if {BedWars.Scoreboard.Game} is true:
- wait 1 second
- remove 1 from {Started.BedWars.Time.Seconds}
- if {Started.BedWars.Time.Seconds} is 0:
- remove 1 from {Started.BedWars.Time.Minutes}
- set {Started.BedWars.Time.Seconds} to 60
- else:
- exit loop
- stop
- set {Started.BedWars.Upgrades} to "1"
- set {Started.BedWars.Time.Minutes} to 05
- set {Started.BedWars.Time.Seconds} to 60
- loop 360 times:
- if {BedWars.Scoreboard.Game} is true:
- wait 1 second
- remove 1 from {Started.BedWars.Time.Seconds}
- if {Started.BedWars.Time.Seconds} is 0:
- remove 1 from {Started.BedWars.Time.Minutes}
- set {Started.BedWars.Time.Seconds} to 60
- else:
- exit loop
- stop
- set {Started.BedWars.Upgrades} to "2"
- set {Started.BedWars.Time.Minutes} to 05
- set {Started.BedWars.Time.Seconds} to 60
- loop 360 times:
- if {BedWars.Scoreboard.Game} is true:
- wait 1 second
- remove 1 from {Started.BedWars.Time.Seconds}
- if {Started.BedWars.Time.Seconds} is 0:
- remove 1 from {Started.BedWars.Time.Minutes}
- set {Started.BedWars.Time.Seconds} to 60
- else:
- exit loop
- stop
- if arg 1 is "holograms":
- set {Started.BedWars.Emerald.Time} to 55
- set {Started.BedWars.Diamond.Time} to 35
- loop 360 times:
- if {BedWars.Scoreboard.Game} is true:
- wait 1 second
- remove 1 from {Started.BedWars.Emerald.Time}
- remove 1 from {Started.BedWars.Diamond.Time}
- create hologram "&eTier &CI;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems1.D} for 1 seconds
- create hologram "&eTier &CI;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems2.D} for 1 seconds
- create hologram "&eTier &CI;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems3.D} for 1 seconds
- create hologram "&eTier &CI;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems4.D} for 1 seconds
- create hologram "&eTier &CI;&a&LEmerald;&eSpawns in &c%{Started.BedWars.Emerald.Time}% &eseconds" at {BedWars.SpawnItems1.E} for 1 seconds
- create hologram "&eTier &CI;&a&LEmerald;&eSpawns in &c%{Started.BedWars.Emerald.Time}% &eseconds" at {BedWars.SpawnItems2.E} for 1 seconds
- if {Started.BedWars.Emerald.Time} is 0:
- set {Started.BedWars.Emerald.Time} to 55
- drop 1 emerald at {BedWars.SpawnItems1.E}
- drop 1 emerald at {BedWars.SpawnItems2.E}
- if {Started.BedWars.Diamond.Time} is 0:
- set {Started.BedWars.Diamond.Time} to 35
- drop 1 diamond at {BedWars.SpawnItems1.D}
- drop 1 diamond at {BedWars.SpawnItems2.D}
- drop 1 diamond at {BedWars.SpawnItems3.D}
- drop 1 diamond at {BedWars.SpawnItems4.D}
- else:
- exit loop
- stop
- set {Started.BedWars.Emerald.Time} to 55
- set {Started.BedWars.Diamond.Time} to 25
- loop 360 times:
- if {BedWars.Scoreboard.Game} is true:
- wait 1 second
- remove 1 from {Started.BedWars.Emerald.Time}
- remove 1 from {Started.BedWars.Diamond.Time}
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems1.D} for 1 seconds
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems2.D} for 1 seconds
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems3.D} for 1 seconds
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems4.D} for 1 seconds
- create hologram "&eTier &CI;&a&LEmerald;&eSpawns in &c%{Started.BedWars.Emerald.Time}% &eseconds" at {BedWars.SpawnItems1.E} for 1 seconds
- create hologram "&eTier &CI;&a&LEmerald;&eSpawns in &c%{Started.BedWars.Emerald.Time}% &eseconds" at {BedWars.SpawnItems2.E} for 1 seconds
- if {Started.BedWars.Emerald.Time} is 0:
- set {Started.BedWars.Emerald.Time} to 55
- drop 1 emerald at {BedWars.SpawnItems1.E}
- drop 1 emerald at {BedWars.SpawnItems2.E}
- if {Started.BedWars.Diamond.Time} is 0:
- set {Started.BedWars.Diamond.Time} to 25
- drop 1 diamond at {BedWars.SpawnItems1.D}
- drop 1 diamond at {BedWars.SpawnItems2.D}
- drop 1 diamond at {BedWars.SpawnItems3.D}
- drop 1 diamond at {BedWars.SpawnItems4.D}
- else:
- exit loop
- stop
- set {Started.BedWars.Emerald.Time} to 40
- set {Started.BedWars.Diamond.Time} to 20
- loop 360 times:
- if {BedWars.Scoreboard.Game} is true:
- wait 1 second
- remove 1 from {Started.BedWars.Emerald.Time}
- remove 1 from {Started.BedWars.Diamond.Time}
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems1.D} for 1 seconds
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems2.D} for 1 seconds
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems3.D} for 1 seconds
- create hologram "&eTier &CII;&b&lDiamond;&eSpawns in &c%{Started.BedWars.Diamond.Time}% &eseconds" at {BedWars.SpawnItems4.D} for 1 seconds
- create hologram "&eTier &CII;&a&LEmerald;&eSpawns in &c%{Started.BedWars.Emerald.Time}% &eseconds" at {BedWars.SpawnItems1.E} for 1 seconds
- create hologram "&eTier &CII;&a&LEmerald;&eSpawns in &c%{Started.BedWars.Emerald.Time}% &eseconds" at {BedWars.SpawnItems2.E} for 1 seconds
- if {Started.BedWars.Emerald.Time} is 0:
- set {Started.BedWars.Emerald.Time} to 40
- drop 1 emerald at {BedWars.SpawnItems1.E}
- drop 1 emerald at {BedWars.SpawnItems2.E}
- if {Started.BedWars.Diamond.Time} is 0:
- set {Started.BedWars.Diamond.Time} to 20
- drop 1 diamond at {BedWars.SpawnItems1.D}
- drop 1 diamond at {BedWars.SpawnItems2.D}
- drop 1 diamond at {BedWars.SpawnItems3.D}
- drop 1 diamond at {BedWars.SpawnItems4.D}
- else:
- exit loop
- stop
- if arg 1 is "shopbed":
- if arg 2 is "show":
- if arg 3 is "blocks":
- if {BedWars.InGame} is true:
- wait 1 tick
- open chest with 3 rows named "&8Blocks" to player
- wait 3 ticks
- format slot 10 of player with 16 wool:0 named "&aWool" with lore "&8Items:|| &8- &716 Wool||&f||&7Cost: &24 Iron||&f||&eClick to buy the item" to run [make player execute command "/bedwars shopbed blocks wool"]
- format slot 11 of player with 16 sandstone named "&aSandstone" with lore "&8Items:|| &8- &716 Sandstone||&f||&7Cost: &212 Iron||&f||&eClick to buy the item" to run [make player execute command "/bedwars shopbed blocks sandstone"]
- format slot 12 of player with 16 end stone named "&aEnd Stone" with lore "&8Items:|| &8- &716 End Stone||&f||&7Cost: &224 Iron||&f||&eClick to buy the item" to run [make player execute command "/bedwars shopbed blocks endstone"]
- format slot 13 of player with 16 ladder named "&aLadder" with lore "&8Items:|| &8- &716 Ladder||&f||&7Cost: &24 Iron||&f||&eClick to buy the item" to run [make player execute command "/bedwars shopbed blocks ladder"]
- format slot 14 of player with 16 Oak Wood Planks named "&aOak Wood Planks " with lore "&8Items:|| &8- &716 Oak Wood Planks ||&f||&7Cost: &24 Gold||&f||&eClick to buy the item" to run [make player execute command "/bedwars shopbed blocks oak"]
- format slot 15 of player with 4 Obsidian named "&aObsidian " with lore "&8Items:|| &8- &74 Obsdian ||&f||&7Cost: &24 Emerald||&f||&eClick to buy the item" to run [make player execute command "/bedwars shopbed blocks obsidian"]
- format slot 22 of player with arrow named "&c&lBack to Menu" with lore "" to run [make player execute command "/shop4798"]
- if arg 3 is "armor":
- if {BedWars.InGame} is true:
- wait 1.5 tick
- open chest with 3 rows named "&8Armor" to player
- wait 3 ticks
- format slot 10 of player with chain boots named "&cPermanent Chain Armor" with lore "&8Items:|| &8- &7Chain Boots|| &8- &7Chain Leggings ||&f||&7Cost: &240 Iron||&f||&8Permanent items on death||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed armor chain"]
- format slot 11 of player with iron boots named "&cPermanent Iron Armor" with lore "&8Items:|| &8- &7Iron Boots|| &8- &7Iron Leggings ||&f||&7Cost: &220 Gold||&f||&8Permanent items on death||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed armor iron"]
- format slot 12 of player with diamond boots named "&cPermanent Diamond Armor" with lore "&8Items:|| &8- &7Diamond Boots|| &8- &7Diamond Leggings ||&f||&7Cost: &26 Emerald||&f||&8Permanent items on death||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed armor diamond"]
- format slot 22 of player with arrow named "&c&lBack to Menu" with lore "" to run [make player execute command "/shop4798"]
- if arg 3 is "guns":
- if {BedWars.InGame} is true:
- wait 1 tick
- open chest with 3 rows named "&8Guns" to player
- wait 3 ticks
- format slot 10 of player with wooden sword named "&aWooden Sword" with lore "&8Items:|| &8- &7Wooden Sword &8(&7x1&8)||&f||&7Cost: &26 Iron||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed guns wooden"]
- format slot 11 of player with stone sword named "&aStone Sword" with lore "&8Items:|| &8- &7Stone Sword &8(&7x1&8)||&f||&7Cost: &220 Iron||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed guns stone"]
- format slot 12 of player with iron sword named "&aIron Sword" with lore "&8Items:|| &8- &7Iron Sword &8(&7x1&8)||&f||&7Cost: &28 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed guns iron"]
- format slot 13 of player with diamond sword named "&aDiamond Sword" with lore "&8Items:|| &8- &7Diamond Sword &8(&7x1&8)||&f||&7Cost: &24 Emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed guns diamond"]
- format slot 14 of player with stick of unbreaking 3 named "&aStick" with lore "&8Items:|| &8- &7Stick &8(&7Knocback V&8)||&f||&7Cost: &24 Emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed guns stick"]
- format slot 22 of player with arrow named "&c&lBack to Menu" with lore "" to run [make player execute command "/shop4798"]
- if arg 3 is "ranged":
- if {BedWars.InGame} is true:
- wait 1 tick
- open chest with 3 rows named "&8Ranged" to player
- wait 3 ticks
- format slot 10 of player with 8 arrow named "&aArrow" with lore "&8Items:|| &8- &7Arrow &8(&7x8&8)||&f||&7Cost: &22 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed ranged arrow"]
- format slot 11 of player with bow named "&aBow" with lore "&8Items:|| &8- &7Bow &8(&7x1&8)||&f||&7Cost: &212 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed ranged bow"]
- format slot 12 of player with bow of power 1 named "&Bow (Power I)" with lore "&8Items:|| &8- &7Bow &8(&7xPower I&8)||&f||&7Cost: &224 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed ranged power"]
- format slot 13 of player with bow of punch 1 named "&ABow (Power I , Punch I)" with lore "&8Items:|| &8- &7Bow &8(&7Power I , Punch I &8)||&f||&7Cost: &26 Emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed ranged punch"]
- format slot 22 of player with arrow named "&c&lBack to Menu" with lore "" to run [make player execute command "/shop4798"]
- if arg 3 is "tools":
- if {BedWars.InGame} is true:
- wait 1 tick
- open chest with 3 rows named "&8Tools" to player
- wait 3 ticks
- format slot 10 of player with shears named "&aShears (Permanentment this item)" with lore "&8Items:|| &8- &7Shears &8(&7Permanentment&8)||&f||&7Cost: &240 Iron||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed tools shears"]
- format slot 11 of player with stone pickaxe of efficiency 2 named "&aStone Pickaxe (Efficiency II)" with lore "&8Items:|| &8- &7Stone Pickaxe &8(&77Efficiency II&8)||&f||&7Cost: &230 Iron||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed tools stone"]
- format slot 12 of player with iron pickaxe of efficiency 2 named "&aIron Pickaxe (Efficiency II)" with lore "&8Items:|| &8- &7Iron Pickaxe &8(&7Efficiency II&8)||&f||&7Cost: &28 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed tools iron"]
- format slot 13 of player with diamond pickaxe of efficiency 3 named "&ADiamond Pickaxe (Efficiency III)" with lore "&8Items:|| &8- &7Diamond Pickaxe &8(&7Efficiency III&8)||&f||&7Cost: &212 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed tools diamond"]
- format slot 14 of player with diamond axe of efficiency 3 named "&AAxe Pickaxe (Efficiency II)" with lore "&8Items:|| &8- &7Axe Pickaxe &8(&7Efficiency II&8)||&f||&7Cost: &212 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed tools axe"]
- format slot 22 of player with arrow named "&c&lBack to Menu" with lore "" to run [make player execute command "/shop4798"]
- if arg 3 is "potions":
- if {BedWars.InGame} is true:
- wait 1 tick
- open chest with 3 rows named "&8Potions" to player
- wait 3 ticks
- format slot 10 of player with water bottle named "&aSpeed II Potion (45 seconds)" with lore "&8Items:|| &8- &7Potion of speed &8(&7 II 45 Seconds&8)||&f||&7Cost: &21 emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed potions speed"]
- format slot 11 of player with water bottle named "&aJump V Potion (45 seconds)" with lore "&8Items:|| &8- &7Potion of Jump &8(&7V 45 Seconds&8)||&f||&7Cost: &21 Emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed potions jump"]
- format slot 12 of player with water bottle named "&aInvisibility Potion (30 seconds)" with lore "&8Items:|| &8- &7Potion of Invisibility &8(&730 Seconds&8)||&f||&7Cost: &21 Emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed potions invi"]
- format slot 22 of player with arrow named "&c&lBack to Menu" with lore "" to run [make player execute command "/shop4798"]
- if arg 3 is "utils":
- if {BedWars.InGame} is true:
- wait 1 tick
- open chest with 3 rows named "&8Utils" to player
- wait 3 ticks
- format slot 10 of player with golden apple named "&aGolden Apple" with lore "&8Items:|| &8- &7Golden Apple &8(&7x1&8)||&f||&7Cost: &23 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed utils golden"]
- format slot 11 of player with snowball named "&aSnowBreak (Break Blocks)" with lore "&8Items:|| &8- &7SnowBall &8(&7BreakBlocks&8)||&f||&7Cost: &225 Gold||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed utils snowball"]
- format slot 12 of player with ender pearl named "&aEnder Pearl" with lore "&8Items:|| &8- &7Ender Pearl &8(&7x1&8)||&f||&7Cost: &24 Emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed utils enderpealr"]
- format slot 13 of player with sponge named "&aSponge TNT" with lore "&8Items:|| &8- &7Sponge TNT &8(&7x1&8)||&f||&7Cost: &24 Emerald||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed utils sponge"]
- format slot 14 of player with egg named "&aFireball" with lore "&8Items:|| &8- &7Fireball &8(&7x1&8)||&f||&7Cost: &240 Iron ||&f||&eClick to buy this items" to run [make player execute command "/bedwars shopbed utils fireball"]
- format slot 22 of player with arrow named "&c&lBack to Menu" with lore "" to run [make player execute command "/shop4798"]
- if arg 2 is "blocks":
- if arg 3 is "wool":
- if player has 4 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- if {BedWars.PlayerTeam.%player%} is "Red":
- give 16 wool:14 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- if {BedWars.PlayerTeam.%player%} is "Blue":
- give 16 wool:11 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- give 16 wool:4 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- if {BedWars.PlayerTeam.%player%} is "Green":
- give 16 wool:13 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "sandstone":
- if player has 12 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give 12 sandstone to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 12 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "endstone":
- if player has 24 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give 12 end stone to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 24 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "ladder":
- if player has 4 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give 16 ladder to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "oak":
- if player has 4 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give 14 Oak Wood Planks to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "obsidian":
- if player has 4 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give 4 obsidian to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- close player's inventory
- if arg 2 is "guns":
- if arg 3 is "wooden":
- if player has 6 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.Sharpness.Red} is not set:
- give wooden sword to player
- else:
- give wooden sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Sharpness.Blue} is not set:
- give wooden sword to player
- else:
- give wooden sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Sharpness.Yellow} is not set:
- give wooden sword to player
- else:
- give wooden sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Sharpness.Green} is not set:
- give wooden sword to player
- else:
- give wooden sword of sharpness 1 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 6 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "stone":
- if player has 20 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.Sharpness.Red} is not set:
- give stone sword to player
- else:
- give stone sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Sharpness.Blue} is not set:
- give stone sword to player
- else:
- give stone sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Sharpness.Yellow} is not set:
- give stone sword to player
- else:
- give stone sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Sharpness.Green} is not set:
- give stone sword to player
- else:
- give stone sword of sharpness 1 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 20 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "iron":
- if player has 8 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.Sharpness.Red} is not set:
- give iron sword to player
- else:
- give iron sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Sharpness.Blue} is not set:
- give iron sword to player
- else:
- give iron sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Sharpness.Yellow} is not set:
- give iron sword to player
- else:
- give iron sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Sharpness.Green} is not set:
- give iron sword to player
- else:
- give iron sword of sharpness 1 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 8 golden ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "diamond":
- if player has 4 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.Sharpness.Red} is not set:
- give diamond sword to player
- else:
- give diamond sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Sharpness.Blue} is not set:
- give diamond sword to player
- else:
- give diamond sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Sharpness.Yellow} is not set:
- give diamond sword to player
- else:
- give diamond sword of sharpness 1 to player
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Sharpness.Green} is not set:
- give diamond sword to player
- else:
- give diamond sword of sharpness 1 to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoDiamond}%"
- close player's inventory
- if arg 3 is "stick":
- if player has 4 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give stick of knockback 5 named "&bStick Knocback II" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- if arg 2 is "armor":
- if arg 3 is "chain":
- if {BedWars.Buy.Chain.Armor.%player%} is not set:
- if player has 40 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- set {BedWars.Buy.Chain.Armor.%player%} to true
- equip player with chain leggings named "&7TEAM "
- equip player with chain boots named "&7TEAM"
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 40 iron ingot from player's inventory
- wait 0.4 second
- send "&6Sucefuly purchase the armor chain"
- close player's inventory
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- else:
- send "%{AlredyPurchase}%"
- if arg 3 is "iron":
- if {BedWars.Buy.Iron.Armor.%player%} is not set:
- if player has 12 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- delete {BedWars.Buy.Chain.Armor.%player%}
- set {BedWars.Buy.Iron.Armor.%player%} to true
- equip player with iron leggings named "&7TEAM "
- equip player with iron boots named "&7TEAM"
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 12 gold ingot from player's inventory
- wait 0.4 second
- send "&6Sucefuly purchase the armor chain"
- close player's inventory
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- else:
- send "%{AlredyPurchase}%"
- if arg 3 is "diamond":
- if {BedWars.Buy.Diamond.Armor.%player%} is not set:
- if player has 6 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- delete {BedWars.Buy.Chain.Armor.%player%}
- delete {BedWars.Buy.Iron.Armor.%player%}
- set {BedWars.Buy.Diamond.Armor.%player%} to true
- equip player with diamond leggings named "&7TEAM "
- equip player with diamond boots named "&7TEAM"
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 6 emerald from player's inventory
- wait 0.4 second
- send "&6Sucefuly purchase the armor chain"
- close player's inventory
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- else:
- send "%{AlredyPurchase}%"
- if arg 2 is "ranged":
- if arg 3 is "arrow":
- if player has 2 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give 6 arrow to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 2 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "bow":
- if player has 12 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give bow to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 12 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "power":
- if player has 24 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give bow of power 1 named "&bBow (Power I)" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 24 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "punch":
- if player has 6 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give bow of power 1 and punch 1 named "&bBow (Power I , Punch I)" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 6 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- close player's inventory
- if arg 2 is "tools":
- if arg 3 is "shears":
- if player has 40 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give shears named "&bShears " to player
- set {BedWars.Shears.%player%} to true
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 40 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "stone":
- if player has 30 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give stone pickaxe of efficiency 2 named "&B" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 30 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "iron":
- if player has 8 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give iron pickaxe of efficiency 2 named "&B " to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 8 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "diamond":
- if player has 12 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give diamond pickaxe of efficiency 3 named "&B" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 12 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "axe":
- if player has 12 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give diamond axe of efficiency 2 named "&B " to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 12 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 2 is "potions":
- if arg 3 is "speed":
- if player has 1 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give water bottle named "&bPotion of Speed &c45" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 1 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- close player's inventory
- if arg 3 is "jump":
- if player has 1 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give water bottle named "&bPotion of Jump &c45" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 1 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- close player's inventory
- if arg 3 is "invi":
- if player has 1 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give water bottle named "&bPotion of Invisibility &c45" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 1 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- close player's inventory
- if arg 2 is "utils":
- if arg 3 is "golden":
- if player has 3 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give golden apple to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 3 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "snowball":
- if player has 25 gold ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give snowball named "&bSnowball break blocks" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 25 gold ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoGold}%"
- close player's inventory
- if arg 3 is "enderpealr":
- if player has 4 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give ender pearl to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoEmerald}%"
- close player's inventory
- if arg 3 is "sponge":
- if player has 4 emerald:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give sponge named "&cTNT SPONGE" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 4 emerald from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- if arg 3 is "fireball":
- if player has 40 iron ingot:
- if {NoSpam.%player%} is true:
- send "%{Click}%" to player
- else:
- set {NoSpam.%player%} to true
- give egg named "&bFireball" to player
- play raw sound "note.pling" at player with pitch 1 volume 0.2
- remove 40 iron ingot from player's inventory
- wait 0.4 second
- set {NoSpam.%player%} to false
- else:
- send "%{NoIron}% "
- close player's inventory
- #============= event of bed teams =================#
- On consume a water bottle:
- if item is water bottle item named "&bPotion of Speed &c45":
- apply potion of speed of tier 2 to player for 45 seconds
- stop
- if item is water bottle item named "&bPotion of Jump &c45":
- apply potion of jump boost of tier 5 to player for 45 seconds
- stop
- if item is water bottle item named "&bPotion of Invisibility &c45":
- apply potion of invisibility of tier 1 to player for 30 seconds
- stop
- on projectile hit:
- if projectile is a snowball:
- clear projectile
- loop blocks in radius 3 around event-location:
- if loop-block is a wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- set loop-block to air
- on projectile hit:
- if projectile is a egg:
- clear projectile
- loop blocks in radius 5 around event-location:
- if loop-block is a wool:
- set loop-block to air
- on place sponge:
- remove sponge from player's inventory
- set block to air
- wait 0.5 seconds
- play raw sound "note.harp" at player with pitch 3 volume 0.5
- set block to air
- wait 0.5 seconds
- play raw sound "note.harp" at player with pitch 3 volume 0.5
- set block to air
- wait 0.5 seconds
- play raw sound "note.harp" at player with pitch 3 volume 0.5
- set block to tnt
- wait 0.4 seconds
- play raw sound "random.anvil_break" at player with pitch 1 volume 5
- set block to air
- loop blocks in radius 5 around event-location:
- if loop-block is a wool or end stone or sandstone:
- set loop-block to air
- on rightclick with snowball:
- if name of tool is "&bSnowball break blocks":
- play raw sound "random.explode" at player with pitch 1 volume 5
- on rightclick with egg:
- if name of tool is "&bFireball":
- play raw sound "random.explode" at player with pitch 1 volume 5
- on break:
- if "%region at player%" contains "BedRed":
- if {BedWars.PlayerTeam.%player%} is "Red":
- if block is bed:
- cancel event
- send "%{NobreakBed}%"
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Blue" or "Yellow" or "Green":
- if block is bed:
- cancel event
- set block to obsidian
- broadcast ""
- broadcast "%{BedDesRed}% &a%player%"
- broadcast ""
- set {BedWars.BreakBed.Red} to true
- loop all players:
- loop {BedWars.PreRed::*}:
- make {BedWars.PreRed::*} execute command "vidasequipo red"
- stop
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- on break:
- if "%region at player%" contains "BedBlue":
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if block is bed:
- cancel event
- send "%{NobreakBed}%"
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Red" or "Yellow" or "Green":
- if block is bed:
- cancel event
- set block to obsidian
- broadcast ""
- broadcast "%{BedDesBlue}% &a%player%"
- broadcast ""
- set {BedWars.BreakBed.Blue} to true
- loop all players:
- loop {BedWars.TeamBlue::*}:
- make {BedWars.TeamBlue::*} execute command "vidasequipo blue"
- stop
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- on break:
- if "%region at player%" contains "BedYellow":
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if block is bed:
- cancel event
- send "%{NobreakBed}%"
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green":
- if block is bed:
- cancel event
- set block to obsidian
- broadcast ""
- broadcast "%{BedDesYellow}% &a%player%"
- broadcast ""
- set {BedWars.BreakBed.Yellow} to true
- loop all players:
- loop {BedWars.TeamYellow::*}:
- make {BedWars.TeamYellow::*} execute command "vidasequipo yellow"
- stop
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- on break:
- if "%region at player%" contains "BedGreen":
- if {BedWars.PlayerTeam.%player%} is "Green":
- if block is bed:
- cancel event
- send "%{NobreakBed}%"
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Yellow":
- if block is bed:
- cancel event
- set block to obsidian
- broadcast ""
- broadcast "%{BedDesGreen}% &a%player%"
- broadcast ""
- set {BedWars.BreakBed.Green} to true
- loop all players:
- loop {BedWars.TeamGreen::*}:
- make {BedWars.TeamGreen::*} execute command "vidasequipo green"
- stop
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- #============= event of bed teams =================#
- on break:
- if {BedWars.InGame} is true:
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks :
- cancel event
- on place:
- if "%region at player%" contains "BedRed":
- if {BedWars.PlayerTeam.%player%} is "Red":
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Blue" or "Yellow" or "Green":
- if block is not sponge:
- cancel event
- on place:
- if "%region at player%" contains "BedBlue":
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks or sponge:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Red" or "Yellow" or "Green":
- if block is not sponge:
- cancel event
- on place:
- if "%region at player%" contains "BedYellow":
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks or sponge:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Blue" or "Blue" or "Green":
- if block is not sponge:
- cancel event
- on place:
- if "%region at player%" contains "BedGreen":
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if block is not wool or end stone or sandstone or obsidian or ladder or Oak Wood Planks or sponge:
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Blue" or "Yellow" or "Red":
- if block is not sponge:
- cancel event
- #====#
- on break:
- if "%region at player%" contains "PreRed":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- on place:
- if "%region at player%" contains "PreRed":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- on break:
- if "%region at player%" contains "PreBlue":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- on place:
- if "%region at player%" contains "PreBue":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- on break:
- if "%region at player%" contains "PreYellow":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- on place:
- if "%region at player%" contains "PreYellow":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- on break:
- if "%region at player%" contains "PreGreen":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- on place:
- if "%region at player%" contains "PreGreen":
- if {BedWars.PlayerTeam.%player%} is "Red" or "Blue" or "Green" or "Yellow":
- cancel event
- #=================#
- on death of player:
- clear drops
- add 1 to {kills-%attacker%}
- add 1 to {deaths-%victim%}
- if attacker is a player:
- set death message to "&c%victim% &7%{deathplayer}% &9%attacker%"
- damage cause is fall:
- set death message to ""
- damage cause is void:
- set death message to ""
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.BreakBed.Red} is not set:
- force respawn victim
- execute console command "gamemode 3 %victim%"
- add 1 to {Kills.%attacker%}
- teleport victim to {BedWars.SetDeath}
- if {BedWars.Respawn.Red} is not set:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c5 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 2 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c4 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- else:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- wait 1 second
- send victim title "&aYOU RESPAWN" with subtitle "" for 1 seconds
- teleport victim to {BedWars.TeamSpawn.Red}
- clear victim's inventory
- equip victim with leather helmet of unbreaking 1 named "&cTEAM RED"
- equip victim with leather chestplate named "&cTEAM RED"
- equip victim with leather pants named "&cTEAM RED"
- equip victim with leather boots named "&cTEAM RED"
- dye victim's helmet (255, 0, 0)
- dye victim's chestplate (255, 0, 0)
- dye victim's leggings (255, 0, 0)
- dye victim's boots (255, 0, 0)
- if {BedWars.Buy.Chain.Armor.%victim%} is true:
- if {BedWars.Protection.Red} is not set:
- equip victim with chain leggings named "&7TEAM "
- equip victim with chain boots named "&7TEAM"
- else:
- equip victim with chain leggings of protection 1 named "&7TEAM "
- equip victim with chain boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Iron.Armor.%victim%} is true:
- if {BedWars.Protection.Red} is not set:
- equip victim with iron leggings named "&7TEAM "
- equip victim with iron boots named "&7TEAM"
- else:
- equip victim with iron leggings of protection 1 named "&7TEAM "
- equip victim with iron boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Diamond.Armor.%victim%} is true:
- if {BedWars.Protection.Red} is not set:
- equip victim with diamond leggings named "&7TEAM "
- equip victim with diamond boots named "&7TEAM"
- else:
- equip victim with diamond leggings of protection 1 named "&7TEAM "
- equip victim with diamond boots of protection 1 named "&7TEAM"
- give wooden pickaxe of unbreaking 3 to victim
- if {BedWars.Shears.%victim%} is true:
- give shears to player
- heal the victim
- set level of victim to 0
- set food bar to 20
- set victim's gamemode to survival
- else:
- force respawn victim
- add 1 to {Kills.%attacker%}
- execute console command "gamemode 3 %victim%"
- teleport victim to {BedWars.SetDeath}
- send victim title "%{TitleDied}%" with subtitle "%{NotRespawn}%" for 5 seconds
- remove 1 from {BedWars.Vidas.Red}
- set the player's tablist name to "&f%player%"
- if {BedWars.Vidas.Red} is 0:
- broadcast ""
- broadcast "%{RedEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Red} to true
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.BreakBed.Blue} is not set:
- force respawn victim
- add 1 to {Kills.%attacker%}
- execute console command "gamemode 3 %victim%"
- teleport victim to {BedWars.SetDeath}
- if {BedWars.Respawn.Blue} is not set:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c5 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 2 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c4 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- else:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- wait 1 second
- send victim title "&aYOU RESPAWN" with subtitle "" for 1 seconds
- teleport victim to {BedWars.TeamSpawn.Blue}
- clear victim's inventory
- equip victim with leather helmet of unbreaking 1 named "&3TEAM BLUE"
- equip victim with leather chestplate named "&3TEAM BLUE"
- equip victim with leather pants named "&3TEAM BLUE"
- equip victim with leather boots named "&3TEAM BLUE"
- dye victim's helmet (52, 221, 221)
- dye victim's chestplate (52, 221, 221)
- dye victim's leggings (52, 221, 221)
- dye victim's boots (52, 221, 221)
- if {BedWars.Buy.Chain.Armor.%victim%} is true:
- if {BedWars.Protection.Blue} is not set:
- equip victim with chain leggings named "&7TEAM "
- equip victim with chain boots named "&7TEAM"
- else:
- equip victim with chain leggings of protection 1 named "&7TEAM "
- equip victim with chain boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Iron.Armor.%victim%} is true:
- if {BedWars.Protection.Blue} is not set:
- equip victim with iron leggings named "&7TEAM "
- equip victim with iron boots named "&7TEAM"
- else:
- equip victim with iron leggings of protection 1 named "&7TEAM "
- equip victim with iron boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Diamond.Armor.%victim%} is true:
- if {BedWars.Protection.Blue} is not set:
- equip victim with diamond leggings named "&7TEAM "
- equip victim with diamond boots named "&7TEAM"
- else:
- equip victim with diamond leggings of protection 1 named "&7TEAM "
- equip victim with diamond boots of protection 1 named "&7TEAM"
- give wooden pickaxe of unbreaking 3 to victim
- if {BedWars.Shears.%victim%} is true:
- give shears to player
- heal the victim
- set level of victim to 0
- set food bar to 20
- set victim's gamemode to survival
- else:
- force respawn victim
- execute console command "gamemode 3 %victim%"
- add 1 to {Kills.%attacker%}
- teleport victim to {BedWars.SetDeath}
- send victim title "%{TitleDied}%" with subtitle "%{NotRespawn}%" for 5 seconds
- remove 1 from {BedWars.Vidas.Blue}
- set the player's tablist name to "&f%player%"
- if {BedWars.Vidas.Blue} is 0:
- broadcast ""
- broadcast "%{BlueEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Blue} to true
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.BreakBed.Yellow} is not set:
- force respawn victim
- add 1 to {Kills.%attacker%}
- execute console command "gamemode 3 %victim%"
- teleport victim to {BedWars.SetDeath}
- if {BedWars.Respawn.Yellow} is not set:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c5 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 2 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c4 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- else:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- wait 1 second
- send victim title "&aYOU RESPAWN" with subtitle "" for 1 seconds
- teleport victim to {BedWars.TeamSpawn.Yellow}
- clear victim's inventory
- equip victim with leather helmet of unbreaking 1 named "&eTEAM YELLOW"
- equip victim with leather chestplate named "&eTEAM YELLOW"
- equip victim with leather pants named "&eTEAM YELLOW"
- equip victim with leather boots named "&eTEAM YELLOW"
- dye victim's helmet (255, 255, 0)
- dye victim's chestplate (255, 255, 0)
- dye victim's leggings (255, 255, 0)
- dye victim's boots (255, 255, 0)
- if {BedWars.Buy.Chain.Armor.%victim%} is true:
- if {BedWars.Protection.Yellow} is not set:
- equip victim with chain leggings named "&7TEAM "
- equip victim with chain boots named "&7TEAM"
- else:
- equip victim with chain leggings of protection 1 named "&7TEAM "
- equip victim with chain boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Iron.Armor.%victim%} is true:
- if {BedWars.Protection.Yellow} is not set:
- equip victim with iron leggings named "&7TEAM "
- equip victim with iron boots named "&7TEAM"
- else:
- equip victim with iron leggings of protection 1 named "&7TEAM "
- equip victim with iron boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Diamond.Armor.%victim%} is true:
- if {BedWars.Protection.Yellow} is not set:
- equip victim with diamond leggings named "&7TEAM "
- equip victim with diamond boots named "&7TEAM"
- else:
- equip victim with diamond leggings of protection 1 named "&7TEAM "
- equip victim with diamond boots of protection 1 named "&7TEAM"
- give wooden pickaxe of unbreaking 3 to victim
- if {BedWars.Shears.%victim%} is true:
- give shears to player
- heal the victim
- set level of victim to 0
- set food bar to 20
- set victim's gamemode to survival
- else:
- force respawn victim
- execute console command "gamemode 3 %victim%"
- teleport victim to {BedWars.SetDeath}
- add 1 to {Kills.%attacker%}
- send victim title "%{TitleDied}%" with subtitle "%{NotRespawn}%" for 5 seconds
- remove 1 from {BedWars.Vidas.Yellow}
- set the player's tablist name to "&f%player%"
- if {BedWars.Vidas.Yellow} is 0:
- broadcast ""
- broadcast "%{YellowEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Yellow} to true
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.BreakBed.Green} is not set:
- force respawn victim
- add 1 to {Kills.%attacker%}
- execute console command "gamemode 3 %victim%"
- teleport victim to {BedWars.SetDeath}
- if {BedWars.Respawn.Green} is not set:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c5 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 2 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c4 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- else:
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c3 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1 seconds
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c2 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- send victim title "%{TitleDied}%" with subtitle "%{SubTitleDied}% &c1 %{BedWars.YML.Msg.Seconds}%" for 1 seconds
- wait 1.2 second
- wait 1 second
- send victim title "&aYOU RESPAWN" with subtitle "" for 1 seconds
- teleport victim to {BedWars.TeamSpawn.Green}
- clear victim's inventory
- equip victim with leather helmet of unbreaking 1 named "&2TEAM GREEN"
- equip victim with leather chestplate named "&2TEAM GREEN"
- equip victim with leather pants named "&2TEAM GREEN"
- equip victim with leather boots named "&2TEAM GREEN"
- dye victim's helmet (0, 255, 0)
- dye victim's chestplate (0, 255, 0)
- dye victim's leggings (0, 255, 0)
- dye victim's boots (0, 255, 0)
- if {BedWars.Buy.Chain.Armor.%victim%} is true:
- if {BedWars.Protection.Green} is not set:
- equip victim with chain leggings named "&7TEAM "
- equip victim with chain boots named "&7TEAM"
- else:
- equip victim with chain leggings of protection 1 named "&7TEAM "
- equip victim with chain boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Iron.Armor.%victim%} is true:
- if {BedWars.Protection.Green} is not set:
- equip victim with iron leggings named "&7TEAM "
- equip victim with iron boots named "&7TEAM"
- else:
- equip victim with iron leggings of protection 1 named "&7TEAM "
- equip victim with iron boots of protection 1 named "&7TEAM"
- if {BedWars.Buy.Diamond.Armor.%victim%} is true:
- if {BedWars.Protection.Green} is not set:
- equip victim with diamond leggings named "&7TEAM "
- equip victim with diamond boots named "&7TEAM"
- else:
- equip victim with diamond leggings of protection 1 named "&7TEAM "
- equip victim with diamond boots of protection 1 named "&7TEAM"
- give wooden pickaxe of unbreaking 3 to victim
- if {BedWars.Shears.%victim%} is true:
- give shears to player
- heal the victim
- set level of victim to 0
- set food bar to 20
- set victim's gamemode to survival
- else:
- force respawn victim
- add 1 to {Kills.%attacker%}
- execute console command "gamemode 3 %victim%"
- teleport victim to {BedWars.SetDeath}
- send victim title "%{TitleDied}%" with subtitle "%{NotRespawn}%" for 5 seconds
- remove 1 from {BedWars.Vidas.Green}
- set the player's tablist name to "&f%player%"
- if {BedWars.Vidas.Green} is 0:
- broadcast ""
- broadcast "%{GreenEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Green} to true
- # =========== Scoreboards ============= #
- function sidebar(p: player):
- create a new simple scoreboard named "sidebar"
- set title of simple scoreboard "sidebar" to "%{ScorePre1}%"
- set slot 10 of simple scoreboard "sidebar" to "&1"
- set slot 9 of simple scoreboard "sidebar" to "%{ScorePre2}%"
- set slot 8 of simple scoreboard "sidebar" to "%{ScorePre3}% %{BedWars.Join.Players}%/12"
- set slot 7 of simple scoreboard "sidebar" to "&2"
- if {BedWars.Soreboard.Started} is not set:
- set slot 6 of simple scoreboard "sidebar" to "%{ScorePre4}%"
- else if {BedWars.Soreboard.Started} is true:
- set slot 6 of simple scoreboard "sidebar" to "%{ScorePre5}%"
- set slot 5 of simple scoreboard "sidebar" to "&3"
- set slot 4 of simple scoreboard "sidebar" to "%{ScorePre6}%"
- set slot 3 of simple scoreboard "sidebar" to "&4"
- set slot 2 of simple scoreboard "sidebar" to "%{ScorePre7}%"
- set simple scoreboard of {_p} to "sidebar"
- function sidebar2(p: player):
- set title of simple scoreboard "game::%{_p}%" to "%{ScoreGame1}%"
- set slot 15 of simple scoreboard "game::%{_p}%" to "&7%now%"
- set slot 14 of simple scoreboard "game::%{_p}%" to "&1"
- if {Started.BedWars.Upgrades} is "game":
- set slot 13 of simple scoreboard "game::%{_p}%" to "%{ScoreGame2}%"
- if {Started.BedWars.Upgrades} is "1":
- set slot 13 of simple scoreboard "game::%{_p}%" to "%{ScoreGame3}%"
- if {Started.BedWars.Upgrades} is "2":
- set slot 13 of simple scoreboard "game::%{_p}%" to "%{ScoreGame4}%:"
- set slot 12 of simple scoreboard "game::%{_p}%" to "&a%{Started.BedWars.Time.Minutes}%:%{Started.BedWars.Time.Seconds}%"
- set slot 11 of simple scoreboard "game::%{_p}%" to "&2"
- if {BedWars.BreakBed.Red} is not set:
- set slot 10 of simple scoreboard "game::%{_p}%" to "%{ScoreGame5}% &a笨・
- else if {BedWars.BreakBed.Red} is true:
- set slot 10 of simple scoreboard "game::%{_p}%" to "%{ScoreGame5}% &a%{BedWars.Vidas.Red}%"
- if {BedWars.Search.Lose-Red} is true:
- set slot 10 of simple scoreboard "game::%{_p}%" to "%{ScoreGame5}% &c笨・
- if {BedWars.BreakBed.Green} is not set:
- set slot 9 of simple scoreboard "game::%{_p}%" to "%{ScoreGame8}% &a笨・
- else if {BedWars.BreakBed.Green} is true:
- set slot 9 of simple scoreboard "game::%{_p}%" to "%{ScoreGame8}% &a%{BedWars.Vidas.Green}%"
- if {BedWars.Search.Lose-Green} is true:
- set slot 9 of simple scoreboard "game::%{_p}%" to "%{ScoreGame8}% &c笨・
- if {BedWars.BreakBed.Blue} is not set:
- set slot 8 of simple scoreboard "game::%{_p}%" to "%{ScoreGame6}% &a笨・
- else if {BedWars.BreakBed.Blue} is true:
- set slot 8 of simple scoreboard "game::%{_p}%" to "%{ScoreGame6}% &a%{BedWars.Vidas.Blue}%"
- if {BedWars.Search.Lose-Blue} is true:
- set slot 8 of simple scoreboard "game::%{_p}%" to "%{ScoreGame6}% &c笨・
- if {BedWars.BreakBed.Yellow} is not set:
- set slot 7 of simple scoreboard "game::%{_p}%" to "%{ScoreGame7}% &a笨・
- else if {BedWars.BreakBed.Yellow} is true:
- set slot 7 of simple scoreboard "game::%{_p}%" to "%{ScoreGame7}% &a%{BedWars.Vidas.Yellow}%"
- if {BedWars.Search.Lose-Yellow} is true:
- set slot 7 of simple scoreboard "game::%{_p}%" to "%{ScoreGame7}% &c笨・
- set slot 6 of simple scoreboard "game::%{_p}%" to "&e"
- set slot 5 of simple scoreboard "game::%{_p}%" to "%{ScoreGame9}% &a%{Kills.%{_p}%}%"
- set slot 4 of simple scoreboard "game::%{_p}%" to "&c"
- set slot 3 of simple scoreboard "game::%{_p}%" to "%{ScoreGame10}%"
- set simple scoreboard of {_p} to "game::%{_p}%"
- every 2 seconds:
- loop all players:
- if {BedWars.Scoreboards.Action.PreLobby} is "on":
- sidebar(loop-player)
- every 1 seconds:
- loop all players:
- if {BedWars.Scoreboard.Game} is true:
- sidebar2(loop-player)
- on quit:
- if {BedWars.LeaveGame.%player%} is true:
- set quit message to "&7%player% %{Disconnect}%"
- if {BedWars.PlayerTeam.%player%} is "Red":
- remove 1 from {BedWars.Vidas.Red}
- if {BedWars.Vidas.Red} is 0:
- broadcast ""
- broadcast "%{RedEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Red} to true
- if {BedWars.PlayerTeam.%player%} is "Blue":
- remove 1 from {BedWars.Vidas.Blue}
- if {BedWars.Vidas.Blue} is 0:
- broadcast ""
- broadcast "%{BlueEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Blue} to true
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- remove 1 from {BedWars.Vidas.Yellow}
- if {BedWars.Vidas.Yellow} is 0:
- broadcast ""
- broadcast "%{YellowEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Yellow} to true
- if {BedWars.PlayerTeam.%player%} is "Green":
- remove 1 from {BedWars.Vidas.Green}
- if {BedWars.Vidas.Green} is 0:
- broadcast ""
- broadcast "%{GreenEliminated}%"
- broadcast ""
- set {BedWars.Search.Lose-Green} to true
- if {BedWars.InGame} is true:
- set quit message to "&7%player% %{Disconnect}%"
- else:
- remove 1 from {BedWars.Join.Players}
- set quit message to ""
- command /vidasequipo [<text>]:
- trigger:
- if arg 1 is "red":
- add 1 to {BedWars.Vidas.Red}
- send "&CYou have 1 life for the game"
- set {BedWars.LeaveGame.%player%} to true
- if arg 1 is "blue":
- add 1 to {BedWars.Vidas.Blue}
- send "&CYou have 1 life for the game"
- set {BedWars.LeaveGame.%player%} to true
- if arg 1 is "yellow":
- add 1 to {BedWars.Vidas.Yellow}
- send "&CYou have 1 life for the game"
- set {BedWars.LeaveGame.%player%} to true
- if arg 1 is "green":
- add 1 to {BedWars.Vidas.Green}
- send "&CYou have 1 life for the game"
- set {BedWars.LeaveGame.%player%} to true
- every 5 seconds:
- if {Started.BedWarsTeamBlue} is true:
- if {BedWars.Search.Lose-Red} is true:
- if {BedWars.Search.Lose-Yellow} is true:
- if {BedWars.Search.Lose-Green} is true:
- if {BedWars.StopLoopRed} is not set:
- execute console command "bedwars stop"
- broadcast "&e&m------------------------------------"
- broadcast ""
- broadcast "%{BlueWon}%"
- broadcast ""
- broadcast "&e&m------------------------------------"
- loop all players:
- loop {BedWars.TeamBlue::*}:
- add 1 to {wins-%loop-player%}
- set {BedWars.StopLoopRed} to true
- if {Started.BedWarsTeamRed} is true:
- if {BedWars.Search.Lose-Blue} is true:
- if {BedWars.Search.Lose-Yellow} is true:
- if {BedWars.Search.Lose-Green} is true:
- if {BedWars.StopLoopBlue} is not set:
- execute console command "bedwars stop"
- broadcast "&e&m------------------------------------"
- broadcast ""
- broadcast "%{RedWon}%"
- broadcast ""
- broadcast "&e&m------------------------------------"
- loop all players:
- loop {BedWars.PreRed::*}:
- add 1 to {wins-%loop-player%}
- set {BedWars.StopLoopBlue} to true
- if {Started.BedWarsTeamGreen} is true:
- if {BedWars.Search.Lose-Blue} is true:
- if {BedWars.Search.Lose-Yellow} is true:
- if {BedWars.Search.Lose-Red} is true:
- if {BedWars.StopLoopGreen} is not set:
- execute console command "bedwars stop"
- broadcast "&e&m------------------------------------"
- broadcast ""
- broadcast "%{GreenWon}%"
- broadcast ""
- broadcast "&e&m------------------------------------"
- loop all players:
- loop {BedWars.TeamGreen::*}:
- add 1 to {wins-%loop-player%}
- set {BedWars.StopLoopGreen} to true
- if {Started.BedWarsTeamYellow} is true:
- if {BedWars.Search.Lose-Blue} is true:
- if {BedWars.Search.Lose-Red} is true:
- if {BedWars.Search.Lose-Green} is true:
- if {BedWars.StopLoopYellow} is not set:
- execute console command "bedwars stop"
- broadcast "&e&m------------------------------------"
- broadcast ""
- broadcast "%{YellowWon}%"
- broadcast ""
- broadcast "&e&m------------------------------------"
- loop all players:
- loop {BedWars.TeamYellow::*}:
- add 1 to {wins-%loop-player%}
- set {BedWars.StopLoopYellow} to true
- on right click on entity:
- name of clicked entity contains "&c&lITEM SHOP" or "&b&lITEM SHOP" or "&2&lITEM SHOP" or "&e&lITEM SHOP"
- cancel event
- open chest with 3 rows named "&8Item shop" to player
- wait 3 ticks
- format slot 10 of player with chain boots named "&aArmor" with lore "&8Available:|| &8- &7Chainmail Boots|| &8- &7Chainmail Leggings|| &8- &7Iron Boots|| &8- &7Iron Leggings|| &8- &7Diamond Boots|| &8- &7Diamond Leggings||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show armor"]
- format slot 11 of player with golden sword named "&aGuns" with lore "&8Available:|| &8- &7Wooden Sword|| &8- &7Stone Sword|| &8- &7Iron Sword|| &8- &7Diamond Sword|| &8- &7Stick &8(Knocback II&8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show guns"]
- format slot 12 of player with sandstone named "&aBlocks" with lore "&8Available:|| &8- &7Wool|| &8- &7Sandstone|| &8- &7End Stone|| &8- &7Ladder|| &8- &7Oak Wood Planks|| &8- &7Obsdian||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show blocks"]
- format slot 13 of player with bow named "&aRanged" with lore "&8Available:|| &8- &7Arrow|| &8- &7Bow|| &8- &7Bow &8(&7Power I&8)|| &8- &7Bow &8(&7Power I&8, &7Punch I &8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show ranged"]
- format slot 14 of player with stone pickaxe named "&aTools" with lore "&8Available:|| &8- &7Shears|| &8- &7Stone Pickaxe &8(&7Efficiency II&8)|| &8- &7Iron Pickaxe &8(&7Efficiency II&8)|| &8- &7Diamond Pickaxe &8(&7Efficiency II&8)|| &8- &7Diamond Axe &8(&7Efficiency II&8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show tools"]
- format slot 15 of player with water bottle named "&aPotions" with lore "&8Available:|| &8- &7Speed Potion II &8(&745 Seconds&8)|| &8- &7Jump Potion V &8(&745 Seconds&8)|| &8- &7Invisibility Potion &8(&730 Seconds&8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show potions"]
- format slot 16 of player with golden apple named "&aUtilis" with lore "&8Available:|| &8- &7Golden Apple|| &8- &7Iron Golem Egg|| &8- &7Fireball|| &8- &7TNT|| &8- &7Ender Pearl|| &8- &7Water Bucket|| &8- &7Freeze Player &8(&710 Seconds&8)||&eClick to browse!" to run [make player execute command "/bedwars shopbed show utils"]
- on right click on entity:
- name of clicked entity contains "&b&lCLICK TO UPGRADES" or "&c&lCLICK TO UPGRADES" or "&e&lCLICK TO UPGRADES" or "&2&lCLICK TO UPGRADES"
- cancel event
- make player execute command "upgrades4798 "
- stop
- command /upgrades4798 [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- open chest with 3 rows named "&8Upgrades" to player
- wait 3 ticks
- format slot 10 of player with furnace named "&cMore Items" with lore "&7Increses the spawn rate of iron||&7and gold by 100 porcent||&f||&7Cost: &b 8 Diamond||&eClick to purchase!" to run [make player execute command "/upgrades4798 items"]
- format slot 11 of player with diamond pickaxe named "&cHaste Mine" with lore "&7All player on your team||&7permanenty haste mine I||&f||&7Cost: &b 4 Diamond||&eClick to purchase!" to run [make player execute command "/upgrades4798 haste"]
- format slot 12 of player with golden sword named "&cSharpness Sword" with lore "&7Your team gets Sharpness I ||&7on all swords.||&f||&7Cost: &b 8 Diamond||&eClick to purchase!" to run [make player execute command "/upgrades4798 sharpness"]
- format slot 13 of player with iron chestplate named "&cMore Protection I" with lore "&7Your team gets Protection I ||&7on all armors||&f||&7Cost: &b 5 Diamond||&eClick to purchase!" to run [make player execute command "/upgrades4798 protection"]
- format slot 14 of player with sugar named "&cSpeed Respawn" with lore "&7Your team gets 3 seconds on death ||&7in the respawn||&f||&7Cost: &b 10 Emerald||&eClick to purchase!" to run [make player execute command "/upgrades4798 respawn"]
- if arg 1 is "items":
- if player has 8 diamond:
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.More.Items.Red} is not set:
- set {BedWars.More.Items.Red} to true
- send "&c%player% &6Upgrade more items in your base!"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.More.Items.Blue} is not set:
- set {BedWars.More.Items.Blue} to true
- send "&c%player% &6Upgrade more items in your base!"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.More.Items.Yellow} is not set:
- set {BedWars.More.Items.Yellow} to true
- send "&c%player% &6Upgrade more items in your base!"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.More.Items.Green} is not set:
- set {BedWars.More.Items.Green} to true
- send "&c%player% &6Upgrade more items in your base!"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- else:
- send "%{NoDiamond}%"
- close player's inventory
- if arg 1 is "haste":
- if player has 4 diamond:
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.Haste.Red} is not set:
- set {BedWars.Haste.Red} to true
- send "&c%player% &6Upgrade Haste mine"
- loop {BedWars.PreRed::*}:
- apply potion of haste of tier 1 to {BedWars.PreRed::*} for 99999 seconds
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Haste.Blue} is not set:
- set {BedWars.Haste.Blue} to true
- send "&c%player% &6Upgrade Haste mine"
- loop {BedWars.TeamBlue::*}:
- apply potion of haste of tier 1 to {BedWars.TeamBlue::*} for 99999 seconds
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Haste.Yellow} is not set:
- set {BedWars.Haste.Yellow} to true
- send "&c%player% &6Upgrade Haste mine"
- loop {BedWars.TeamYellow::*}:
- apply potion of haste of tier 1 to {BedWars.TeamYellow::*} for 99999 seconds
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Haste.Green} is not set:
- set {BedWars.Haste.Green} to true
- send "&c%player% &6Upgrade Haste mine"
- loop {BedWars.TeamGreen::*}:
- apply potion of haste of tier 1 to {BedWars.TeamGreen::*} for 99999 seconds
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- else:
- send "%{NoDiamond}%"
- close player's inventory
- if arg 1 is "sharpness":
- if player has 8 diamond:
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.More.Items.Red} is not set:
- set {BedWars.Sharpness.Red} to true
- send "&c%player% &6Upgrade Sharpness I"
- loop all players:
- loop {BedWars.PreRed::*}:
- if loop-player's inventory contains wooden sword:
- remove wooden sword from loop-player's inventory
- give wooden sword of sharpness 1 named "&b" to loop-player
- if loop-player's inventory contains stone sword:
- remove stone sword from loop-player's inventory
- give stone sword of sharpness 1 named "&b" to loop-player
- if loop-player's inventory contains iron sword:
- remove iron sword from loop-player's inventory
- give iron sword of sharpness 1 named "&b" to loop-player
- if loop-player's inventory contains diamond sword:
- remove diamond sword from loop-player's inventory
- give diamond sword of sharpness 1 named "&b" to loop-player
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Sharpness.Blue} is not set:
- set {BedWars.Sharpness.Blue} to true
- send "&c%player% &6Upgrade Sharpness I"
- loop all players:
- loop {BedWars.TeamBlue::*}:
- if loop-player's inventory contains wooden sword:
- remove wooden sword from loop-player's inventory
- give wooden sword of sharpness 1 named "&b" to loop-player
- if loop-player's inventory contains stone sword:
- remove stone sword from loop-player's inventory
- give stone sword of sharpness 1 named "&b" to loop-player
- if loop-player's inventory contains iron sword:
- remove iron sword from loop-player's inventory
- give iron sword of sharpness 1 named "&b" to loop-player
- if loop-player's inventory contains diamond sword:
- remove diamond sword from loop-player's inventory
- give diamond sword of sharpness 1 named "&b" to loop-player
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Sharpness.Yellow} is not set:
- set {BedWars.Sharpness.Yellow} to true
- send "&c%player% &6Upgrade Sharpness I"
- loop all players:
- loop {BedWars.TeamYellow::*}:
- if loop-player's inventory contains wooden sword:
- remove wooden sword from loop-player's inventory
- give wooden sword of sharpness 1 to loop-player
- if loop-player's inventory contains stone sword:
- remove stone sword from loop-player's inventory
- give stone sword of sharpness 1 to loop-player
- if loop-player's inventory contains iron sword:
- remove iron sword from loop-player's inventory
- give iron sword of sharpness 1 to loop-player
- if loop-player's inventory contains diamond sword:
- remove diamond sword from loop-player's inventory
- give diamond sword of sharpness 1 to loop-player
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Sharpness.Green} is not set:
- set {BedWars.Sharpness.Green} to true
- send "&c%player% &6Upgrade Sharpness I"
- loop all players:
- loop {BedWars.TeamGreen::*}:
- if loop-player's inventory contains wooden sword:
- remove wooden sword from loop-player's inventory
- give wooden sword of sharpness 1 to loop-player
- if loop-player's inventory contains stone sword:
- remove stone sword from loop-player's inventory
- give stone sword of sharpness 1 to loop-player
- if loop-player's inventory contains iron sword:
- remove iron sword from loop-player's inventory
- give iron sword of sharpness 1 to loop-player
- if loop-player's inventory contains diamond sword:
- remove diamond sword from loop-player's inventory
- give diamond sword of sharpness 1 to loop-player
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- else:
- send "%{NoDiamond}%"
- close player's inventory
- if arg 1 is "protection":
- if player has 8 diamond:
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.Protection.Red} is not set:
- set {BedWars.Protection.Red} to true
- send "&c%player% &6Upgrade More Protection I"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Protection.Blue} is not set:
- set {BedWars.Protection.Blue} to true
- send "&c%player% &6Upgrade More Protection I"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Protection.Yellow} is not set:
- set {BedWars.Protection.Yellow} to true
- send "&c%player% &6Upgrade More Protection I"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Protection.Green} is not set:
- set {BedWars.Protection.Green} to true
- send "&c%player% &6Upgrade More Protection I"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- else:
- send "&cDont have enought diamond"
- close player's inventory
- if arg 1 is "respawn":
- if player has 10 emerald:
- if {BedWars.PlayerTeam.%player%} is "Red":
- if {BedWars.Respawn.Red} is not set:
- set {BedWars.Respawn.Red} to true
- send "&c%player% &6Upgrade More speed respawn"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Blue":
- if {BedWars.Respawn.Blue} is not set:
- set {BedWars.Respawn.Blue} to true
- send "%{AlredyPurchase}%"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- if {BedWars.Respawn.Yellow} is not set:
- set {BedWars.Respawn.Yellow} to true
- send "&c%player% &6Upgrade More speed respawn"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- if {BedWars.PlayerTeam.%player%} is "Green":
- if {BedWars.Respawn.Green} is not set:
- set {BedWars.Respawn.Green} to true
- send "&c%player% &6Upgrade More speed respawn"
- close player's inventory
- else:
- send "%{AlredyPurchase}%"
- else:
- send "%{NoEmerald}%"
- close player's inventory
- on damage of villager:
- cancel event
- on chat:
- if {BedWars.InGame} is true:
- if {BedWars.PlayerTeam.%player%} is "Red":
- send "&4[RED] &f%player% : &7%message%" to {BedWars.PreRed::*}
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Blue":
- send "&3[BLUE] &f%player% : &7%message%" to {BedWars.TeamBlue::*}
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Green":
- send "&2[GREEN] &f%player% : &7%message%" to {BedWars.TeamGreen::*}
- cancel event
- if {BedWars.PlayerTeam.%player%} is "Yellow":
- send "&E[YELLOW] &f%player% : &7%message%" to {BedWars.TeamYellow::*}
- cancel event
- on rightclick with diamond axe:
- if name of tool is "&7&lSelection the arena &bRight click POS1 . Left Click POS2":
- cancel event
- set {Pos1.Skywars.Arena} to location of clicked block
- send "&bFist position set to &a%{Pos1.Skywars.Arena}%" to player
- stop
- on leftclick with diamond axe:
- if name of tool is "&7&lSelection the arena &bRight click POS1 . Left Click POS2":
- cancel event
- set {Pos2.Skywars.Arena} to location of clicked block
- send "&bSecond position set to &a%{Pos2.Skywars.Arena}%" to player
- stop
- command /shop4798:
- trigger:
- open chest with 3 rows named "&8Item shop" to player
- wait 3 ticks
- format slot 10 of player with chain boots named "&aArmor" with lore "&8Available:|| &8- &7Chainmail Boots|| &8- &7Chainmail Leggings|| &8- &7Iron Boots|| &8- &7Iron Leggings|| &8- &7Diamond Boots|| &8- &7Diamond Leggings||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show armor"]
- format slot 11 of player with golden sword named "&aGuns" with lore "&8Available:|| &8- &7Wooden Sword|| &8- &7Stone Sword|| &8- &7Iron Sword|| &8- &7Diamond Sword|| &8- &7Stick &8(Knocback II&8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show guns"]
- format slot 12 of player with sandstone named "&aBlocks" with lore "&8Available:|| &8- &7Wool|| &8- &7Sandstone|| &8- &7End Stone|| &8- &7Ladder|| &8- &7Oak Wood Planks|| &8- &7Obsdian||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show blocks"]
- format slot 13 of player with bow named "&aRanged" with lore "&8Available:|| &8- &7Arrow|| &8- &7Bow|| &8- &7Bow &8(&7Power I&8)|| &8- &7Bow &8(&7Power I&8, &7Punch I &8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show ranged"]
- format slot 14 of player with stone pickaxe named "&aTools" with lore "&8Available:|| &8- &7Shears|| &8- &7Stone Pickaxe &8(&7Efficiency II&8)|| &8- &7Iron Pickaxe &8(&7Efficiency II&8)|| &8- &7Diamond Pickaxe &8(&7Efficiency II&8)|| &8- &7Diamond Axe &8(&7Efficiency II&8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show tools"]
- format slot 15 of player with water bottle named "&aPotions" with lore "&8Available:|| &8- &7Speed Potion II &8(&745 Seconds&8)|| &8- &7Jump Potion V &8(&745 Seconds&8)|| &8- &7Invisibility Potion &8(&730 Seconds&8)||&f||&eClick to browse!" to run [make player execute command "/bedwars shopbed show potions"]
- format slot 16 of player with golden apple named "&aUtilis" with lore "&8Available:|| &8- &7Golden Apple|| &8- &7I|| &8- &7Fireball|| &8- &7Sponge TNT|| &8- &7Ender Pearl|| &8- &7Water Bucket|| &8- &7Freeze Player &8(&710 Seconds&8)||&eClick to browse!" to run [make player execute command "/bedwars shopbed show utils"]
- on damage of player:
- if attacker is a player:
- if {BedWars.PlayerTeam.%attacker%} is "%{BedWars.PlayerTeam.%victim%}%":
- cancel event
- on weather change to rain or thunder:
- cancel event
- on rightclick on bed:
- if {BedWars.InGame} is true:
- cancel event
- every 1.4 seconds:
- if {BedWars.InGame} is true:
- chance of 29%:
- if {BedWars.More.Items.Red} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Red}
- drop 1 gold ingot at {BedWars.TeamDrops.Red}
- else:
- drop 1 iron ingot at {BedWars.TeamDrops.Red}
- drop 1 gold ingot at {BedWars.TeamDrops.Red}
- if {BedWars.More.Items.Blue} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Blue}
- drop 1 gold ingot at {BedWars.TeamDrops.Blue}
- else:
- drop 1 iron ingot at {BedWars.TeamDrops.Blue}
- drop 1 gold ingot at {BedWars.TeamDrops.Blue}
- if {BedWars.More.Items.Green} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Green}
- drop 1 gold ingot at {BedWars.TeamDrops.Green}
- else:
- drop 1 iron ingot at {BedWars.TeamDrops.Green}
- drop 1 gold ingot at {BedWars.TeamDrops.Green}
- if {BedWars.More.Items.Yellow} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Yellow}
- drop 1 gold ingot at {BedWars.TeamDrops.Yellow}
- else:
- drop 4 iron ingot at {BedWars.TeamDrops.Yellow}
- drop 1 gold ingot at {BedWars.TeamDrops.Yellow}
- chance of 45%:
- if {BedWars.More.Items.Red} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Red}
- else:
- drop 1 iron ingot at {BedWars.TeamDrops.Red}
- drop 1 iron ingot at {BedWars.TeamDrops.Red}
- if {BedWars.More.Items.Blue} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Blue}
- drop 1 iron ingot at {BedWars.TeamDrops.Blue}
- else:
- drop 1 iron ingot at {BedWars.TeamDrops.Blue}
- drop 2 iron ingot at {BedWars.TeamDrops.Blue}
- if {BedWars.More.Items.Blue} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Yellow}
- else:
- drop 1 iron ingot at {BedWars.TeamDrops.Yellow}
- drop 1 iron ingot at {BedWars.TeamDrops.Yellow}
- if {BedWars.More.Items.Blue} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Green}
- else:
- drop 2 iron ingot at {BedWars.TeamDrops.Green}
- drop 1 iron ingot at {BedWars.TeamDrops.Green}
- chance of 40%:
- if {BedWars.More.Items.Red} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Red}
- else:
- drop 2 iron ingot at {BedWars.TeamDrops.Red}
- drop 1 gold ingot at {BedWars.TeamDrops.Red}
- if {BedWars.More.Items.Blue} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Blue}
- drop 1 iron ingot at {BedWars.TeamDrops.Blue}
- else:
- drop 2 iron ingot at {BedWars.TeamDrops.Blue}
- drop 1 gold ingot at {BedWars.TeamDrops.Blue}
- if {BedWars.More.Items.Blue} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Yellow}
- drop 1 iron ingot at {BedWars.TeamDrops.Yellow}
- else:
- drop 1 gold ingot at {BedWars.TeamDrops.Yellow}
- drop 1 iron ingot at {BedWars.TeamDrops.Yellow}
- if {BedWars.More.Items.Blue} is not set:
- drop 1 iron ingot at {BedWars.TeamDrops.Green}
- else:
- drop 1 iron ingot at {BedWars.TeamDrops.Green}
- drop 1 gold ingot at {BedWars.TeamDrops.Green}
- on load:
- if folder "plugins/BedWars" doesn't exists:
- create folder "plugins/BedWars"
- if file "plugins/BedWars/messages.yml" doesn't exists:
- create file "plugins/BedWars/messages.yml"
- wf "##==================================================================================##" to "plugins/BedWars/messages.yml"
- wf "## BEDWARS 2.0 ##" to "plugins/BedWars/messages.yml"
- wf "## BY PIANME ##" to "plugins/BedWars/messages.yml"
- wf "##==================================================================================##" to "plugins/BedWars/messages.yml"
- wf "Prefix: '&e&lBEDWARS'" to "plugins/BedWars/messages.yml"
- wf "Joined: '&a&lJoin the game'" to "plugins/BedWars/messages.yml"
- wf "GameStart: '&7Game start in '" to "plugins/BedWars/messages.yml"
- wf "Info_Line1: '&eYou must protect your bed in order to be the winner'" to "plugins/BedWars/messages.yml"
- wf "Info_Line2: '&e Like trying to break the beds of the other teams!'" to "plugins/BedWars/messages.yml"
- wf "Info_Line3: '&eIn the center are emeralds and diamonds'" to "plugins/BedWars/messages.yml"
- wf "Info_Line4: '&ewhich can give you many advantages of the others.'" to "plugins/BedWars/messages.yml"
- wf "No_EnoghtIron: '&cDont have enought iron '" to "plugins/BedWars/messages.yml"
- wf "No_EnoghtGold: '&cDont have enought gold '" to "plugins/BedWars/messages.yml"
- wf "No_EnoghtDiamond: '&cDont have enought diamond '" to "plugins/BedWars/messages.yml"
- wf "No_EnoghtEmerald: '&cDont have enought emerald '" to "plugins/BedWars/messages.yml"
- wf "ClikFast: '&cPlease dont click fast in the shop'" to "plugins/BedWars/messages.yml"
- wf "NoBreakYour: '&CYou cant destroy your bed'" to "plugins/BedWars/messages.yml"
- wf "BedRed_Destruction: '&f&lBED DESTRUCTION > &cRed Bed &7was destroyed by'" to "plugins/BedWars/messages.yml"
- wf "BedBlue_Destruction: '&f&lBED DESTRUCTION > &3Blue Bed &7was destroyed by'" to "plugins/BedWars/messages.yml"
- wf "BedYellow_Destruction: '&f&lBED DESTRUCTION > &eYelow Bed &7was destroyed by'" to "plugins/BedWars/messages.yml"
- wf "BedGreen_Destruction: '&f&lBED DESTRUCTION > &2Green Bed &7was destroyed by'" to "plugins/BedWars/messages.yml"
- wf "TitleDied: '&cYOU DIED'" to "plugins/BedWars/messages.yml"
- wf "SubTitleDied: '&eYou will respawn in'" to "plugins/BedWars/messages.yml"
- wf "Seconds: '&eseconds'" to "plugins/BedWars/messages.yml"
- wf "Deathplayer: '&7was killed by'" to "plugins/BedWars/messages.yml"
- wf "NotRespawn: '&eYou not will respawn'" to "plugins/BedWars/messages.yml"
- wf "TeamRed_Eliminated: '&f&lTEAM ELIMINATED > &CRed Team &chas been eliminated!'" to "plugins/BedWars/messages.yml"
- wf "TeamBlue_Eliminated: '&f&lTEAM ELIMINATED > &3Blue Team &chas been eliminated!'" to "plugins/BedWars/messages.yml"
- wf "TeamYellow_Eliminated: '&f&lTEAM ELIMINATED > &eYellow Team &chas been eliminated!'" to "plugins/BedWars/messages.yml"
- wf "TeamGreen_Eliminated: '&f&lTEAM ELIMINATED > &2Green Team &chas been eliminated!'" to "plugins/BedWars/messages.yml"
- wf "TeamWon_Red: '&f&lBED WARS >> &7The team &CRED &7was the winner'" to "plugins/BedWars/messages.yml"
- wf "TeamWon_Blue: '&f&lBED WARS >> &7The team &3BLUE &7was the winner'" to "plugins/BedWars/messages.yml"
- wf "TeamWon_Yellow: '&f&lBED WARS >> &7The team &eYELLOW &7was the winner'" to "plugins/BedWars/messages.yml"
- wf "TeamWon_Green: '&f&lBED WARS >> &7The team &2GREEN &7was the winner'" to "plugins/BedWars/messages.yml"
- wf "AlredyPurchase: '&6Your team has already purchased this upgrade'" to "plugins/BedWars/messages.yml"
- wf "Disconnect: '&cdisconnect!'" to "plugins/BedWars/messages.yml"
- wf "PreLobby_Scoreboard_Title: '&e&lBEDWARS'" "plugins/BedWars/messages.yml"
- wf "PreLobby_Scoreboard_Line1: '&fMap: &aAngel'" "plugins/BedWars/messages.yml"
- wf "PreLobby_Scoreboard_Line2: '&fPlayers: &a'" "plugins/BedWars/messages.yml"
- wf "PreLobby_Scoreboard_Waiting: '&fWaiting..'" to "plugins/BedWars/messages.yml"
- wf "PreLobby_Scoreboard_Started: '&fStarting..'" to "plugins/BedWars/messages.yml"
- wf "PreLobby_Scoreboard_line3: '&fServer: &aBed01'" to "plugins/BedWars/messages.yml"
- wf "PreLobby_Scoreboard_line4: '&epianme.es.un.crack'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Title: '&e&lBEDWARS'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Diamond: '&fDiamond Upgrade:'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Emerald: '&fEmerald Upgrade:'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Maxed: '&fDiamond Maxed:'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Red: '&c&lR &fRed:'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Blue: '&3&lB &fBlue:'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Yellow: '&e&lY &fYellow:'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_Green: '&2&lG &fGreen:'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_YourKils: '&fYour kills: &a'" to "plugins/BedWars/messages.yml"
- wf "Game_Scoreboard_IP: '&epianme.es.un.crack'" to "plugins/BedWars/messages.yml"
- if file "plugins/BedWars/config.yml" doesn't exists:
- create file "plugins/BedWars/config.yml"
- wf "##==================================================================================##" to "plugins/BedWars/config.yml"
- wf "## BEDWARS 2.0 ##" to "plugins/BedWars/config.yml"
- wf "## BY PIANME ##" to "plugins/BedWars/config.yml"
- wf "##==================================================================================##" to "plugins/BedWars/config.yml"
- wf "BungeeServer: 'Lobby'" to "plugins/BedWars/config.yml"
- wf "## MYSQL ##" to "plugins/BedWars/config.yml"
- wf "MYSQL: 'false'" to "plugins/BedWars/config.yml"
- wf "host: 'localhost'" to "plugins/BedWars/config.yml"
- wf "port: '3306'" to "plugins/BedWars/config.yml"
- wf "user: 'root'" to "plugins/BedWars/config.yml"
- wf "password: 'tupassword'" to "plugins/BedWars/config.yml"
- wf "database: 'bedwars'" to "plugins/BedWars/config.yml"
- wait 3 ticks
- set {Prefix} to coloured value "Prefix" get of "plugins/BedWars/messages.yml"
- set {Joined} to coloured value "Joined" get of "plugins/BedWars/messages.yml"
- set {GameStart} to coloured value "GameStart" get of "plugins/BedWars/messages.yml"
- set {Line1} to coloured value "Info_Line1" get of "plugins/BedWars/messages.yml"
- set {Line2} to coloured value "Info_Line2" get of "plugins/BedWars/messages.yml"
- set {Line3} to coloured value "Info_Line3" get of "plugins/BedWars/messages.yml"
- set {Line4} to coloured value "Info_Line4" get of "plugins/BedWars/messages.yml"
- set {NoIron} to coloured value "No_EnoghtIron" get of "plugins/BedWars/messages.yml"
- set {NoGold} to coloured value "No_EnoghGold" get of "plugins/BedWars/messages.yml"
- set {NoDiamond} to coloured value "No_EnoghtDiamond" get of "plugins/BedWars/messages.yml"
- set {NoEmerald} to coloured value "No_EnoghtEmerald" get of "plugins/BedWars/messages.yml"
- set {Click} to coloured value "ClikFast" get of "plugins/BedWars/messages.yml"
- set {deathplayer} to coloured value "Deathplayer" get of "plugins/BedWars/messages.yml"
- set {NobreakBed} to coloured value "NoBreakYour" get of "plugins/BedWars/messages.yml"
- set {BedDesRed} to coloured value "BedRed_Destruction" get of "plugins/BedWars/messages.yml"
- set {BedDesBlue} to coloured value "BedBlue_Destruction" get of "plugins/BedWars/messages.yml"
- set {BedDesYellow} to coloured value "BedYellow_Destruction" get of "plugins/BedWars/messages.yml"
- set {BedDesGreen} to coloured value "BedGreen_Destruction" get of "plugins/BedWars/messages.yml"
- set {TitleDied} to coloured value "TitleDied" get of "plugins/BedWars/messages.yml"
- set {SubTitleDied} to coloured value "SubTitleDied" get of "plugins/BedWars/messages.yml"
- set {Msgseconds} to coloured value "seconds" get of "plugins/BedWars/messages.yml"
- set {NotRespawn} to coloured value "NotRespawn" get of "plugins/BedWars/messages.yml"
- set {RedEliminated} to coloured value "TeamRed_Eliminated" get of "plugins/BedWars/messages.yml"
- set {BlueEliminated} to coloured value "TeamBlue_Eliminated" get of "plugins/BedWars/messages.yml"
- set {YellowEliminated} to coloured value "TeamYellow_Eliminated" get of "plugins/BedWars/messages.yml"
- set {GreenEliminated} to coloured value "TeamGreen_Eliminated" get of "plugins/BedWars/messages.yml"
- set {RedWon} to coloured value "TeamWon_Red" get of "plugins/BedWars/messages.yml"
- set {BlueWon} to coloured value "TeamWon_Blue" get of "plugins/BedWars/messages.yml"
- set {YellowWon} to coloured value "TeamWon_Yellow" get of "plugins/BedWars/messages.yml"
- set {GreenWon} to coloured value "TeamWon_Green" get of "plugins/BedWars/messages.yml"
- set {AlredyPurchase} to coloured value "AlredyPurchase" get of "plugins/BedWars/messages.yml"
- set {Disconnect} to coloured value "Disconnect" get of "plugins/BedWars/messages.yml"
- set {ScorePre1} to coloured value "PreLobby_Scoreboard_Title" get of "plugins/BedWars/messages.yml"
- set {ScorePre2} to coloured value "PreLobby_Scoreboard_Line1" get of "plugins/BedWars/messages.yml"
- set {ScorePre3} to coloured value "PreLobby_Scoreboard_Line2" get of "plugins/BedWars/messages.yml"
- set {ScorePre4} to coloured value "PreLobby_Scoreboard_Waiting" get of "plugins/BedWars/messages.yml"
- set {ScorePre5} to coloured value "PreLobby_Scoreboard_Started" get of "plugins/BedWars/messages.yml"
- set {ScorePre6} to coloured value "PreLobby_Scoreboard_line3" get of "plugins/BedWars/messages.yml"
- set {ScorePre7} to coloured value "PreLobby_Scoreboard_line4" get of "plugins/BedWars/messages.yml"
- set {ScoreGame1} to coloured value "Game_Scoreboard_Title" get of "plugins/BedWars/messages.yml"
- set {ScoreGame2} to coloured value "Game_Scoreboard_Diamond" get of "plugins/BedWars/messages.yml"
- set {ScoreGame3} to coloured value "Game_Scoreboard_Emerald" get of "plugins/BedWars/messages.yml"
- set {ScoreGame4} to coloured value "Game_Scoreboard_Maxed" get of "plugins/BedWars/messages.yml"
- set {ScoreGame5} to coloured value "Game_Scoreboard_Red" get of "plugins/BedWars/messages.yml"
- set {ScoreGame6} to coloured value "Game_Scoreboard_Blue" get of "plugins/BedWars/messages.yml"
- set {ScoreGame7} to coloured value "Game_Scoreboard_Yellow" get of "plugins/BedWars/messages.yml"
- set {ScoreGame8} to coloured value "Game_Scoreboard_Green" get of "plugins/BedWars/messages.yml"
- set {ScoreGame9} to coloured value "Game_Scoreboard_YourKils" get of "plugins/BedWars/messages.yml"
- set {ScoreGame10} to coloured value "Game_Scoreboard_IP" get of "plugins/BedWars/messages.yml"
- set {Bungeserver} to value "BungeeServer" get of "plugins/BedWars/config.yml" parsed as text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement