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)
Remove broken links to missing pages
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
(One intermediate revision by the same user not shown)
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 61: Line 61:
|{{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 {{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 {{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}}.}}
}}
}}


Line 66: Line 68:
{{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