advancement revoke @s only svm_ep:eat/golden_heart
function svm_ep:items/golden/eat_generic

scoreboard players add @s svm_ep.health_boost 1

effect give @s[scores={svm_ep.health_boost=1}] minecraft:instant_health 1 0 true
effect give @s[scores={svm_ep.health_boost=2}] minecraft:instant_health 1 1 true
effect give @s[scores={svm_ep.health_boost=3}] minecraft:instant_health 1 2 true
effect give @s[scores={svm_ep.health_boost=4}] minecraft:instant_health 1 3 true
effect give @s[scores={svm_ep.health_boost=5}] minecraft:instant_health 1 4 true
execute at @s run playsound minecraft:block.beacon.activate master @a[distance=..30] ~ ~1 ~ 2 1.7
execute at @s run particle minecraft:end_rod ~ ~0.2 ~ 0 0 0 0.83 100
execute at @s run particle minecraft:heart ~ ~0.5 ~ 0.5 0.7 0.5 0.1 8
execute at @s anchored eyes positioned ^ ^-0.15 ^0.38 run particle minecraft:item{item:gold_ingot} ~ ~ ~ 0.05 0.05 0.05 0.08 10