Time command generator

Set, add to, or query the in-game world time

Use day, noon, night, midnight, or enter a tick count as a number (20 ticks = 1 second)

How to use the Time command generator

  1. Choose the edition and version that match your game
  2. Choose an action: set the time, add time, or check the time
  3. Fill in the value that matches the action you chose
  4. Copy the command and run it in Minecraft

Worked examples

The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there

1. Set the time to day

The word day works in place of a number — easier to read and remember than the raw tick value

/time set day

What it does Will set the world time to day.

2. Push the clock forward

add advances from the current time, where set jumps straight to the value you name

/time add 1000

What it does Will advance the world time by 1000 ticks (20 ticks = 1 second).

3. Ask what the time is now

query changes nothing and just returns a value — pair it with a command block to store the result in a scoreboard

/time query daytime

What it does Will query the daytime time and show the result in chat.

How this command differs by edition and version

This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row

Every version this tool supports produces the same result, so a command you copy works without version-specific edits

Java Edition 1.21.5 and up Java Edition 1.20.5 - 1.21.4 Java Edition 1.13 - 1.20.4 (legacy NBT) Bedrock Edition (stable)
/time set day

Before you use these