Commands/time

Changes or queries the world's game time. $$,,   and   are three separated commands.

Syntax

 * Java Edition


 * Bedrock Edition

Arguments
(BE: )
 * Specifies the time to add or set. Must be between 0 and 2^31 - 1 (inclusive, without the commas).

(BE: )
 * Specifies the time to query. Must be,   or.

(BE: )
 * Specifies the time to set. Must be,  ,  ,  ,  , or.

Result
Fails if the arguments are not specified correctly.

On success:
 * - adds  to the world's daytime.
 * - returns the number of game ticks since dawn.
 * - returns the age of the world in game ticks.
 * - returns the number of in-game days passed (matching the debug screen $$).
 * - sets the world daytime to  or  (  = 1,000,   = 13,000,   = 6,000,   = 18,000,   = 23,000,   = 12,000).

Examples

 * To set the time to 1,000:  or
 * To add one day to the world time:

History
Befehl/time 命令/time