2
0

pm_init.mcfunction 472 B

1234567891011
  1. # 将土豆刷新给离自己最远的人
  2. execute at @s as @a[sort=furthest,tag=mini_running,tag=!watcher,limit=1] run function mini:hotpm/pm_get
  3. # 强制观战
  4. execute at @s as @a[gamemode=spectator,distance=..0.1] run spectate @p[tag=pm_hoding]
  5. # 土豆爆炸时间 = 5 * (存活人数 + 1)
  6. scoreboard players set $countdown mem 5
  7. execute as @a[tag=mini_running] run scoreboard players add $countdown mem 5
  8. # 删除效果云
  9. kill @s[type=area_effect_cloud,tag=pm_boom]