Minecraft:Daylight Detector
More actions
Template:Infobox block A daylight detector is a Minecraft:block that outputs a Minecraft:redstone signal based on its exposure to sky light.
Template:Control the detector inverts it, causing it instead to output a constant strong signal that weakens from exposure to sky light.
Obtaining
Breaking
Daylight detectors can be mined by hand or with any tool, but Minecraft:axes are the quickest. Inverted daylight detectors cannot be collected directly; they drop a regular daylight detector. Template:IN, the inverted detector may be obtained by using Template:Control in Minecraft:Creative mode<ref>MCPE-179063 – Pickblocking an inverted Daylight Sensor produces "tile.daylight_detector_inverted.name" block</ref>, or via inventory editing or add-ons. Template:Breaking row
Crafting
Usage
Redstone component
A daylight detector can be used to produce redstone power in proportion to the Minecraft:daylight cycle.
A daylight detector is 0.375 blocks high (3/8ths of a block). Daylight detectors can be moved by Minecraft:pistons.Template:Only Minecraft:Water and Minecraft:lava flow around daylight detectors without affecting them.
- Placement
- To place a daylight detector, use the "Use Item/Place Block" control.
- A daylight detector can be "inverted", which reverses the power levels produced by the daylight detector. To invert a daylight detector, aim at the placed daylight detector and use the "Use Item/Place Block" control.
- Activation
- A daylight detector activates when exposed to sufficient daylight (daylight detector mode) or when exposure to daylight is low enough (inverted daylight detector mode).
- Sources of block light (Minecraft:torches, Minecraft:glowstone, etc.) cannot activate a daylight detector.
- Behavior
- An active daylight detector:
- powers adjacent Minecraft:redstone dust, including below it, and Minecraft:redstone comparators facing away from the daylight detector, to a power level that depends on the time of day, the weather, the detector's exposure to the sky, and the internal sky light level (see tables below)
- powers adjacent Minecraft:redstone repeaters facing away from the daylight detector to power level 15
- activates adjacent redstone mechanisms, including above and below, such as Minecraft:pistons, Minecraft:redstone lamps, etc.
- A daylight detector has no effect on other adjacent blocks (for example, it cannot power a block the way a repeater can).
- The output signal of daylight detectors in the loaded chunk is updated every 20 gametimeTemplate:Only/daytimeTemplate:Only. Block updates have no effect on daylight detectors.
Daylight detector
In the Minecraft:Overworld, a daylight detector's outputted Minecraft:signal strength depends on the time of day, the weather, the detector's exposure to the sky, and the internal sky light level.
| Power | Clear | Rain or snowfall | Thunder | |||
|---|---|---|---|---|---|---|
| Time ↓ | Time ↑ | Time ↓ | Time ↑ | Time ↓ | Time ↑ | |
| 0 | Template:ClockPhase 13,670–(Midnight/18,000)-22,330
(8,660 Gtk/7:13) |
Template:ClockPhase 13,670-(Midnight/18,000)–22,330
(8,660 Gtk/7:13) |
Template:ClockPhase 13,670-(Midnight/18,000)–22,330
(8,660 Gtk/7:13) | |||
| 1 | Template:ClockPhase 22,331–22,781
(450 Gtk/22.5 sec) |
Template:ClockPhase 13,219–13,669
(450 Gtk/22.5 sec) |
Template:ClockPhase 22,331–22,798
(467 Gtk/23.35 sec) |
Template:ClockPhase 13,203–13,669
(466 Gtk/23.3 sec) |
Template:ClockPhase 22,331–22,943
(612 Gtk/30.6 sec) |
Template:ClockPhase 13,058–13,669
(611 Gtk/30.55 sec) |
| 2 | Template:ClockPhase 22,782–23,069Template:Only/23,070Template:Only
J: (287 Gtk/14.35 sec) B: (288 Gtk/14.4 sec) |
Template:ClockPhase 12,931–13,218
(287 Gtk/14.35 sec) |
Template:ClockPhase 22,799–23,231
(432 Gtk/21.6 sec) |
Template:ClockPhase 12,769Template:Only/12,770Template:Only-13,202
J: (433 Gtk/21.65 sec) B: (432 Gtk/21.6 sec) |
Template:ClockPhase 22,944–23,352
(408 Gtk/20.4 sec) |
Template:ClockPhase 12,648–13,057
(409 Gtk/20.45 sec) |
| 3 | Template:ClockPhase 23,070Template:Only/23,071Template:Only-23,296
J: (226 Gtk/11.3 sec) B: (225 Gtk/11.25 sec) |
Template:ClockPhase 12,705–12,930
(225 Gtk/11.25 sec) |
Template:ClockPhase 23,232–23,504
(272 Gtk/13.6 sec) |
Template:ClockPhase 12,497–12,768Template:Only/12,769Template:Only
J: (271 Gtk/13.55 sec) B: (272 Gtk/13.6 sec) |
Template:ClockPhase 23,353–23,700
(347 Gtk/17.35 sec) |
Template:ClockPhase 12,300–12,647
(347 Gtk/17.35 sec) |
| 4 | Template:ClockPhase 23,297–23,529
(232 Gtk/11.6 sec) |
Template:ClockPhase 12,471–12,704
(233 Gtk/11.65 sec) |
Template:ClockPhase 23,505–23,745
(240 Gtk/12 sec) |
Template:ClockPhase 12,256–12,496
(240 Gtk/12 sec) |
Template:ClockPhase 23,701-(Dawn/24,000/0)–59
(240 Gtk/12 sec) |
Template:ClockPhase 11,941Template:Only/11,942Template:Only-(Dusk/12,000)-12,299
J: (358 Gtk/17.9 sec) B: (357 Gtk/17.85 sec) |
| 5 | Template:ClockPhase 23,530–23,767
(237 Gtk/11.85 sec) |
Template:ClockPhase 12,233–12,470
(237 Gtk/11.85 sec) |
Template:ClockPhase 23,746–23,991
(245 Gtk/12.25 sec) |
Template:ClockPhase 12,010–12,255
(245 Gtk/12.25 sec) |
Template:ClockPhase 60–441
(381 Gtk/19.05 sec) |
Template:ClockPhase 11,560–11,940Template:Only/11,941Template:Only
J:(380 Gtk/19 sec) B: (381 Gtk/19.05 sec) |
| 6 | Template:ClockPhase 23,768–23,960
(192 Gtk/9.6 sec) |
Template:ClockPhase 12,041–12,232
(191 Gtk/9.55 sec) |
Template:ClockPhase 23,992–(Dawn/24,000/0)-394
(386 Gtk/19.3 sec) |
Template:ClockPhase 11,607–(Dusk/12,000)-12,009
(402 Gtk/20.1 sec) |
Template:ClockPhase 442–1,039
(597 Gtk/29.85 sec) |
Template:ClockPhase 10,962–11,559
(597 Gtk/29.85 sec) |
| 7 | Template:ClockPhase 23,961–(Dawn/24,000/0)-166
(205 Gtk/10.25 sec) |
Template:ClockPhase 11,835–(Dusk/12,000)-12,040 (205 Gtk/10.25 sec) | Template:ClockPhase 395–882
(487 Gtk/24.35 sec) |
Template:ClockPhase 11,119–11,606
(487 Gtk/24.35 sec) |
Template:ClockPhase 1,040–1,735
(695 Gtk/34.75 sec) |
Template:ClockPhase 10,266–10,961
(695 Gtk/34.75 sec) |
| 8 | Template:ClockPhase 167–535
(368/18.4 sec) |
Template:ClockPhase 11,465Template:Only/11,466Template:Only-11,834
J: (369 Gtk/18.45 sec) B: (368 Gtk/18.4 sec) |
Template:ClockPhase 883–1,429Template:Only/1,430Template:Only
J: (546 Gtk/27.3 sec) B: (547 Gtk/27.35 sec) |
Template:ClockPhase 10,571–11,118
(547 Gtk/27.35 sec) |
Template:ClockPhase 1,736–2,608
(872 Gtk/43.6 sec) |
Template:ClockPhase 9,392–10,265
(873 Gtk/43.65 sec) |
| 9 | Template:ClockPhase 536–933
(397 Gtk/19.85 sec) |
Template:ClockPhase 11,067–11,464Template:Only/11,465Template:Only
J: (397 Gtk/19.85 sec) B: (398 Gtk/19.9 sec) |
Template:ClockPhase 1,430Template:Only/1,431Template:Only-2,069
J: (639 Gtk/31.95 sec) B: (638 Gtk/31.6 sec) |
Template:ClockPhase 9,931–10,570
(639 Gtk/31.95 sec) |
Template:ClockPhase 2,609–3,942
(1,333 Gtk/1:06.65 sec) |
Template:ClockPhase 8,059–9,391
(1,332 Gtk/1:06.6 sec) |
| 10 | Template:ClockPhase 934–1,371
(437 Gtk/21.85 sec) |
Template:ClockPhase 10,629–11,066
(437 Gtk/21.85 sec) |
Template:ClockPhase 2,070–2,875
(805 Gtk/40.25 sec) |
Template:ClockPhase 9,125Template:Only/9,126Template:Only-9,930
J: (805 Gtk/40.25 sec) B: (804 Gtk/40.2 sec) |
Template:ClockPhase 3,943–(Noon/6,000)-8,058
(4115 Gtk/3:25) | |
| 11 | Template:ClockPhase 1,372–1,865
(493 Gtk/24.65 sec) |
Template:ClockPhase 10,136–10,628
(492 Gtk/24.6 sec) |
Template:ClockPhase 2,876–4,108
(1,232 Gtk/1:01.6) |
Template:ClockPhase 7,892–9,124Template:Only/7,893–9,125Template:Only
J: (1,232 Gtk/1:01.6) B: (1,232 Gtk/1:01.6) |
N/A | N/A |
| 12 | Template:ClockPhase 1,866–2,444
(578 Gtk/28.9 sec) |
Template:ClockPhase 9,557–10,135
(578 Gtk/28.9 sec) |
Template:ClockPhase 4,109–(Noon/6,000)-7,891Template:Only/7,892Template:Only
J:(3,410 Gtk/2:50) B: (3,783 Gtk/3:9.15) |
N/A | N/A | |
| 13 | Template:ClockPhase 2,445–3,175
(730 Gtk/36.5 sec) |
Template:ClockPhase 8,826–9,556
(730 Gtk/36.5 sec) |
N/A | N/A | N/A | N/A |
| 14 | Template:ClockPhase 3,176–4,294
(1,118 Gtk/55.9 sec) |
Template:ClockPhase 7,706–8,825
(1,119 Gtk/55.95 sec) |
N/A | N/A | N/A | N/A |
| 15 | Template:ClockPhase 4,295–(Noon/6,000)-7,705
(3,410 Gtk/2:50) |
N/A | N/A | N/A | N/A | |
A non-inverted daylight detector never produces a signal in Minecraft:the Nether and, Template:In, also Minecraft:the End. Template:IN, daylight detectors always produces a maximum signal strength of 15 from exposure to the End dimension's sky, as the End's internal sky light level never changes.
Inverted daylight detector
Template:Control a daylight detector inverts it. However, the output of the inverted detector is not a simple inversion of the daylight detector's output; it uses a much simpler algorithm that depends on the internal sky light level. Specifically, it outputs a signal strength of 15 minus the current internal sky light level, where values over 15 or below 0 are taken as 15 or 0 respectively. This means that, in the Overworld, an inverted daylight detector actually outputs a strength of 11 at midnight when the weather is clear, if it has line of sight with the sky. The effects of shade are applied before inverting, so shade increases the signal strength when it is not already full, and prevents it from reaching zero. Completely blocking an inverted daylight detector from exposure to the sky causes it to emit a signal strength of 15 at all times of day.
Template:In, inverted daylight detectors in the Nether always produce a signal strength of 15; in the End, they work similarly to in the Overworld. Template:In, inverted daylight detectors in the Nether or End never produce a signal under any circumstance.
The cells on inverted daylight detectors are emissive if Minecraft:Vibrant Visuals is enabled.
Fuel
Daylight detectors can be used as a Minecraft:fuel in Minecraft:furnaces, smelting 1.5 items per block.
Note blocks
Daylight detectors can be placed under Minecraft:note blocks to produce "bass" sounds.
Sounds
Data values
ID
Template:Edition: Template:ID table Template:ID table
Template:Edition: Template:ID table Template:ID table Template:ID table
Block states
Template:Edition: Template:Bst Template:Bst
Template:Edition: Template:Bst
Block data
A daylight detector has a block entity associated with it which stores only its entity ID and position (the minimum data for a block entity). Although the daylight detector's block entity stores no additional data, the block entity ensures that the daylight detector is updated every game tick.
Template:El: Template:See also
<section begin="block data"/>
- Template:Nbt Block entity data
<section end="block data"/>
Videos
History
Development
Java Edition
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
Data history
Issues
Gallery
Screenshots
-
A graph visualising the states of a Daylight Detector under different weather conditions (ends rounded to the nearest quarter of a thousand Game-ticks)
-
An example of lights being powered upon the sunrise.
-
Art made using both states of the daylight detector.
-
One of the more common uses of the block, a simple street light using a redstone lamp.
Mojang screenshots
-
First image of a daylight detector.
-
The 13w01a snapshot image released by Minecraft:Mojang.
References
External links
- Block of the Month: Daylight Detector – Minecraft.net on December 14, 2023
Template:Navbox redstone Template:Navbox blocks
Minecraft:de:Tageslichtsensor Minecraft:es:Sensor de luz solar Minecraft:fr:Capteur de lumière Minecraft:ja:日照センサー Minecraft:ko:햇빛 감지기 Minecraft:nl:Daglichtsensor Minecraft:pl:Detektor światła dziennego Minecraft:pt:Detector de Luz Solar Minecraft:ru:Датчик дневного света Minecraft:zh:阳光探测器