how can i create a data pack that enchants something in your inventory every second

the picture is just an old data pack i downloaded
Continue to help post