
# -> Spoil hotbar food
execute if items entity @s hotbar.0 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.0 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.0 overly_realistic:food/food_spoil
execute if items entity @s hotbar.1 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.1 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.1 overly_realistic:food/food_spoil
execute if items entity @s hotbar.2 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.2 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.2 overly_realistic:food/food_spoil
execute if items entity @s hotbar.3 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.3 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.3 overly_realistic:food/food_spoil
execute if items entity @s hotbar.4 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.4 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.4 overly_realistic:food/food_spoil
execute if items entity @s hotbar.5 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.5 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.5 overly_realistic:food/food_spoil
execute if items entity @s hotbar.6 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.6 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.6 overly_realistic:food/food_spoil
execute if items entity @s hotbar.7 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.7 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.7 overly_realistic:food/food_spoil
execute if items entity @s hotbar.8 #overly_realistic:consumables/all_physical_foods unless items entity @s hotbar.8 *[custom_data~{or_no_edit:1b}] run item modify entity @s hotbar.8 overly_realistic:food/food_spoil
