
# 2,4,6 / 8,10,12 / 14,16,18 / 20

# 2,4,6 / 8,10,12 / 14

# -> Reset attributes
attribute @s movement_speed modifier remove overly_realistic:low_hunger_debuff
attribute @s attack_speed modifier remove overly_realistic:low_hunger_debuff

execute if score @s OverlyRealistic.Player.Hunger matches 15.. run \
    return fail

# -> Hunger 13-14
attribute @s[scores={OverlyRealistic.Player.Hunger=13..14}] movement_speed modifier add overly_realistic:low_hunger_debuff -0.05 add_multiplied_total
attribute @s[scores={OverlyRealistic.Player.Hunger=13..14}] attack_speed modifier add overly_realistic:low_hunger_debuff -0.05 add_multiplied_total

execute if score @s OverlyRealistic.Player.Hunger matches 13.. run \
    return fail

# -> Hunger 7-12
attribute @s[scores={OverlyRealistic.Player.Hunger=7..12}] movement_speed modifier add overly_realistic:low_hunger_debuff -0.15 add_multiplied_total
attribute @s[scores={OverlyRealistic.Player.Hunger=7..12}] attack_speed modifier add overly_realistic:low_hunger_debuff -0.15 add_multiplied_total

execute if score @s OverlyRealistic.Player.Hunger matches 8.. run \
    return fail

# -> Hunger 1-7
attribute @s[scores={OverlyRealistic.Player.Hunger=1..6}] movement_speed modifier add overly_realistic:low_hunger_debuff -0.25 add_multiplied_total
attribute @s[scores={OverlyRealistic.Player.Hunger=1..6}] attack_speed modifier add overly_realistic:low_hunger_debuff -0.25 add_multiplied_total

execute if score @s OverlyRealistic.Player.Hunger matches 1.. run \
    return fail

# -> Hunger 0
attribute @s[scores={OverlyRealistic.Player.Hunger=0}] movement_speed modifier add overly_realistic:low_hunger_debuff -0.35 add_multiplied_total
attribute @s[scores={OverlyRealistic.Player.Hunger=0}] attack_speed modifier add overly_realistic:low_hunger_debuff -0.35 add_multiplied_total
