game_end.mcfunction 345 B

12345678910111213
  1. # 清理残余实体
  2. kill @e[type=falling_block,tag=parkour_block]
  3. kill @e[tag=treasure_item]
  4. function mini:main/kill_entity
  5. # 结束跑酷
  6. forceload remove 1000 1000 1064 1064
  7. # 关闭节奏块
  8. scoreboard players set $tempo_enable mem 0
  9. # 计算得分
  10. execute as @a[team=playing] run scoreboard players operation @s mini_score += @s treasure