pm_init.mcfunction 493 B

12345678910111213
  1. # 刷新自己土豆
  2. function mini:hotpm/game/pm_get
  3. # 告知玩家
  4. tellraw @a ["",{"text":">> ","color":"red","bold": true},{"selector":"@s","color":"red"}," 获得了炸弹!"]
  5. # 土豆爆炸时间 = 存活人数 * 2 + 5(秒)
  6. scoreboard players set $countdown_fast mem 50
  7. execute as @a[tag=mini_running] run scoreboard players add $countdown_fast mem 20
  8. scoreboard players operation $countdown_max mem = $countdown_fast mem
  9. # 删除效果云
  10. kill @s[type=area_effect_cloud,tag=pm_boom]