
# -> Reset value
scoreboard players set @s OverlyRealistic.Player.Stats.ClothesDirtyness 0

# -> Set dirty armor
execute unless items entity @s armor.head pumpkin \
    unless items entity @s armor.head #skulls \
    unless items entity @s armor.head *[custom_data~{IsDirty:true}] run \
        item modify entity @s armor.head overly_realistic:armor/dirty_armor
execute unless items entity @s armor.chest *[custom_data~{IsDirty:true}] run \
    item modify entity @s armor.chest overly_realistic:armor/dirty_armor
execute unless items entity @s armor.legs *[custom_data~{IsDirty:true}] run \
    item modify entity @s armor.legs overly_realistic:armor/dirty_armor
execute unless items entity @s armor.feet *[custom_data~{IsDirty:true}] run \
    item modify entity @s armor.feet overly_realistic:armor/dirty_armor
