effect give @s[tag=!eatgold10] absorption 10
effect give @s[tag=!eatgold10] instant_health 1 0 true
effect give @s[tag=!eatgold10] speed 10
effect give @s[tag=!eatgold10] strength 10
effect give @s[tag=!eatgold10] resistance 10

execute if entity @s[tag=eatgold10] run function survivalplus:tools/food/eatgold/toomuch
execute if entity @s[tag=eatgold10] at @s positioned ~ ~1.5 ~ run function survivalplus:tools/food/eatgold/barf
execute if entity @s[tag=eatgold10] run function survivalplus:tools/food/eatgold/delstat

function survivalplus:tools/food/eatgold/addstat
advancement revoke @s only survivalplus:tools/food/goldsauce