hi im making simple stamina datapack but i made it with command blocks originally

i need 2 commands to just run every few ticks and i wanna know if thast possible and how

Continue to help post