pm_init.mcfunction 456 B

12345678910
  1. # 刷新对应人数的土豆
  2. function mini:hotpm/game/pm_give
  3. # 告知玩家
  4. tellraw @a ["",{"text":">> ","color":"red","bold": true},{"selector":"@a[tag=pm_holding]","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