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.
{{#vardefine: control | right click on mouse or left trigger on gamepad }}Using 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. in Template:Editions, the inverted detector may be obtained by using {{#vardefine: control | middle click on mouse }}pick block in 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. Script error: No such module "breaking row".
Crafting
Usage
Redstone component
{{#vardefine:params|0 }}Template:Hatnote
A daylight detector can be used to produce redstone power in proportion to the 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 redstone dust, including below it, and 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 redstone repeaters facing away from the daylight detector to power level 15
- activates adjacent redstone mechanisms, including above and below, such as Minecraft:pistons, 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 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 | Script error: No such module "ClockPhase". 13,670–(Midnight/18,000)-22,330
(8,660 Gtk/7:13) |
Script error: No such module "ClockPhase". 13,670-(Midnight/18,000)–22,330
(8,660 Gtk/7:13) |
Script error: No such module "ClockPhase". 13,670-(Midnight/18,000)–22,330
(8,660 Gtk/7:13) | |||
| 1 | Script error: No such module "ClockPhase". 22,331–22,781
(450 Gtk/22.5 sec) |
Script error: No such module "ClockPhase". 13,219–13,669
(450 Gtk/22.5 sec) |
Script error: No such module "ClockPhase". 22,331–22,798
(467 Gtk/23.35 sec) |
Script error: No such module "ClockPhase". 13,203–13,669
(466 Gtk/23.3 sec) |
Script error: No such module "ClockPhase". 22,331–22,943
(612 Gtk/30.6 sec) |
Script error: No such module "ClockPhase". 13,058–13,669
(611 Gtk/30.55 sec) |
| 2 | Script error: No such module "ClockPhase". 22,782–23,069Template:Only/23,070Template:Only
J: (287 Gtk/14.35 sec) B: (288 Gtk/14.4 sec) |
Script error: No such module "ClockPhase". 12,931–13,218
(287 Gtk/14.35 sec) |
Script error: No such module "ClockPhase". 22,799–23,231
(432 Gtk/21.6 sec) |
Script error: No such module "ClockPhase". 12,769Template:Only/12,770Template:Only-13,202
J: (433 Gtk/21.65 sec) B: (432 Gtk/21.6 sec) |
Script error: No such module "ClockPhase". 22,944–23,352
(408 Gtk/20.4 sec) |
Script error: No such module "ClockPhase". 12,648–13,057
(409 Gtk/20.45 sec) |
| 3 | Script error: No such module "ClockPhase". 23,070Template:Only/23,071Template:Only-23,296
J: (226 Gtk/11.3 sec) B: (225 Gtk/11.25 sec) |
Script error: No such module "ClockPhase". 12,705–12,930
(225 Gtk/11.25 sec) |
Script error: No such module "ClockPhase". 23,232–23,504
(272 Gtk/13.6 sec) |
Script error: No such module "ClockPhase". 12,497–12,768Template:Only/12,769Template:Only
J: (271 Gtk/13.55 sec) B: (272 Gtk/13.6 sec) |
Script error: No such module "ClockPhase". 23,353–23,700
(347 Gtk/17.35 sec) |
Script error: No such module "ClockPhase". 12,300–12,647
(347 Gtk/17.35 sec) |
| 4 | Script error: No such module "ClockPhase". 23,297–23,529
(232 Gtk/11.6 sec) |
Script error: No such module "ClockPhase". 12,471–12,704
(233 Gtk/11.65 sec) |
Script error: No such module "ClockPhase". 23,505–23,745
(240 Gtk/12 sec) |
Script error: No such module "ClockPhase". 12,256–12,496
(240 Gtk/12 sec) |
Script error: No such module "ClockPhase". 23,701-(Dawn/24,000/0)–59
(240 Gtk/12 sec) |
Script error: No such module "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 | Script error: No such module "ClockPhase". 23,530–23,767
(237 Gtk/11.85 sec) |
Script error: No such module "ClockPhase". 12,233–12,470
(237 Gtk/11.85 sec) |
Script error: No such module "ClockPhase". 23,746–23,991
(245 Gtk/12.25 sec) |
Script error: No such module "ClockPhase". 12,010–12,255
(245 Gtk/12.25 sec) |
Script error: No such module "ClockPhase". 60–441
(381 Gtk/19.05 sec) |
Script error: No such module "ClockPhase". 11,560–11,940Template:Only/11,941Template:Only
J:(380 Gtk/19 sec) B: (381 Gtk/19.05 sec) |
| 6 | Script error: No such module "ClockPhase". 23,768–23,960
(192 Gtk/9.6 sec) |
Script error: No such module "ClockPhase". 12,041–12,232
(191 Gtk/9.55 sec) |
Script error: No such module "ClockPhase". 23,992–(Dawn/24,000/0)-394
(386 Gtk/19.3 sec) |
Script error: No such module "ClockPhase". 11,607–(Dusk/12,000)-12,009
(402 Gtk/20.1 sec) |
Script error: No such module "ClockPhase". 442–1,039
(597 Gtk/29.85 sec) |
Script error: No such module "ClockPhase". 10,962–11,559
(597 Gtk/29.85 sec) |
| 7 | Script error: No such module "ClockPhase". 23,961–(Dawn/24,000/0)-166
(205 Gtk/10.25 sec) |
Script error: No such module "ClockPhase". 11,835–(Dusk/12,000)-12,040 (205 Gtk/10.25 sec) | Script error: No such module "ClockPhase". 395–882
(487 Gtk/24.35 sec) |
Script error: No such module "ClockPhase". 11,119–11,606
(487 Gtk/24.35 sec) |
Script error: No such module "ClockPhase". 1,040–1,735
(695 Gtk/34.75 sec) |
Script error: No such module "ClockPhase". 10,266–10,961
(695 Gtk/34.75 sec) |
| 8 | Script error: No such module "ClockPhase". 167–535
(368/18.4 sec) |
Script error: No such module "ClockPhase". 11,465Template:Only/11,466Template:Only-11,834
J: (369 Gtk/18.45 sec) B: (368 Gtk/18.4 sec) |
Script error: No such module "ClockPhase". 883–1,429Template:Only/1,430Template:Only
J: (546 Gtk/27.3 sec) B: (547 Gtk/27.35 sec) |
Script error: No such module "ClockPhase". 10,571–11,118
(547 Gtk/27.35 sec) |
Script error: No such module "ClockPhase". 1,736–2,608
(872 Gtk/43.6 sec) |
Script error: No such module "ClockPhase". 9,392–10,265
(873 Gtk/43.65 sec) |
| 9 | Script error: No such module "ClockPhase". 536–933
(397 Gtk/19.85 sec) |
Script error: No such module "ClockPhase". 11,067–11,464Template:Only/11,465Template:Only
J: (397 Gtk/19.85 sec) B: (398 Gtk/19.9 sec) |
Script error: No such module "ClockPhase". 1,430Template:Only/1,431Template:Only-2,069
J: (639 Gtk/31.95 sec) B: (638 Gtk/31.6 sec) |
Script error: No such module "ClockPhase". 9,931–10,570
(639 Gtk/31.95 sec) |
Script error: No such module "ClockPhase". 2,609–3,942
(1,333 Gtk/1:06.65 sec) |
Script error: No such module "ClockPhase". 8,059–9,391
(1,332 Gtk/1:06.6 sec) |
| 10 | Script error: No such module "ClockPhase". 934–1,371
(437 Gtk/21.85 sec) |
Script error: No such module "ClockPhase". 10,629–11,066
(437 Gtk/21.85 sec) |
Script error: No such module "ClockPhase". 2,070–2,875
(805 Gtk/40.25 sec) |
Script error: No such module "ClockPhase". 9,125Template:Only/9,126Template:Only-9,930
J: (805 Gtk/40.25 sec) B: (804 Gtk/40.2 sec) |
Script error: No such module "ClockPhase". 3,943–(Noon/6,000)-8,058
(4115 Gtk/3:25) | |
| 11 | Script error: No such module "ClockPhase". 1,372–1,865
(493 Gtk/24.65 sec) |
Script error: No such module "ClockPhase". 10,136–10,628
(492 Gtk/24.6 sec) |
Script error: No such module "ClockPhase". 2,876–4,108
(1,232 Gtk/1:01.6) |
Script error: No such module "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 | Script error: No such module "ClockPhase". 1,866–2,444
(578 Gtk/28.9 sec) |
Script error: No such module "ClockPhase". 9,557–10,135
(578 Gtk/28.9 sec) |
Script error: No such module "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 | Script error: No such module "ClockPhase". 2,445–3,175
(730 Gtk/36.5 sec) |
Script error: No such module "ClockPhase". 8,826–9,556
(730 Gtk/36.5 sec) |
N/A | N/A | N/A | N/A |
| 14 | Script error: No such module "ClockPhase". 3,176–4,294
(1,118 Gtk/55.9 sec) |
Script error: No such module "ClockPhase". 7,706–8,825
(1,119 Gtk/55.95 sec) |
N/A | N/A | N/A | N/A |
| 15 | Script error: No such module "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, in Template:Editions, also Minecraft:the End. in Template:Editions, 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
{{#vardefine: control | right click on mouse or left trigger on gamepad }}Using 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.
in Template:Editions, inverted daylight detectors in the Nether always produce a signal strength of 15; in the End, they work similarly to in the Overworld. in Template:Editions, 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 fuel in Minecraft:furnaces, smelting 1.5 items per block.
Note blocks
Daylight detectors can be placed under note blocks to produce "bass" sounds.
Sounds
Data values
ID
Template:!((Java EditionTemplate:))!: Template:ID table Template:ID table
Template:!((Bedrock EditionTemplate:))!: Template:ID table Template:ID table Template:ID table
Block states
{{#vardefine:params|0 }}Template:Hatnote
Template:!((Java EditionTemplate:))!: Template:Bst Template:Bst
Template:!((Bedrock EditionTemplate:))!: 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.
- REDIRECT Template:Edition
Template:Rcat: {{#vardefine:params|0 }}Template:Hatnote
<section begin="block data"/>
- Template:Nbt/sprite Block entity data
<section end="block data"/>
- REDIRECT Template:Edition
Videos
- REDIRECT Template:YouTube
History
Development
Java Edition
Bedrock Edition
Legacy Console Edition
New Nintendo 3DS Edition
Data history
Issues
Script error: No such module "Issue list".
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 Mojang.
References
<references group="">
</references>
External links
- Block of the Month: Daylight Detector – Minecraft.net on December 14, 2023
| |||||||
|
| |||||||
Template:Article otherTemplate:Article other
de:Tageslichtsensor es:Sensor de luz solar fr:Capteur de lumière ja:日照センサー ko:햇빛 감지기 nl:Daglichtsensor pl:Detektor światła dziennego pt:Detector de Luz Solar ru:Датчик дневного света zh:阳光探测器