A chip for sending the current real, or game time. Use ‘earthtime’ as 1st sign argument to sync with real world time or use ‘gametime’ to sync with game ticks. To specify an hour offset for different timezones or for syncing the gametime with the sun, add a semicolon (:) after the time argument and the number of hours to shift by. For ex: gametime:6 or earthtime:1.

The 2nd sign argument determines the time field that will be sent to the chip’s outputs.

Possible time field argument values:

A 3rd optional sign argument determines the world the chip will get the current time from. Enter any world name to use that world’s time instead of the time in the world the chip is built in.

The chip will update its outputs once the clock pin is triggered according to the current time.

If the chip is not built with enough output pins to output the whole range of values for the time field being used, the output is mapped accordingly. For example, If you build a daytime chip that uses the hour time field with only 1 output bit, hours 0-11 will output 0 while hours 12-23 will output 1. Using 5 outputs leaves the chip enough bits to output the unmapped value ranging between 0-23.

source code

I/O setup

Sign text

  1. daytime
  2. [earthtime/gametime][:<hour-offset>] (optional, defaults to gametime)
  3. [time field] (optional, gametime defaults to tick, earthtime defaults to second)
  4. [world] (optional, defaults to the world the chip is built in)

Version history: Added to SensorLibrary 0.2

Fork me on GitHub