Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {frosted::%player%} = "False"
- command /frosted:
- trigger:
- if {game::started} is "True":
- send "&b&lFrosted &8&l» &7The game is already running, please wait"
- 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}
- send "&b&lFrosted &8&l» &7You have joined the queue (%{frosted}%/12)"
- stop
- if {frosted} is more than 1:
- loop all players:
- if {frosted::%loop-player%} is "True":
- wait 1 second
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 10 seconds" for 2 seconds
- wait 5 seconds
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 5 seconds" for 1 second
- wait 1 second
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 4 seconds" for 1 second
- wait 1 seconds
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 3 seconds" for 1 second
- wait 1 seconds
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 2 seconds" for 1 second
- wait 1 seconds
- send loop-player title "&b&lFrosted" with subtitle "&7Game starting in 1 seconds" for 1 second
- wait 1 second
- set {health::%loop-player%} to 5
- set {lives::%loop-player%} to 5
- set the loop-player's tablist name to "&b%loop-player% &f%{lives::%loop-player%}%"
- set {_loc} to a random element out of {frosted::spawns::*}
- 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"
- send loop-player title "&b&lFrosted" with subtitle "&7The game has started" for 2 seconds
- set {game::started} to "True"
- set {ingame::%loop-player%} to "True"
- 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}
- send "&b&lFrosted &8&l» &7You have left the queue (%{frosted}%/12)"
- stop
- every second:
- loop all players:
- if {ingame::%loop-player%} is "True":
- set the loop-player's tablist name to "&b%loop-player% &f%{lives::%loop-player%}%"
- if {frosted} is equal to 0:
- broadcast "&b&lFrosted &8&l» &7The game has ended, please play again"
- set {health::%loop-player%} to 5
- set {game::started} to "False"
- set {lives::%loop-player%} to 5
- set {ingame::%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 {ingame::%loop-player%} is "True":
- If block below loop-player is bedrock:
- remove 1 from {health::%loop-player%}
- if {lives::%loop-player%} is equal to 0:
- send "&b&lFrosted &8&l» &7You have died" to loop-player
- set {health::%loop-player%} to 5
- set {lives::%loop-player%} to 5
- set {ingame::%loop-player%} to "False"
- set {frosted::%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 {health::%loop-player%} is equal to 0:
- send "&b&lFrosted &8&l» &7You have lost 1 life" to loop-player
- set {health::%loop-player%} to 5
- remove 1 from {lives::%loop-player%}
- set {_loc} to a random element out of {frosted::spawns::*}
- teleport loop-player to {_loc}
- every tick:
- loop all players:
- if {ingame::%loop-player%} is "True":
- set action bar of loop-player to "&b&lHealth %{health::%loop-player%}% "
- every second:
- loop all players:
- if {ingame::%loop-player%} is "True":
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&b&lFrosted Lives"
- 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%{health::%loop-player%}%" in sidebar of loop-player to 4
- set score "&a" in sidebar of loop-player to 3
- set score "&7Lives: &f%{lives::%loop-player%}%" in sidebar of loop-player to 2
- set score "&6" in sidebar of loop-player to 1
- on damage:
- if {ingame::%attacker%} is "True":
- stop
- if {ingame::%attacker%} is "False":
- send "&b&lPvP &8&l» &7You cannot pvp when you are not in a game"
- 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:
- set {game::started} to "False"
- set {frosted::%loop-player%} to "False"
- set {imgame::%loop-player%} to "False"
- set {frosted} to 0
- options:
- databasePrefix: jdogdatabase_
- nopermission: &cNo Permission.
- version: 1.0.0
- on any movement:
- if {ingame::%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