# 20 sec
scoreboard players add @s food_craving 400

function rng:percentage

execute if score out rng matches ..20 run give @s golden_carrot
execute if score out rng matches 21..39 run give @s cooked_beef
execute if score out rng matches 40..69 run give @s apple
execute if score out rng matches 70..100 run give @s bread

advancement revoke @s only items:endless_food_crate
