From 60b335c872a75e897daa3e9eef14efcd5349a18f Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Mon, 14 Nov 2022 19:47:29 +0100 Subject: [PATCH] Fixed bugs found in testing --- plugins/scripts/scripts/skybattle.sk | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index 36326e1..0ac4eb8 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -75,7 +75,8 @@ command /minigame_skybattle_start: wait 1 second set {skybattle::intro} to "True" set {skybattle::gaming_players::*}'s gamemode to spectator - teleport {skybattle::gaming_players::*} to {skybattle::introlocation} + teleport all players to {skybattle::introlocation} + #teleport {skybattle::gaming_players::*} to {skybattle::introlocation} set {skybattle::stop_players} to "True" set gamemode of {skybattle::gaming_players::*} to survival hide {skybattle::gaming_players::*} @@ -103,9 +104,9 @@ command /minigame_skybattle_start: if {skybattle::game_status} is "next": set {skybattle::gaming_players::*}'s gamemode to spectator resetborder() + if {skybattle:current_arena} is not 0: + make console execute command "/function sky:battle" loop 10 times: - if {skybattle:current_arena} is not 0: - make console execute command "/function sky:battle" clear {skybattle::IDList%loop-number%::alive_players::*} set {skybattle::IDList%loop-number%::alive_number} to 4 loop entries of team "IDList%loop-number%": @@ -220,7 +221,6 @@ command /minigame_skybattle_start: if {skybattle::game_status} is "end": send title "&4Konec hry" to all players - set {skybattle::game_on} to "False" wait 3 seconds teleport all players to {skybattle::lobbylocation} @@ -430,15 +430,15 @@ function spawnteam(team: number, spawner: number): 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" + give loop-value 64 cyan concrete# named "§7Blocks" if {_team} is 7: - give loop-value 64 cyan concrete# named# "§7Blocks" + give loop-value 64 light blue 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" + if {_team} is 10: + give loop-value 64 pink concrete# named# "§7Blocks" function resetteams(): loop 10 times: @@ -499,6 +499,10 @@ function get_team(team: text) :: text: set {_tname} to "Švestková" return {_tname} +on place of tnt: + set event-block to air + spawn primed tnt at event-location + on block place of concrete: remove 1 of event-block from player's inventory