Fixed bugs found in testing

main
Anorak_1 2022-11-14 19:47:29 +01:00
parent 22630ecb9f
commit 60b335c872
1 changed files with 12 additions and 8 deletions

View File

@ -75,7 +75,8 @@ command /minigame_skybattle_start:
wait 1 second wait 1 second
set {skybattle::intro} to "True" set {skybattle::intro} to "True"
set {skybattle::gaming_players::*}'s gamemode to spectator 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 {skybattle::stop_players} to "True"
set gamemode of {skybattle::gaming_players::*} to survival set gamemode of {skybattle::gaming_players::*} to survival
hide {skybattle::gaming_players::*} hide {skybattle::gaming_players::*}
@ -103,9 +104,9 @@ command /minigame_skybattle_start:
if {skybattle::game_status} is "next": if {skybattle::game_status} is "next":
set {skybattle::gaming_players::*}'s gamemode to spectator set {skybattle::gaming_players::*}'s gamemode to spectator
resetborder() resetborder()
loop 10 times:
if {skybattle:current_arena} is not 0: if {skybattle:current_arena} is not 0:
make console execute command "/function sky:battle" make console execute command "/function sky:battle"
loop 10 times:
clear {skybattle::IDList%loop-number%::alive_players::*} clear {skybattle::IDList%loop-number%::alive_players::*}
set {skybattle::IDList%loop-number%::alive_number} to 4 set {skybattle::IDList%loop-number%::alive_number} to 4
loop entries of team "IDList%loop-number%": loop entries of team "IDList%loop-number%":
@ -220,7 +221,6 @@ command /minigame_skybattle_start:
if {skybattle::game_status} is "end": if {skybattle::game_status} is "end":
send title "&4Konec hry" to all players send title "&4Konec hry" to all players
set {skybattle::game_on} to "False" set {skybattle::game_on} to "False"
wait 3 seconds wait 3 seconds
teleport all players to {skybattle::lobbylocation} teleport all players to {skybattle::lobbylocation}
@ -430,15 +430,15 @@ function spawnteam(team: number, spawner: number):
if {_team} is 5: if {_team} is 5:
give loop-value 64 green concrete# named "§7Blocks" give loop-value 64 green concrete# named "§7Blocks"
if {_team} is 6: 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: 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: if {_team} is 8:
give loop-value 64 blue concrete# named# "§7Blocks" give loop-value 64 blue concrete# named# "§7Blocks"
if {_team} is 9: if {_team} is 9:
give loop-value 64 pink concrete# named# "§7Blocks"
if {_team} is 10:
give loop-value 64 purple concrete# named# "§7Blocks" give loop-value 64 purple concrete# named# "§7Blocks"
if {_team} is 10:
give loop-value 64 pink concrete# named# "§7Blocks"
function resetteams(): function resetteams():
loop 10 times: loop 10 times:
@ -499,6 +499,10 @@ function get_team(team: text) :: text:
set {_tname} to "Švestková" set {_tname} to "Švestková"
return {_tname} return {_tname}
on place of tnt:
set event-block to air
spawn primed tnt at event-location
on block place of concrete: on block place of concrete:
remove 1 of event-block from player's inventory remove 1 of event-block from player's inventory