diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index 857d954..376befd 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -242,7 +242,9 @@ command /skybattle_listspawners : send "Spawn point %loop-number%:" to player send {skybattle::arena%arg-1%::spawn_location::%loop-number%} to player - +command /spawnteam : + trigger: + spawnteam(arg-1, arg-2) function spawnteam(team: integer, spawner: integer): loop entries of team "IDList%{_team}%": @@ -250,6 +252,27 @@ function spawnteam(team: integer, spawner: integer): set loop-value's gamemode to survival # !!! POPULATE INVENTORY !!! + give loop-value iron pickaxe of efficiency 3 + if {_team} is 1: + give loop-value 64 red concrete named "§7Blocks" + if {_team} is 2: + give loop-value 64 yellow concrete named "§7Blocks" + if {_team} is 3: + give loop-value 64 red concrete named "§7Blocks" + if {_team} is 4: + give loop-value 64 lime concrete named "§7Blocks" + if {_team} is 5: + give loop-value 64 green concrete named "§7Blocks" + if {_team} is 6: + give loop-value 64 light blue concrete named "§7Blocks" + if {_team} is 7: + give loop-value 64 cyan concrete named "§7Blocks" + if {_team} is 8: + give loop-value 64 blue concrete named "§7Blocks" + if {_team} is 9: + give loop-value 64 pink concrete named "§7Blocks" + if {_team} is 10: + give loop-value 64 purple concrete named "§7Blocks" function resetteams(): loop 10 times: @@ -288,6 +311,11 @@ function init_team_names(): set {skybattle::team%loop-number%::name} to {_team%loop-number%} +on place: + #if {skybattle::game_status} is "playing": + if name of held item is "§7Blocks": + give helt item to the player + on death of player: # victim, attacker add victim's uuid to {skybattle::deadplayers::*} launch ball large coloured yellow fading to light green and black at victim's location with duration 0 @@ -317,7 +345,4 @@ on respawn: on player move: if {skybattle::stop_players} is "True": if {skybattle::gaming_players::*} contains player: - cancel event - -on food bar change: - cancel event \ No newline at end of file + cancel event \ No newline at end of file