promotional bannermobile promotional banner
header
Tickrate API avatar

Tickrate API

Install

this mod is a simple (?) library mod for my own mods
this mod is inspired from Tickrate Changer by Guichaguri
this mod is completely regardless with /tick command that introduced in 1.20.3+, and already developed before it was introduced

Usage :
for developer, use TickrateUtil#setTickrate to change tickrate of entities
for non-developer, use in-game command /setTickrate <entity> <tickrate> to manipulate any entities tickrate

Usage for Time Stop System :

for developer : 
call TickrateUtil#stopTime or TickrateUtil#unstopTime to stop or unstop time of entire dimension
call TickrateUtil#excludeEntity or TickrateUtil#includeEntity to exclude or include entities
excluded entities won't be affected by time stop

for non-developer :
/stopTickrate dimension_id exclude_entities stop_or_unstop

example for command :
/setTickrate @e[type=minecraft:warden] 100 (this will change tickrate of warden to 100)
/setTickrate @e[type=minecraft:warden] (this will reset tickrate of warden to 20)
/stopTickrate minecraft:overworld @e[type=minecraft:evoker] true (stop the tickrate of overworld and exclude every evokers)