Wiki 9Minecraft Modular Diversity Wiki

Time

Time

Syntax

{
    "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)

Parameters

  • modulo : long (optional)

    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
  • start : long (optional)

    The start of the valid time segment in the current time unit
    0 if not provided
  • stop : long (optional)

    The end of the valid time segment in the current time unit
    Long.MAX_VALUE if not provided
  • local : boolean (optional)

    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

Notes

  • "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