pm_init.mcfunction 515 B

123456789101112
  1. # 清理残余tag
  2. tag @a[tag=pm_hoding] remove pm_hoding
  3. # 刷新土豆
  4. execute as @a[limit=1,sort=furthest,tag=mini_running] run function mini:hotpm/pm_get
  5. # 告知玩家
  6. tellraw @a [{"text":">> ","color":"gold","bold": true},{"selector":"@a[tag=pm_hoding]","color":"yellow","bold":false},{"text":" 获得了土豆!","color":"white","bold":false}]
  7. # 土豆爆炸时间 = 5 * (存活人数 + 1)
  8. scoreboard players set $countdown mem 5
  9. execute as @a[tag=mini_running] run scoreboard players add $countdown mem 5