start_gameparty.mcfunction 559 B

12345678910111213141516171819
  1. # 开始小游戏模式
  2. # 设置旁观
  3. tag @a remove watcher
  4. tag @a[tag=!hub_gameparty] add watcher
  5. # 设置数据
  6. scoreboard players reset * total_score
  7. scoreboard players set @a[tag=!watcher] total_score 0
  8. scoreboard players reset * total_score_disp
  9. scoreboard players set @a[tag=!watcher] total_score_disp 0
  10. scoreboard players set $round mem 1
  11. scoreboard players set $game_type mem 1
  12. scoreboard players add $ game_id 1
  13. scoreboard players operation @a game_id = $ game_id
  14. # 开始小游戏
  15. function lib:sounds/music/stop
  16. function ltw:state/3/state_enter