Hello. I'm very new to scripting, and am having some trouble with getting a function to run every tick. Currently my code is:
import { world, system } from "@minecraft/server";
system.runInterval(() => {
ticker();
}, 1);
...
In game the ticker() function seems to only execute once when I reload the pack. Is this an error in my .runInterval() syntax or would it be a problem in the ticker() function? Thanks