Nightlight Sensor is a mod that adds a block capable of emitting a redstone signal of 15 during a configurable time window. You can switch to a secondary time window by right-clicking it.
You can customize the block’s active hours with the following commands:
-
/nightlight set ontime <time>— set when the block starts emitting power (time can be specified in ticks or AM/PM format). -
/nightlight set offtime <time>— set when the block stops emitting power (time can be specified in ticks or AM/PM format). -
/nightlight set ontimeInv <time>— set when the block starts emitting power (time can be specified in ticks or AM/PM format). -
/nightlight set offtimeInv <time>— set when the block stops emitting power (time can be specified in ticks or AM/PM format). -
/nightlight get— check the current on/off time windows.
By default, the block turns on at 0 ticks (6 AM) and off at 17000 ticks (11 PM).
Can be crafted in a crafting table by putting 3 glass blocks along the top row , a clock in the middle slot and 1 quartz on each side of the clock and 3 wooden slabs along the bottom row.