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
SyncBot (talk | contribs)
Fix template calls: add MC/ prefix
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{MC/Exclusive|java}}
{{exclusive|java}}
{{Infobox command
{{Infobox command
|name=tick
|name=tick
Line 5: Line 5:
}}
}}


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>
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>


==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 percentiles 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 [[Minecraft:wikipedia:percentile|percentile]]s 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 entity a player is riding.
:: Freezes ticking. All gameplay elements are not ticked, except players and any [[Minecraft:entity]] a player is riding.
: <code>tick unfreeze</code>
: <code>tick unfreeze</code>
:: Unfreezes ticking.
:: Unfreezes ticking.
Line 26: Line 26:


== Arguments ==
== Arguments ==
{{MC/Argument|rate|float}}
{{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.
: {{MC/Arg desc|je=float|min=1.0|max=10000.0}}
: {{arg desc|je=float|min=1.0|max=10000.0}}


{{MC/Argument|time|time}}
{{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.
: {{MC/Arg desc|je=time|min=1}}
: {{arg desc|je=time|min=1}}


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


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


== History ==
== History ==


{{HistoryTable
{{HistoryTable
|{{MC/HistoryLine|java}}
|{{HistoryLine|java}}
|{{HistoryLine||1.20.3|dev=23w43a|Added {{MC/Cmd|tick|link=none}}.}}
|{{HistoryLine||1.20.3|dev=23w43a|Added {{cmd|tick|link=none}}.}}
|{{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=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=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.}}
|{{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|upcoming java}}
|{{HistoryLine||26.3|dev=snapshot1|The following subcommands will now signal an error instead of just printing an error message and returning {{cd|0}}: {{cmd|tick step}}, {{cmd|tick step stop}}, {{cmd|tick sprint stop}}.}}
}}
}}


== Navigation ==
== Navigation ==
{{MC/Navbox commands}}
{{Navbox commands}}


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

Latest revision as of 11:10, 25 June 2026

Template:Exclusive Template:Infobox command

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>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 Minecraft: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

Template:Argument

Specifies the target rate in TPS. The default rate is 20.0 TPS.
Template:Arg desc

Template:Argument

Specifies the number of ticks to step or sprint. Defaults to 1 game tick if not specified.
Template:Arg desc

Template:Calculator

Result

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

Output

Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table

History

Template:HistoryTable

Navigation

Template:Navbox commands

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