Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {frosted::%player%} = "False"
- command /frosted:
- trigger:
- if {frostedgame::started} is "True":
- send "&b&lFrosted &8&l» &7The game is already running, please wait"
- stop
- if {frosted::%player%} is "True":
- set {frosted::%player%} to "False"
- remove 1 from {frosted}
- set the player's tablist name to "&7%player%"
- remove player from {frosted::list}
- broadcast "&b&lFrosted &8&l» &b%player% &7has left the queue (%{frosted}%/12)"
- stop
- if {frosted::%player%} is "False":
- set {frosted::%player%} to "True"
- add 1 to {frosted}
- set the player's tablist name to "&e%player%"
- add player to {frosted::list}
- broadcast "&b&lFrosted &8&l» &b%player% &7has joined the queue (%{frosted}%/12)"
- if {frosted} is more than 1:
- loop players:
- if {frosted::%loop-player%} is "True":
- wait 1 second
- if {frosted::%loop-player%} is "True":
- send player title "&b&lFrosted" with subtitle "&7Game starting in 10 seconds" for 2 seconds
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 10 seconds" for 2 seconds
- wait 5 seconds
- if {frosted::%loop-player%} is "True":
- send player title "&b&lFrosted" with subtitle "&7Game starting in 5 seconds" for 1 second
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 5 seconds" for 1 second
- wait 1 second
- if {frosted::%loop-player%} is "True":
- send player title "&b&lFrosted" with subtitle "&7Game starting in 4 seconds" for 1 second
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 4 seconds" for 1 second
- wait 1 second
- if {frosted::%loop-player%} is "True":
- send player title "&b&lFrosted" with subtitle "&7Game starting in 3 seconds" for 1 second
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 3 seconds" for 1 second
- wait 1 second
- if {frosted::%loop-player%} is "True":
- send player title "&b&lFrosted" with subtitle "&7Game starting in 2 seconds" for 1 second
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 2 seconds" for 1 second
- wait 1 second
- if {frosted::%loop-player%} is "True":
- send player title "&b&lFrosted" with subtitle "&7Game starting in 1 second" for 1 second
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 1 second" for 1 second
- wait 1 second
- if {frosted::%loop-player%} is "True":
- set {frostedhealth::%player%} to 5
- set {frostedlives::%player%} to 5
- set {frostedhealth::%loop-player%} to 5
- set {frostedlives::%loop-player%} to 5
- set the loop-player's tablist name to "&b%player% &f%{frostedlives::%player%}%"
- set the player's tablist name to "&b%player% &f%{frostedlives::%player%}%"
- set {_loc} to a random element out of {frosted::spawns::*}
- teleport player to {_loc}
- teleport loop-player to {_loc}
- set slot 0 of player's inventory to 1 slimeball of knockback 2 named "&b&lFrosted &8&l» &7Default Kit"
- set slot 0 of loop-player's inventory to 1 slimeball of knockback 2 named "&b&lFrosted &8&l» &7Default Kit"
- send player title "&b&lFrosted" with subtitle "&7The game has started" for 2 seconds
- send loop-player title "&b&lFrosted" with subtitle "&7The game has started" for 2 seconds
- set {frostedgame::started} to "True"
- set {frostedingame::%player%} to "True"
- set {frostedingame::%loop-player%} to "True"
- stop
- on rightclick on a sign:
- if line 2 of event-block is "&9&lFrosted":
- make player execute command "/frosted"
- set line 3 of event-block to "&0%{frosted}% queued"
- every second:
- loop all players:
- if {frostedingame::%loop-player%} is "True":
- set the loop-player's tablist name to "&b%loop-player% &f%{frostedlives::%loop-player%}%"
- if {frosted} is equal to 0:
- if {frostedgame::started} is "True":
- broadcast "&b&lFrosted &8&l» &7The game has ended, please play again"
- set {frostedhealth::%loop-player%} to 5
- set {frostedgame::started} to "False"
- set {frostedlives::%loop-player%} to 5
- set {frostedingame::%loop-player%} to "False"
- remove 1 slimeball named "&b&lFrosted &8&l» &7Default Kit" from loop-player
- set {frosted::%loop-player%} to "False"
- set the loop-player's tablist name to "&7%loop-player%"
- delete {frosted::list}
- teleport loop-player to {spawn}
- delete {frosted}
- stop
- every second:
- loop all players:
- if {frostedingame::%loop-player%} is "True":
- If block below loop-player is bedrock:
- remove 1 from {frostedhealth::%loop-player%}
- if {frostedlives::%loop-player%} is equal to 0:
- send "&b&lFrosted &8&l» &7You have died" to loop-player
- set {frostedhealth::%loop-player%} to 5
- set {frostedlives::%loop-player%} to 5
- set {ingame::%loop-player%} to "False"
- set {frostedfrosted::%loop-player%} to "False"
- set the loop-player's tablist name to "&7%loop-player%"
- remove loop-player from {frosted::list}
- remove 1 from {frosted}
- teleport loop-player to {spawn}
- if {frostedhealth::%loop-player%} is equal to 0:
- send "&b&lFrosted &8&l» &7You have lost 1 life" to loop-player
- set {frostedhealth::%loop-player%} to 5
- remove 1 from {frostedlives::%loop-player%}
- set {_loc} to a random element out of {frosted::spawns::*}
- teleport loop-player to {_loc}
- every tick:
- loop all players:
- if {frostedingame::%loop-player%} is "True":
- set action bar of loop-player to "&b&lHealth %{frostedhealth::%loop-player%}% "
- every second:
- loop all players:
- if {frostedingame::%loop-player%} is "True":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&7 &b&l&nFrosted"
- set score "&9" in sidebar of loop-player to 6
- set score "&7Players: &f%{frosted}%" in sidebar of loop-player to 5
- set score "&7Health: &f%{frostedhealth::%loop-player%}%" in sidebar of loop-player to 4
- set score "&a" in sidebar of loop-player to 3
- set score "&7Lives: &f%{frostedlives::%loop-player%}%" in sidebar of loop-player to 2
- set score "&6" in sidebar of loop-player to 1
- every second:
- loop all players:
- if {frostedingame::%loop-player%} is "False":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&7 &b&l&nLobby"
- set score "&a" in sidebar of loop-player to 3
- set score "&7Online: &f%number of all players%" in sidebar of loop-player to 2
- set score "&6" in sidebar of loop-player to 1
- on damage:
- if {frostedingame::%attacker%} is "True":
- stop
- if {frostedingame::%attacker%} is "False":
- cancel event
- send "&b&lPvP &8&l» &7You cannot pvp when you are not in a game" to attacker
- stop
- command /setspawnpoints-frosted:
- trigger:
- add location of player to {frosted::spawns::*}
- send "&b&lFrosted &8&l» &7Successfully set a spawn point"
- command /list:
- trigger:
- send "%{frosted}%"
- command /resetqueue:
- trigger:
- loop all players:
- remove 1 slimeball named "&b&lFrosted &8&l» &7Default Kit" from loop-player
- remove 1 slimeball named "&b&lFrosted &8&l» &7Default Kit" from player
- set {frostedgame::started} to "False"
- set {frosted::%loop-player%} to "False"
- set {frostedingame::%loop-player%} to "False"
- set {frosted} to 0
- options:
- databasePrefix: jdogdatabase_
- nopermission: &cNo Permission.
- version: 1.0.0
- on any movement:
- if {frostedingame::%player%} is "True":
- if block at location of player is water:
- stop
- if block 1 above player is water:
- stop
- if block 2 above player is water:
- stop
- if block 3 above player is water:
- stop
- if block 1 below player is air:
- stop
- loop blocks in radius 2 of player:
- if loop-block is water:
- set loop-block to ice
- add location of loop-block to {blocks%player%::*}
- loop blocks in radius 2 of player:
- if loop-block is ice:
- if block 1 above loop-block is ice:
- set loop-block to water
- if block 2 above loop-block is ice:
- set loop-block to water
- set {loc%player%} to location of player
- stop
- wait 2 seconds
- loop {blocks%player%::*}:
- loop all entities in radius 3 of loop-value-1:
- if loop-entity is player:
- stop
- set block at location of loop-value to water
- every 3 seconds:
- loop all players:
- if {blocks%loop-player%::*} is set:
- loop {blocks%loop-player%::*}:
- set {loc2%loop-player%} to location of loop-value-2
- if distance between {loc%loop-player%} and {loc2%loop-player%} is more than 2:
- chance of 75%:
- set block at location of loop-value-2 to water
- remove location of loop-value-2 from {blocks%loop-player%::*}
Advertisement
Add Comment
Please, Sign In to add comment