# game start
#ゲーム時間を設定する(time)にて数字を入力する
$function 001developer:battle_arena/timer/start {time:$(time)}
#画面にスタートと表示される
tellraw @a {“text”:”スタート”}
#全員がサバイバルモードに切り替わる
gamemode survival @a
clear @a[tag=!debug_player]
tp @a @s
#スポーンポイントはコマンドを実行した場所とする
setworldspawn ~ ~ ~
scoreboard objectives remove BA.Scoreboard
scoreboard objectives add BA.Scoreboard dummy “生存状況”
#name settings スコアボードに参加プレイヤーの名前を表示させる
execute if entity @a[name=akoprogramming] run scoreboard players display name akoprogramming BA.Scoreboard “ひろと”
execute if entity @a[name=MKprograming] run scoreboard players display name MKprograming BA.Scoreboard “ゆいと”
execute if entity @a[name=apgramming02] run scoreboard players display name apgramming02 BA.Scoreboard “”
execute if entity @a[name=akoprogramming03] run scoreboard players display name akoprogramming03 BA.Scoreboard “とうま”
scoreboard players display name apg05 BA.Scoreboard “せんせい”
scoreboard players display name apgramming03 BA.Scoreboard “”
#scoreboard settings
scoreboard players set @a BA.Scoreboard 1
scoreboard players display numberformat @a BA.Scoreboard fixed {“text”:”生存”,”color”:”green”}
scoreboard objectives setdisplay sidebar BA.Scoreboard