Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/tick: Difference between revisions

From SAS Gaming Wiki
imported>SworderExert
Verification, rephrasing and extra info.
 
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{exclusive|java}}
{{MC/Exclusive|java}}
{{Infobox command
{{Infobox command
|name=tick
|name=tick
Line 5: Line 5:
}}
}}


The '''/tick''' command provides utilities for modifying the target [[Minecraft: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.<ref>{{bug|MC-266134|||WAI}}</ref>
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.<ref>{{bug|MC-266134|||WAI}}</ref>


==Syntax==
==Syntax==
: <code>tick query</code>
: <code>tick query</code>
:: Outputs the current ticking status and target ticking rate, with information about the tick performance, including average time per tick and [[Minecraft:wikipedia:percentile|percentile]]s of time per tick.
:: 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.
: <code>tick rate &lt;rate&gt;</code>
: <code>tick rate &lt;rate&gt;</code>
:: 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.
:: 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.
: <code>tick freeze</code>
: <code>tick freeze</code>
:: Freezes ticking. All gameplay elements are not ticked, except players and any [[Minecraft:entity]] a player is riding.
:: Freezes ticking. All gameplay elements are not ticked, except players and any entity a player is riding.
: <code>tick unfreeze</code>
: <code>tick unfreeze</code>
:: Unfreezes ticking.
:: Unfreezes ticking.
Line 26: Line 26:


== Arguments ==
== Arguments ==
{{argument|rate|float}}
{{MC/Argument|rate|float}}
: Specifies the target rate in TPS. The default rate is 20.0 TPS.
: Specifies the target rate in TPS. The default rate is 20.0 TPS.
: {{arg desc|je=float|min=1.0|max=10000.0}}
: {{MC/Arg desc|je=float|min=1.0|max=10000.0}}


{{argument|time|time}}
{{MC/Argument|time|time}}
: Specifies the number of ticks to step or sprint. Defaults to 1 game tick if not specified.
: Specifies the number of ticks to step or sprint. Defaults to 1 game tick if not specified.
: {{arg desc|je=time|min=1}}
: {{MC/Arg desc|je=time|min=1}}


{{Calculator|tick}}
{{Calculator|tick}}
Line 43: Line 43:


== Output ==
== Output ==
{{Output table}}
{{MC/Output table}}
{{Output table|edition=je|cmd=/tick query|On success|1|1|the current target ticking rate}}
{{MC/Output table|edition=je|cmd=/tick query|On success|1|1|the current target ticking rate}}
{{Output table|cmd=/tick rate &lt;rate&gt;|On success|1|1|the specified <code>rate</code>}}
{{MC/Output table|cmd=/tick rate &lt;rate&gt;|On success|1|1|the specified <code>rate</code>}}
{{Output table|cmd=/tick freeze|On success|1|1|1}}
{{MC/Output table|cmd=/tick freeze|On success|1|1|1}}
{{Output table|cmd=/tick unfreeze|On success|1|1|0}}
{{MC/Output table|cmd=/tick unfreeze|On success|1|1|0}}
{{Output table|cmd=/tick step [&lt;time&gt;]|On success|1|1|1}}
{{MC/Output table|cmd=/tick step [&lt;time&gt;]|On success|1|1|1}}
{{Output table|cmd=/tick step stop|On success|1|1|1 if ticking is stepping; 0 if not}}
{{MC/Output table|cmd=/tick step stop|On success|1|1|1 if ticking is stepping; 0 if not}}
{{Output table|cmd=/tick sprint [&lt;time&gt;]|On success|1|1|1}}
{{MC/Output table|cmd=/tick sprint [&lt;time&gt;]|On success|1|1|1}}
{{Output table|cmd=/tick sprint stop|On success|1|1|1 if ticking is sprinting; 0 if not}}
{{MC/Output table|cmd=/tick sprint stop|On success|1|1|1 if ticking is sprinting; 0 if not}}
{{Output table}}
{{MC/Output table}}


== History ==
== History ==


{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{MC/HistoryLine|java}}
|{{HistoryLine||1.20.3|dev=23w43a|Added {{cmd|tick|link=none}}.}}
|{{HistoryLine||1.20.3|dev=23w43a|Added {{MC/Cmd|tick|link=none}}.}}
|{{HistoryLine|||dev=23w44a|The <code><nowiki><time></nowiki></code> parameter in the {{cmd|link=none|tick step}} command is now optional. The default value is <code>1</code>.}}
|{{HistoryLine|||dev=23w44a|The <code><nowiki><time></nowiki></code> parameter in the {{MC/Cmd|link=none|tick step}} command is now optional. The default value is <code>1</code>.}}
|{{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.}}
|{{HistoryLine|||dev=1.20.3-pre3|The {{MC/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 ==
== Navigation ==
{{Navbox commands}}
{{MC/Navbox commands}}


[[Minecraft:de:Befehl/tick]]
de:Befehl/tick
[[Minecraft:ja:コマンド/tick]]
ja:コマンド/tick
[[Minecraft:lzh:令/tick]]
lzh:令/tick
[[Minecraft:pt:Comandos/tick]]
pt:Comandos/tick
[[Minecraft:ru:Команды консоли/tick]]
ru:Команды консоли/tick
[[Minecraft:zh:命令/tick]]
zh:命令/tick

Latest revision as of 20:14, 9 April 2026

Script error: No such module "Exclusive". Template:Infobox command

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.<ref>Template:Bug</ref>

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,<ref>Template:Bug</ref> 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.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|float}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

<time>: time

Specifies the number of ticks to step or sprint. Defaults to 1 game tick if not specified.
{{#vardefine:onlyje|}}{{#vardefine:onlybe| Template:IN,}}{{#vardefine:je-arg|time}}{{#vardefine:be-arg|}}Template:Error{{#vardefine:onlyje|}}{{#vardefine:onlybe|}}{{#vardefine:je-arg|}}{{#vardefine:be-arg|}}

Template:Calculator

Result

Template:Result table Template:Result table Template:Result table Template:Result table

Output

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the current target ticking rate}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick query}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-editions-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-edition-{{#var:output-editions-num}}|je}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|1}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|the specified rate}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick rate <rate>}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick freeze}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|0}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick unfreeze}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick step [<time>]}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1 if ticking is stepping; 0 if not}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick step stop}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick sprint [<time>]}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}} {{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:situation-{{#var:output-table-lines}}|On success}}{{#vardefine:output1-{{#var:output-table-lines}}|1}}{{#vardefine:output2-{{#var:output-table-lines}}|1}}{{#vardefine:output3-{{#var:output-table-lines}}|1 if ticking is sprinting; 0 if not}}{{#vardefine:commands-num|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:command-{{#var:commands-num}}|/tick sprint stop}}{{#vardefine:command-row-{{#var:commands-num}}|1}}{{#vardefine:output-edition-row-{{#var:output-editions-num}}|Expression error: Unrecognized punctuation character "{".}}

{{#vardefine:output-table-lines|Expression error: Unrecognized punctuation character "{".}}{{#vardefine:output-table-lines|-2}}{{#vardefine:output-table-lines-now|}}{{#vardefine:command-num-now|}}{{#vardefine:command-line-now|}}{{#vardefine:commands-num|}}{{#vardefine:output-edition-num-now|}}{{#vardefine:output-edition-line-now|}}{{#vardefine:output-editions-num|}}{{#vardefine:je-outputs-dis|}}

History

Template:HistoryTable

Navigation

All editions
Removed
Template:El only
Debug
Removed
Template:Els only
Template:El only
Removed
Template:El only
Removed
Template:Els only
Removed
Joke
Related

de:Befehl/tick ja:コマンド/tick lzh:令/tick pt:Comandos/tick ru:Команды консоли/tick zh:命令/tick