execute if score .inferno_amount const matches 100.. run scoreboard players add .inferno_amount_digit const 1
execute if score .inferno_amount const matches 100.. run scoreboard players remove .inferno_amount const 100

execute if score .inferno_amount const matches 100.. run function custom_items:armor/inferno/add_digit