learning score boards
not sure if its supposed to be eat_golden_apple or eatgoldenapple
# Execute commands if a player has eaten a golden apple
execute as @a[scores={EatGoldenApple=1..}] run function randombiomechanger:on_eat
# Reset the scoreboard for players who have eaten a golden apple
scoreboard players set @a EatGoldenApple 0
Continue to help post