Daylight Detector

From Minecraft Wiki
(Redirected from Daylight Sensor)
Jump to: navigation, search
Daylight Detector
Daylight Detector JE1 BE1.pngInverted Daylight Detector JE1 BE1.png
Transparent

Yes

Luminant

No

Blast resistance

0.2

Tool

Renewable

No[until 1.16]

Stackable

Yes (64)

Flammable

No

Catches fire from lava?

Yes

Tom Stone Mojang avatar.png

We're big fans of the daylight sensor, seeing as it can sense when night falls and automatically close your doors, stopping mobs from getting in. Very handy if you're crafting in your basement and lose track of time!

Tom Stone[1]

A daylight detector[a] is a block that outputs a redstone signal based on sunlight (or lack thereof).

Obtaining[edit]

Loot[edit]

From block loot[edit]

Daylight detectors can be broken fairly easily by hand, but can be broken faster by using an axe.

Namespaced IDSourceDefault
blocks/daylight_detectorDaylight Detector1 (100%)

Recipes[edit]

From crafting[edit]

Ingredients Crafting recipe
Glass +
Nether Quartz +
Any wood Slab

Usage[edit]

Breaking[edit]

Daylight detectors can be broken fairly easily by hand, but can be broken faster by using an axe. Inverted daylight detectors cannot be collected directly; they drop a regular daylight detector. In Bedrock Edition the inverted sensor may be obtained via inventory editing.‌[Bedrock Edition only]

Block Daylight Detector
Hardness 0.2
Tool
Breaking time[note 1]
Default 0.35
Wooden 0.2
Stone 0.1
Iron 0.05
Diamond 0.05
Netherite 0.05
Golden 0.05
  1. Times are for unenchanted tools in seconds. For more information, see Haste § Instant mining.

Block loot[edit]

Namespaced IDSourceDefault
blocks/daylight_detectorDaylight Detector1 (100%)

Redstone component[edit]

Graphed daylight detector output in clear weather.

A daylight detector can be used to produce redstone power in proportion to the daylight or night time.

A daylight detector is 0.375 blocks high (3/8ths of a block). Daylight detectors can be moved by pistons.‌[Bedrock Edition only] Water and lava flows 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 its sky light level drops to 0 (inverted daylight detector mode).
An inverted daylight detector activates when exposure to daylight is low enough (inverted daylight detector mode).
Sources of block light (torches, glowstone, etc.) cannot activate a daylight detector.
Behavior
An active daylight detector:
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 gametime‌[JE only]/daytime‌[BE only]. Block update have no effect on daylight detectors.

Daylight Detector[edit]

If a daylight detector has an opaque block above it, then it emits a weaker signal, or none at all, as it is directly proportional to the sky light.

The daylight detector power level should be 0 from time 13680 to 22340.

Daylight detector power levels
Power Clear Rain Thunder
Time reached Time dissipates Light levels Time reached Time dissipates Light levels Time reached Time dissipates Light levels
0 13680 22340 4–5 13680 22340 4–5 13680 22340 4–5
1 22340 13680 4–7 22340 13680 4–7 22340 13680 4–6
2 22800 13220 7–9 22800 13220 6–8 22960 13060 6–8
3 23080 12940 9–11 23240 12780 8–10 23360 12660 7–8
4 23300 12720 11–12 23520 12500 9–11 23700 12300 8–10
5 23540 12480 12–13 23760 12260 10–12 60 11940 10
6 23780 12240 13–14 0 12020 11–12 460 11560 10
7 23960 12040 15 400 11620 12 1040 10980 10
8 180 11840 15 900 11120 12 1740 10280 10
9 540 11480 15 1440 10580 12 2620 9400 10
10 940 11080 15 2080 9940 12 3960 8060 10
11 1380 10640 15 2880 9140 12 N/A N/A N/A
12 1880 10140 15 4120 7900 12 N/A N/A N/A
13 2460 9560 15 N/A N/A N/A N/A N/A N/A
14 3180 8840 15 N/A N/A N/A N/A N/A N/A
15 4320 7720 15 N/A N/A N/A N/A N/A N/A

