2
0

tick2.mcfunction 912 B

12345678
  1. # 土豆倒计时
  2. title @a[tag=pm_holding] actionbar [{"text":"土豆爆炸: ","color":"red","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
  3. execute as @a[tag=pm_holding] at @s run title @a[tag=!pm_holding,distance=..8] actionbar [{"text":"土豆爆炸: ","color":"gold","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
  4. execute as @a[tag=pm_holding] at @s run title @a[tag=!pm_holding,distance=8..17] actionbar [{"text":"土豆爆炸: ","color":"yellow","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
  5. execute as @a[tag=pm_holding] at @s run title @a[tag=!pm_holding,distance=17..] actionbar [{"text":"土豆爆炸: ","color":"green","bold": true},{"score": { "name": "$countdown_fast","objective": "mem"}}]
  6. # 爆炸
  7. execute if score $countdown_fast mem matches 0 as @a[tag=pm_holding] at @s run function mini:hotpm/player_lose_heart