Daylight Detector

A daylight detector is a redstone power source that outputs a signal strength between 0 and 15 depending on the current time of day, weather, and sky light level. Interacting with the block switches it into an inverted mode that outputs power based on darkness instead of sunlight. It updates its output once every 20 gametime/daytime ticks and ignores artificial block light from torches or lamps.

Sensors & DetectorsBeginnerSignal strengthComparator logicClocks & timing

How It Works & Signal Strength

In its default state (inverted=false), a daylight detector measures the internal sky light reaching it and calculates an output power from 0 to 15 based on three factors: the time of day, current weather, and shade from overhead blocks. Sources of artificial block light—such as torches, glowstone, or redstone lamps—have zero effect on the detector.

When the detector has direct line of sight to the sky (sky light level 15), its peak and minimum outputs follow the daylight cycle:

  • Clear Weather: Reaches maximum power 15 around noon (ticks 4,295 to 7,705, lasting 3,410 game ticks / 2 minutes 50 seconds). Drops to 0 at night (ticks 13,670 to 22,330, lasting 8,660 game ticks / 7 minutes 13 seconds).
  • Rain or Snowfall: Peaks at power level 12 around noon (starting at tick 4,109).
  • Thunderstorms: Peaks at power level 10 around noon (ticks 3,943 to 8,058, lasting 4,115 game ticks / 3 minutes 25 seconds).

An active daylight detector powers adjacent redstone dust (including a piece directly beneath it), powers adjacent redstone comparators facing away to the matching signal strength, powers repeaters facing away to level 15, and activates any adjacent mechanism blocks above, below, or beside it. However, it cannot power an adjacent solid block the way a repeater can.

Placement & Inverted Mode

Place a daylight detector using the standard Use Item/Place Block control. At 0.375 blocks tall (3/8 of a block), water and lava flow around it without affecting it, and pistons can move it freely.

Using the Use Item/Place Block control directly on a placed daylight detector toggles its inverted block state to true. An inverted daylight detector does not simply reverse the daytime curve; instead, it uses a simpler formula based solely on the current internal sky light level:

Output Power = 15 - Current Internal Sky Light Level (clamped between 0 and 15).

  • An open-sky inverted detector outputs a signal strength of 11 at midnight in clear weather—not 15.
  • Shade from roofs or overhead blocks is applied before inverting. Shading an inverted detector increases its output strength when it is not already full and prevents its signal from reaching 0.
  • Breaking an inverted detector always drops a regular daylight detector item.

Update Timing & Block Entity Mechanics

Every daylight detector has an associated block entity that stores only its entity ID and position. While it holds no additional data, the block entity ensures the game updates the daylight detector every game tick.

In loaded chunks, the output signal of a daylight detector is updated every 20 gametime/daytime. Standard block updates have no effect on daylight detectors.

Common Redstone Circuits

  • Automatic Night Lights: Place an inverted daylight detector directly on top of or next to a redstone lamp. When daylight drops low enough, the inverted detector activates the adjacent lamp automatically.
  • Time-of-Day Triggers: Run redstone dust or a redstone comparator facing away from a detector to trigger mechanisms like pistons or note blocks at specific points in the daylight cycle (such as power 7 around dawn at tick 24,000/0 or dusk at tick 12,000 in clear weather).
  • Weather Detection: Because clear weather reaches power 15 at noon while rain caps at 12 and thunder caps at 10, reading a detector's midday signal with a comparator allows a circuit to detect weather changes.

Tips & Common Mistakes

  • Expecting Power 15 at Midnight: Builders often expect an unshaded inverted detector to output full power at night. Remember that clear-sky midnight at tick 18,000 only produces power 11; add shade above the detector if you want to increase the inverted signal strength.
  • Trying to Trigger with Torches: Placing a torch or glowstone next to a detector will never activate it. It strictly responds to sky light.
  • Powering Solid Blocks: Unlike a repeater, a daylight detector has no effect on other adjacent non-mechanism blocks. Connect it directly to a mechanism (such as a piston or redstone lamp), redstone dust, a repeater, or a comparator.

Java vs Bedrock

TopicJava EditionBedrock Edition
Peak Level 12 Duration in Rain/SnowOutputs maximum rain power level 12 from tick 4,109 to 7,891 (3,410 game ticks / 2:50).Outputs maximum rain power level 12 from tick 4,109 to 7,892 (3,783 game ticks / 3:09.15).
Signal Transition TicksSeveral mid-level transitions differ slightly, such as Clear Weather Power 2 morning lasting 287 game ticks (14.35 sec) from tick 22,782 to 23,069.Clear Weather Power 2 morning lasts 288 game ticks (14.4 sec) from tick 22,782 to 23,070.
Inverted Detector Pick Block GlitchInverted daylight detectors can only be obtained via inventory editing or add-ons.A glitch allows obtaining the inverted sensor with Pick Block in Creative mode.

Frequently asked questions

Do torches or glowstone activate a daylight detector?
No. Sources of block light such as torches and glowstone cannot activate a daylight detector; it only responds to sky light.
Why does my inverted daylight detector only reach power 11 at midnight?
An inverted daylight detector calculates its output as 15 minus the current internal sky light level. With direct line of sight to the sky in clear weather, this formula produces a signal strength of 11 at midnight.
How do you invert a daylight detector in Minecraft?
Aim at a placed daylight detector and use the Use Item/Place Block control. This switches the block into inverted mode, reversing its behavior so it outputs power based on darkness.
Can pistons move daylight detectors?
Yes. Daylight detectors can be moved by pistons, and water and lava flow around them without affecting them.

Related components