#need an example
1 messages · Page 1 of 1 (latest)
like tick.json?
yes, you can use this function:
world.events.tick.subscribe((eventData) => {
// Your code here
});```
It will run every tick. You can also use
System.runSchedule(() => {
// Your code here
});
Remember you need to import the appropriate classes `world` & `System` for these to work.