Commands/time

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


 * Syntax


 * Java Edition


 * Bedrock Edition


 * Arguments


 * value (BE: amount: int, time: TimeSpec, or daytime | gametime | day)
 * Specifies the time to add, query, or set:
 * - Must be between 0 and 2^31 - 1 (inclusive, without the commas)
 * - Must be,   or.
 * - Must be between 0 and 2^31 - 1 (inclusive, without the commas),,  ,  ,  ,  , or.


 * Result


 * Fails if the arguments are not specified correctly.


 * On success:
 * - adds value 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 value ( = 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