time Add

Add ticks to the current time of day.

gameplay.timeAdd(100);

You move time forward by adding time ticks to the current time.

Parameters

  • amount: the number of ticks added to the current time of day, like: 100 ticks

The Minecraft wiki has a table to convert time of day to Minecraft ticks.

Example

Adds ticks to the game time as you walk around. It’s time travel!

player.onTravelled(TravelMethod.Walk, () => {
    gameplay.timeAdd(300)
});

See Also

||gameplay:time set||

Find out how time works in Minecraft at the Minecraft wiki.