## Repeat
The Repeat Widget repeats a given action multiple times with a tick delay.
|constructor| |
|--|--|
|String|name of the Repeat|
|child|the action to perform(required)|
|to| times to repeat(required) |
|ticks| ticks between repetitions(default = 1 tick) |
|path|where to generate a new repeat file(default = timers)|
|counter|the objective used to hold the current iteration(default = objd_repeat)|
**Example:**
```dart
Repeat("repeat1",
to: 10,
child: Log("test"),
ticks: 20
)
⇒ scoreboard players set repeat1 objd_repeat 0
⇒ function mypack:timers/repeat1
```
This would save the current iteration in a fake player repeat1 in objd_repeat and generate a schedule function:
```mcfunction
# timers/repeat1
tellraw @a [{"text":"Console > ","color":"dark_aqua"},{"text":"test"}]
scoreboard players add repeat1 objd_repeat 1
execute if score repeat1 objd_repeat matches ..10 run schedule function mypack:timers/repeat1 20t
```
This function is executed until the score becomes 11.