execute if entity @a[scores={regeneration=1..}] as @a[scores={regeneration=1..}] at @s run function cartographer_custom_enchantments:loop/enchant_effects/regeneration

function cartographer_custom_enchantments:loop/3_second/reset

schedule function cartographer_custom_enchantments:loop/3_second/base 3s