Inverted Daylight Detector[edit]

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 only on the level of light from the sky. Specifically, it outputs a signal strength of 15 minus the current light level, meaning that an inverted daylight detector actually outputs a strength of 11 at midnight, 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 isn't already full, and prevents it from reaching zero.

The inverted daylight detector cannot be obtained as an item in Java Edition. Mining an inverted daylight detector simply drops a regular daylight detector.

Fuel[edit]

Daylight detectors can be used as a fuel in furnaces, smelting 1.5 items per block.

Sounds[edit]

Sound Subtitle Namespaced ID Subtitle ID Source Pitch Volume Attenuation distance
Block breaking block.wood.hit subtitles.block.generic.hit Blocks 0.5 0.25 16
Block broken block.wood.break subtitles.block.generic.break Blocks 0.8 1.0 16
Block placed block.wood.place subtitles.block.generic.place Blocks 0.8 1.0 16
Footsteps block.wood.step subtitles.block.generic.footsteps Blocks 1.0 0.15 16
No subtitle block.wood.fall (Plays when fallen on from a height) Blocks 0.75 0.5 16

Data values[edit]

ID[edit]

Java Edition:

NameNamespaced IDTranslation key
Daylight Detectordaylight_detector block.minecraft.daylight_detector
NameNamespaced ID
Block entitydaylight_detector

Bedrock Edition:

NameNamespaced IDNumeric IDTranslation key
Daylight Sensordaylight_detector 151tile.daylight_detector.name
Inverted Daylight Sensordaylight_detector_inverted 178tile.daylight_detector_inverted.name
NameNamespaced ID
Block entityDaylightDetector

Block data[edit]

In Bedrock Edition, a daylight sensor's block data stores its power level:

Bits Values
0x1
0x2
0x4
0x8
Four bits storing a value from 0 to 15 representing the daylight sensor's current redstone power level.

Block states[edit]

Java Edition:

Name Default value Allowed values Description
invertedfalsefalse
true
If true, the daylight detector is inverted.
power00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
The current redstone power level produced by the daylight sensor.

Bedrock Edition:

Name Default value Allowed values Description
redstone_signal00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
The current redstone power level produced by the daylight sensor.

Block entity[edit]

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.

Video[edit]

History[edit]

July 6, 2010Notch suggests that he may implement daylight sensors (in the blog post mentioning Alpha 1.0.2_01).
November 24, 2012Jeb stated that there may be a daylight sensor.
January 2, 2013Jeb tweeted an image of the daylight sensor.
Java Edition
1.513w01aDaylight Detector JE1 BE1.png Added daylight sensors.
1.814w31aInverted Daylight Detector JE1 BE1.png Daylight sensors can now be toggled between day and night by using them.
1.915w47aDaylight sensors no longer emit signal during the night when sufficiently shaded.
Inverted daylight sensors now emit a variable signal at night.
1.1116w32aThe block entity ID has now been changed from DLDetector to daylight_detector.
1.1317w47a"Daylight Sensor" has now been renamed to "Daylight Detector".
The different block IDs for the daylight detector have now been merged into one ID.
Added an inverted block state to daylight detectors.
Prior to The Flattening, these blocks' numeral IDs were 151 and 178.
Pocket Edition Alpha
0.13.0build 1Daylight Detector JE1 BE1.png Inverted Daylight Detector JE1 BE1.png Added daylight sensors.
0.15.0build 1Daylight sensors can now be moved by pistons.
Legacy Console Edition
TU19CU71.12Patch 1Daylight Detector JE1 BE1.png Added daylight sensors.
TU25CU141.17Inverted Daylight Detector JE1 BE1.png Daylight sensors can now be toggled between day and night by using them.
New Nintendo 3DS Edition
0.1.0Daylight Detector JE1 BE1.png Inverted Daylight Detector JE1 BE1.png Added daylight detectors.

Gallery[edit]

Issues[edit]

Issues relating to "Daylight Sensor" or "Daylight Detector" are maintained on the bug tracker. Report issues there.

Notes[edit]

  1. Known as Daylight Detector in Java Edition and Daylight Sensor in Bedrock Edition.

References[edit]