2
0

golden_apple.mcfunction 441 B

123456789
  1. # 去除进度
  2. advancement revoke @s only item:special/consume_golden_apple
  3. # 计算生命值
  4. execute if score $state mem matches 1.. if score @s mini_heart matches 1.. run scoreboard players add @s mini_heart 1
  5. # 去除buff
  6. execute if score $state mem matches 1.. if score @s mini_heart matches 1.. run effect clear @s absorption
  7. execute if score $state mem matches 1.. if score @s mini_heart matches 1.. run effect clear @s regeneration