player_enter.mcfunction 609 B

123456789101112131415161718192021
  1. # 对单个玩家的处理(如果玩家中途加入就会执行此函数)
  2. title @s clear
  3. title @s actionbar ""
  4. # 显示 Title
  5. title @s times 5 53 2
  6. title @s subtitle ""
  7. execute if score $round mem matches ..4 run title @s title ["第 ",{"score": {"objective": "mem","name": "$round"}},"/5 轮"]
  8. execute if score $round mem matches 5 run title @s title {"text":"最终轮","color":"gold"}
  9. # 状态效果
  10. effect clear @s
  11. effect give @s saturation 1000000 0 true
  12. effect give @s blindness 1000000 0 true
  13. # 音效
  14. execute at @s run function lib:sounds/levelup
  15. # 自由旁观
  16. gamemode spectator @s
  17. spectate