Tickrate API
Tickrate API is a library mod created for my own modifications. Development was inspired by the well-known "Tickrate Changer" mod by Guichaguri. It's important to note that this library has no relation to the /tick command that appeared in Minecraft version 1.20.3 and later — work on Tickrate API began long before this feature was introduced into the game.
Core Features
For mod developers, the TickrateUtil#setTickrate function is available to change the update frequency of game entities. Users can utilize the in-game command /setTickrate <entity> <tickrate> to manage the update speed of any objects in the world.
Time Stop System
The module includes a special time freezing system. Use TickrateUtil#stopOrUnstopTime to completely stop time across an entire dimension. Through TickrateUtil#excludeOrIncludeEntity, you can exclude specific entities from being affected by time stop — they will continue to function normally while everything else remains frozen.
Command Usage Examples
/setTickrate @e[type=minecraft:warden] 100— Will set the update frequency of the hostile mob "Warden" to 100 units/setTickrate @e[type=minecraft:warden]— Will reset the Warden's update speed to the standard value (20 units)