Skip to content
1cec0ld edited this page Oct 4, 2012 · 4 revisions

Syntax: {entity}.start.{nameOfRepeat}.{frequency}.{lifetime}
Where frequency is how often it runs in ticks (20 ticks = 1 second), and lifetime is after how many repeats to terminate the repeat automatically. Leave blank for unlimited repeats.

The Repeat Event allows you to loop through a number (indefinitely or defined) of checks/routines as defined under the Repeat Event section. You can start and stop repeats via the routines in the examples. If the entity is killed, the Repeat will stop.

Example:

Command:
	- 'startrep':
		- 'sender.start.repeatthis.20'
	- 'stoprep':
		- 'sender.stop.repeatthis'

Repeat:
	- 'repeatthis':
		- 'message.entity': 'It works! Current count: %{repeat_count}'

Clone this wiki locally