/tick
< Commands
This feature is exclusive to Java Edition.
/tick
Permission level required |
3 |
---|---|
Restrictions |
None |
{ "title": "<code>/tick</code>", "rows": [ { "field": "3", "label": "(link to Permission level article, displayed as Permission level<br>required)" }, { "field": "None", "label": "(link to Commands#Restrictions article, displayed as Restrictions)" } ], "invimages": [], "images": [] }
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.
.5d
is same as 12000 gameticks.
Result[edit | edit source]
Command | Trigger | Java Edition |
---|---|---|
Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
Otherwise | Successful |
Output[edit | edit source]
Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
---|---|---|---|---|---|
/tick query | Java Edition | On success | 1 | 1 | the current target ticking rate |
/tick rate <rate> | On success | 1 | 1 | the specified rate | |
/tick freeze | On success | 1 | 1 | 1 | |
/tick unfreeze | On success | 1 | 1 | 0 | |
/tick step [<time>] | On success | 1 | 1 | 1 | |
/tick step stop | On success | 1 | 1 | 1 if ticking is stepping; 0 if not | |
/tick sprint [<time>] | On success | 1 | 1 | 1 | |
/tick sprint stop | On success | 1 | 1 | 1 if ticking is sprinting; 0 if not |
History[edit | edit source]
[hide]Java Edition | |||||||
---|---|---|---|---|---|---|---|
1.20.3 | 23w43a | Added /tick . | |||||
23w44a | The <time> parameter in the /tick step command is now optional. The default value is 1 . | ||||||
1.20.3-pre3 | The /tick query now shows "The game is running, but can't keep up with the target tick rate" when the game is lagging. |