TimeScaleLib
TimeScaleLib is a library mod that adds advanced time scaling (bullet time) mechanics to Minecraft.
Unlike the vanilla /tick rate command, this mod only slows down non-player entities and the game world's time flow, allowing for more natural slow-motion effects while keeping player control responsive.
Features
- Independent time scaling system
- Smooth recovery transition support
- Rendering-compatible PartialTick API
- Support for applying time scaling to the movement of specified entities
- Built-in time scaling commands
Compatibility
TimeScaleLib includes compatibility support for several combat and gameplay systems.
Currently compatible with:
Known incompatible mods:
Commands
Apply Time Scale
/timescale apply <scale> [<duration>] [<transition>] [include <target>]
Applies a time scale effect to the game world.
scale: Time scale multiplier (0.0 ~ 1.0)
duration: Optional total duration in ticks. Default is -1; when set to -1, the time scale effect lasts indefinitely
transition: Optional recovery transition duration in ticks. Default is 20; when set to -1, the transition is applied throughout the entire duration of the time scale effect
target: Optional entity whose physical movement will also be affected by time scaling (typically the player). Default is null
Example:
/timescale apply 0.1 120 20
Runs at 10% time speed for 120 ticks and smoothly restores normal speed during the final 20 ticks.
Remove Time Scale
/timescale remove
Removes all active time scale effects.
API
Currently provides:
- Apply time scale
- Query current time scale
- Remove all time scales
- Access layered PartialTick values
Currently used to provide bullet time effects for ParCoolSkill.