2
0

game_end.mcfunction 302 B

123456789101112
  1. # 清理残余实体
  2. function mini:main/kill_entity
  3. tp @e[type=phantom] 1000 -100 6000
  4. kill @e[type=phantom]
  5. # 游戏结束
  6. forceload remove 1000 6000 1064 6064
  7. gamerule doDaylightCycle false
  8. # 计算得分
  9. execute as @a[team=playing] run scoreboard players operation @s mini_score = @s kill_phantom