Minecraft:Daylight Detector: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
| image2caption = Inverted | | image2caption = Inverted | ||
| invimage = Daylight Detector | | invimage = Daylight Detector | ||
| invimage2 = | | invimage2 = Daylight Detector Inverted | ||
| transparent = Yes | | transparent = Yes | ||
| light = No | | light = No | ||
| Line 15: | Line 15: | ||
| lavasusceptible = Yes | | lavasusceptible = Yes | ||
}} | }} | ||
A '''daylight detector''' is a [[Minecraft:block]] that outputs a [[Minecraft:redstone]] signal based on its exposure to [[Minecraft:Light#Internal light level|sky light]]. | A '''daylight detector''' (also known as a '''daylight sensor''') is a [[Minecraft:block]] that outputs a [[Minecraft:redstone]] signal based on its exposure to [[Minecraft:Light#Internal light level|sky light]]. | ||
{{Control|Using}} the detector inverts it, causing it instead to output a constant strong signal that weakens from exposure to sky light. | {{Control|Using}} the detector inverts it, causing it instead to output a constant strong signal that weakens from exposure to sky light. | ||
| Line 21: | Line 21: | ||
== Obtaining == | == Obtaining == | ||
=== Breaking === | === Breaking === | ||
Daylight detectors can be mined by hand or with any tool, but [[Minecraft:axe]]s are the quickest. Inverted daylight detectors cannot be collected directly; they drop a regular daylight detector. {{IN|BE}}, the inverted detector may be obtained | Daylight detectors can be mined by hand or with any tool, but [[Minecraft:axe]]s are the quickest. Inverted daylight detectors cannot be collected directly; they drop a regular daylight detector. {{IN|BE}}, the inverted detector may be obtained with {{control|pick block}} in [[Minecraft:Creative]] mode,<ref>[[Minecraft:bugtracker:MCPE-179063|MCPE-179063]] – Pickblocking an inverted Daylight Sensor produces "tile.daylight_detector_inverted.name" block</ref> or via inventory editing or add-ons. | ||
{{breaking row|horizontal=1|Daylight Detector|Axe|foot=1}} | {{breaking row|horizontal=1|Daylight Detector|Axe|foot=1}} | ||
| Line 44: | Line 44: | ||
{{see also|Redstone circuits}} | {{see also|Redstone circuits}} | ||
A daylight detector | A daylight detector is 0.375 blocks high (3/8ths of a block). {{IN|je}} Daylight detectors cannot be moved by [[Minecraft:piston]]s. [[Minecraft:Water]] and [[Minecraft:lava]] flow around daylight detectors without affecting them. | ||
A | A Daylight detector can be changed to its ''inverted'' state by {{Control|using}} it. | ||
====Activation==== | |||
A daylight detector activates when exposed to sufficient daylight ([[#Default mode|default mode]]) or when exposure to daylight is low enough ([[#Inverted mode|inverted mode]]). Placing blocks that partially or fully block sky light anywhere above a daylight detector affects its output signal. | |||
: | Sources of block light ([[Minecraft:torch]]es, [[Minecraft:glowstone]], etc.) cannot activate a daylight detector. | ||
====Behavior==== | |||
An active daylight detector emits weak power in all six directions. | |||
The output signal of daylight detectors is updated once every second (specifically, it's updated whenever [[Minecraft:gametime]]{{only|je}} or [[Minecraft:daytime]]{{only|be}} is perfectly divisible by 20). It can also be manually updated by {{control|using}} the daylight detector. | |||
==== Default mode ==== | |||
In the [[Minecraft:Overworld]], a daylight detector's output [[Minecraft:signal strength]] depends on the time of day, the weather, the detector's exposure to the sky, and the [[Minecraft:Light#Internal light level|'''internal sky light level''']]. | |||
==== | |||
In the [[Minecraft:Overworld]], a daylight detector's | |||
{| class="wikitable" style="text-align:center" | {| class="wikitable" style="text-align:center" | ||
| Line 283: | Line 273: | ||
|} | |} | ||
A non-inverted daylight detector never produces a signal in [[Minecraft:the Nether]] and | A non-inverted daylight detector never produces a signal in [[Minecraft:the Nether]] and [[Minecraft:the End]]. | ||
==== Inverted mode ==== | |||
Unlike what the name might imply, the output of the inverted detector is not a simple inversion of the daylight detector's output: a much simpler algorithm that depends on the [[Minecraft:Light#Internal_light_level|'''internal sky light level''']] is used instead. 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|Java}}, inverted daylight detectors in the Nether always produce a signal strength of 15. In the End, they work identically to how they work in the Overworld at noon in clear weather conditions. | |||
{{ | |||
{{In|Bedrock}}, 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. | The cells on inverted daylight detectors are emissive if [[Minecraft:Vibrant Visuals]] is enabled. | ||
| Line 310: | Line 302: | ||
|foot=1}} | |foot=1}} | ||
{{ID table | {{ID table | ||
|edition=java | |||
|displayname=Block entity | |displayname=Block entity | ||
|spritename=daylight-detector | |spritename=daylight-detector | ||
| Line 327: | Line 320: | ||
|id=151}} | |id=151}} | ||
{{ID table | {{ID table | ||
|displayname= | |displayname=Daylight Detector Inverted | ||
|spritetype=block | |spritetype=block | ||
|spritename=Inverted Daylight Detector | |||
|nameid=daylight_detector_inverted | |nameid=daylight_detector_inverted | ||
|id=178 | |id=178 | ||
|form=block | |form=block | ||
|translationkey= | |translationkey=tile.daylight_detector_inverted.name | ||
|foot=1}} | |foot=1}} | ||
{{ID table | {{ID table | ||
|edition=bedrock | |||
|notnamespaced=y | |notnamespaced=y | ||
|displayname=Block entity | |displayname=Block entity | ||
| Line 357: | Line 352: | ||
{{el|java}}: | {{el|java}}: | ||
{{see also|Block entity format}} | {{see also|Block entity format}} | ||
<section begin="block data"/><div class="treeview"> | <section begin="block data" /><div class="treeview"> | ||
* {{nbt|compound}} Block entity data | * {{nbt|compound}} Block entity data | ||
** {{nbt inherit/blockentity}} | ** {{nbt inherit/blockentity}} | ||
</div><section end="block data"/> | </div><section end="block data" /> | ||
{{el|bedrock}}: | {{el|bedrock}}: | ||
| Line 426: | Line 421: | ||
<gallery> | <gallery> | ||
File:MCTimegraph.png|A graph visualising the states of a Daylight Detector under different weather conditions (ends rounded to the nearest quarter of a thousand Game-ticks) | File:MCTimegraph.png|A graph visualising the states of a Daylight Detector under different weather conditions (ends rounded to the nearest quarter of a thousand Game-ticks) | ||
File:Sunny's Sun.png|An example of lights being powered upon the sunrise | File:Sunny's Sun.png|An example of lights being powered upon the sunrise | ||
File:Daylight Art.png|Art made using both states of the daylight detector | File:Daylight Art.png|Art made using both states of the daylight detector | ||
File:Waterproofed Lamp.png|One of the more common uses of the block, a simple street light using a redstone lamp | File:Waterproofed Lamp.png|One of the more common uses of the block, a simple street light using a redstone lamp | ||
</gallery> | </gallery> | ||
=== Mojang screenshots === | === Mojang screenshots === | ||
<gallery> | <gallery> | ||
File:Jeb Daylight Detector.png|First image of a daylight detector | File:Jeb Daylight Detector.png|First image of a daylight detector | ||
File:13w01a Banner.png|The 13w01a snapshot image released by [[Minecraft:Mojang]] | File:13w01a Banner.png|The 13w01a snapshot image released by [[Minecraft:Mojang]] | ||
File:Daylight-sensor-recipe.jpeg | File:Daylight-sensor-recipe.jpeg | ||
</gallery> | </gallery> | ||
Latest revision as of 11:06, 13 October 2026
Template:Infobox block A daylight detector (also known as a daylight sensor) 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 with 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 is 0.375 blocks high (3/8ths of a block). Template:IN Daylight detectors cannot be moved by Minecraft:pistons. Minecraft:Water and Minecraft:lava flow around daylight detectors without affecting them.
A Daylight detector can be changed to its inverted state by Template:Control it.
Activation
A daylight detector activates when exposed to sufficient daylight (default mode) or when exposure to daylight is low enough (inverted mode). Placing blocks that partially or fully block sky light anywhere above a daylight detector affects its output signal.
Sources of block light (Minecraft:torches, Minecraft:glowstone, etc.) cannot activate a daylight detector.
Behavior
An active daylight detector emits weak power in all six directions.
The output signal of daylight detectors is updated once every second (specifically, it's updated whenever Minecraft:gametimeTemplate:Only or Minecraft:daytimeTemplate:Only is perfectly divisible by 20). It can also be manually updated by Template:Control the daylight detector.
Default mode
In the Minecraft:Overworld, a daylight detector's output 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 Minecraft:the End.
Inverted mode
Unlike what the name might imply, the output of the inverted detector is not a simple inversion of the daylight detector's output: a much simpler algorithm that depends on the internal sky light level is used instead. 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 identically to how they work in the Overworld at noon in clear weather conditions.
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.
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:阳光探测器