enchanted_apple.mcfunction 705 B

1234567891011
  1. # 去除进度
  2. advancement revoke @s only item:special/consume_enchanted_apple
  3. # 计算生命值
  4. execute if score $state mem matches 1.. if score @s mini_heart matches 1.. run scoreboard players operation @s mini_heart += @s mini_heart
  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 fire_resistance
  8. execute if score $state mem matches 1.. if score @s mini_heart matches 1.. run effect clear @s regeneration
  9. execute if score $state mem matches 1.. if score @s mini_heart matches 1.. run effect give @s minecraft:resistance 999999 4 true