Commands/tick
Minecraft Wiki article. Categories: Java_Edition, Pages_using_calculator, Java_Edition_upcoming, Commands
This article is reproduced from Commands/tick on the Minecraft Wiki. Mirrored from revision 3647157. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
/tick{
"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": []
}
The /tick command provides utilities for modifying the target tick rate of the game, temporarily fast forwarding the game, and pausing the game server side among other things. The /tick command cannot be executed from a command block.[1]
Syntax
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. Modifying the target ticking rate changes the relative speed of the game as the game still expects a constant tick rate of 20.0, the default tick rate.
tick freeze- Freezes ticking. All gameplay elements are not ticked, 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>]- Makes the game run as fast as it can for the specified amount of ticks plus one,[2] 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
<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.
.5dis same as 12000 gameticks.
Result
| Command | Trigger | Java Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
| Otherwise | Successful |
Output
| 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
| 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. | ||||||
| Upcoming Java Edition | |||||||
| 26.3 | snapshot1 | The following subcommands will now signal an error instead of just printing an error message and returning 0: /tick step, /tick step stop, /tick sprint stop. | |||||
Navigation
Sources
- Commands/tick — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3647157.