The random tick is done here https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/level/Level.php#L1125 You can disable ticking done by pocketmine by setting chunk-ticking.per-tick in pocketmine.yml to 0, then schedule your own repeating task that does the same logic, just change the value of $i