{{exclusive|java}}
{{Infobox command
|name=tick
|oplevel=3
}}
Controls or queries the [[tick]] status of the game.
==Syntax==
: tick query
:: Outputs the current ticking status and target ticking rate, with information about the tick performance, including average time per tick and [[wikipedia:percentile|percentile]]s 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 ==
{{argument|rate|float}}
: Specifies the target rate in TPS. The default rate is 20.0 TPS.
: {{arg desc|je=float|min=1.0|max=10000.0}}
{{argument|time|time}}
: Specifies the number of ticks to step or sprint. Defaults to 1 game tick if not specified.
: {{arg desc|je=time|min=1}}
{{Calculator|tick}}
==Result==
{{Result table|onlyje=1}}
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable}}
{{Result table|succeed}}
{{Result table}}
== Output ==
{{Output table}}
{{Output table|edition=je|cmd=/tick query|On success|1|1|the current target ticking rate}}
{{Output table|cmd=/tick rate <rate>|On success|1|1|the specified rate}}
{{Output table|cmd=/tick freeze|On success|1|1|1}}
{{Output table|cmd=/tick unfreeze|On success|1|1|0}}
{{Output table|cmd=/tick step [<time>]|On success|1|1|1}}
{{Output table|cmd=/tick step stop|On success|1|1|1 if ticking is stepping; 0 if not}}
{{Output table|cmd=/tick sprint [<time>]|On success|1|1|1}}
{{Output table|cmd=/tick sprint stop|On success|1|1|1 if ticking is sprinting; 0 if not}}
{{Output table}}
== History ==
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine||1.20.3|dev=23w43a|Added {{cmd|tick|link=none}}.}}
|{{HistoryLine|||dev=23w44a|The parameter in the {{cmd|link=none|tick step}} command is now optional. The default value is 1.}}
|{{HistoryLine|||dev=1.20.3-pre3|The {{cmd|tick query|link=none}} now shows "The game is running, but can't keep up with the target tick rate" when the game is lagging.}}
}}
== Navigation ==
{{Navbox commands}}
[[de:Befehl/tick]]
[[ja:コマンド/tick]]
[[lzh:令/tick]]
[[pt:Comandos/tick]]
[[ru:Команды консоли/tick]]
[[zh:命令/tick]]