At the beginning of the events you want to loop, insert a label, and then at the end of the events you want to loop, insert the Goto Label command and reference the label you just created. For example, if you wanted to make a loop that did Action A, Action B, and Action C and then repeated the sequence over and over again, your code would look like this:
Label: 1
Action A
Action B
Action C
GOTOLabel: 1
Hopefully that helps. If not, I can give you the code I use for my day/night system, but it's a bit longer (24 minute cycle).