/tick

Jump to navigation Jump to search
This feature is exclusive to Java Edition.
 

Controls or queries the tick status of the game.

Syntax[edit | edit source]

tick query
Outputs the current ticking status and target ticking rate, with information about the tick performance, including average time per tick and percentiles of time per tick.
tick rate <rate>
Sets the target ticking rate to the specified value. The default rate is 20.0.
tick freeze
Freezes ticking. All gameplay elements are frozen, except players and any entity a player is riding.
tick unfreeze
Unfreezes ticking.
tick step [<time>]
Unfreezes ticking, runs specified amount of time, and refreezes. Only works if ticking is frozen.
tick step stop
Stops the current stepping process and refreeze the tick.
tick sprint [<time>]
Runs the game as fast as possible for the specified amount of time, ignoring the target ticking rate. At the end of the sprint, the game will resume the previous ticking status and display performance information about the tick times from sprinting.
tick sprint stop
Stops the current tick sprinting and resumes the previous ticking status.

Arguments[edit | edit source]

<rate>: float

Specifies the target rate in TPS. The default rate is 20.0 TPS.
Must be a [Float]Single-precision floating-point number (from -(2-2-23)×2127 (≈-3.4×1038) to (2-2-23)2×127 (≈3.4×1038) ). And it must be between 1.0 and 10000.0 (inclusive).

<time>: time

Specifies the number of ticks to step or sprint. Defaults to 1 game tick if not specified.
It must be a single-precision floating-point number suffixed with a unit. It must be not less than 1 gameticks. Units include:
  • d: an in-game day, 24000 gameticks;
  • s: a second, 20 gameticks;
  • t (default and omitable): a single gametick; the default unit.
The time is set to the closest integer after unit conversion to gametick. For example. .5d is same as 12000 gameticks.

Result[edit | edit source]

CommandTriggerJava Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
OtherwiseSuccessful

Output[edit | edit source]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
/tick queryJava EditionOn success11the current target ticking rate
/tick rate <rate>On success11the specified rate
/tick freezeOn success111
/tick unfreezeOn success110
/tick step [<time>]On success111
/tick step stopOn success111 if ticking is stepping; 0 if not
/tick sprint [<time>]On success111
/tick sprint stopOn success111 if ticking is sprinting; 0 if not

History[edit | edit source]

[hide]Java Edition
1.20.323w43aAdded /tick.
23w44aThe <time> parameter in the /tick step command is now optional. The default value is 1.
1.20.3-pre3The /tick query now shows "The game is running, but can't keep up with the target tick rate" when the game is lagging.

Navigation[edit | edit source]