
# -> Progress illness
scoreboard players add @s OverlyRealistic.Player.IllnessTimer 1
scoreboard players add @s[scores={OverlyRealistic.Player.WisdomStats.Healthcare=1..}] OverlyRealistic.Player.IllnessTimer 1

# -> Effects
effect give @s hunger 4 0 true

# -> If illness timer is not over max illness timer then return
execute unless score @s OverlyRealistic.Player.IllnessTimer >= @s OverlyRealistic.Player.MaxIllnessTimer run \
    return fail

# -> Function tag
function #overly_realistic:mechanics/player_illness_operations

# -> Untag player
tag @s remove OverlyRealistic.Player.IsSick
