Time
{
"type": "daylight",
"io-type": "input",
"start": 72000,
"stop": 96000,
"modulo": 96000
}
This recipe would work repeating for 1 day (96000 - 72000 = 24000) after 3 days (72000 = 24000 * 3)
-
The size of the time units to operate on, if a recipe should be recurring
(ex: 24000 ticks is one day) Long.MAX_VALUE if not provided -
The start of the valid time segment in the current time unit
0 if not provided -
The end of the valid time segment in the current time unit
Long.MAX_VALUE if not provided -
Whether to operate on local time or global time.
Local time works on a per day basis and advances when the player sleeps in a bed. Global time is ticks since the creation of the world, and does not advance when the player sleeps in a bed.
False (global time) if not provided
- "start" and "stop" refer to the remainder of the modulo operation like so:
currentTime = totalTime % modulo run recipe if start < currentTime < stop - If the value for "stop" is smaller than the value for "start", the condition will be inverted. (the recipe will be valid outside of the times given)
- Does not need a hatch
- Can be set perTick