Daylight Detector
Renewable |
Yes |
---|---|
Stackable |
Yes (64) |
Tool | |
Blast resistance |
0.2 |
Hardness |
0.2 |
Luminant |
No |
Transparent |
Yes |
Flammable |
No |
Catches fire from lava |
Yes |
A daylight detector[a] is a block that outputs a redstone signal based on sunlight.
Contents
Obtaining[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 or add-ons.[Bedrock Edition only]
Block | Daylight Detector | |
---|---|---|
Hardness | 0.2 | |
Tool | ||
Breaking time[A] | ||
Default | 0.3 | |
Wooden | 0.15 | |
Stone | 0.1 | |
Iron | 0.05 | |
Diamond | 0.05 | |
Netherite | 0.05 | |
Golden | 0.05 |
- ↑ Times are for unenchanted tools as wielded by players with no status effects, measured in seconds. For more information, see Breaking § Speed.
Crafting[edit]
Ingredients | Crafting recipe |
---|---|
Glass + Nether Quartz + Any wood Slab |
Usage[edit]
Redstone component[edit]
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 exposure to daylight is low enough (inverted daylight detector mode).
- 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, 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 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 gametime[JE only]/daytime[BE only]. Block update have no effect on daylight detectors.
Daylight Detector[edit]
The daylight detector power level depends on the time of day, the weather, and the internal sky light level.
Power | Clear | Rain or Snowfall | Thunder | |||
---|---|---|---|---|---|---|
Time ↓ | Time ↑ | Time ↓ | Time ↑ | Time ↓ | Time ↑ | |
0 | 13670–22330 | 13670–22330 | 13670–22330 | |||
1 | 22331–22781 | 13219–13669 | 22331–22798 | 13203–13669 | 22331–22943 | 13058–13669 |
2 | 22782–23069[JE only]/23070[BE only] | 12931–13218 | 22799–23231 | 12769[JE only]/12770[BE only]-13202 | 22944–23352 | 12648–13057 |
3 | 23070[JE only]/23071[BE only]-23296 | 12705–12930 | 23232–23504 | 12497–12768[JE only]/12769[BE only] | 23353–23700 | 12300–12647 |
4 | 23297–23529 | 12471–12704 | 23505–23745 | 12256–12496 | 23701–59 | 11941[JE only]/11942[BE only]-12299 |
5 | 23530–23767 | 12233–12470 | 23746–23991 | 12010–12255 | 60–441 | 11560–11940[JE only]/11941[BE only] |
6 | 23768–23960 | 12041–12232 | 23992–394 | 11607–12009 | 442–1039 | 10962–11559 |
7 | 23961–166 | 11835–12040 | 395–882 | 11119–11606 | 1040–1735 | 10266–10961 |
8 | 167–535 | 11465[JE only]/11466[BE only]-11834 | 883–1429[JE only]/1430[BE only] | 10571–11118 | 1736–2608 | 9392–10265 |
9 | 536–933 | 11067–11464[JE only]/11465[BE only] | 1430[JE only]/1431[BE only]-2069 | 9931–10570 | 2609–3942 | 8059–9391 |
10 | 934–1371 | 10629–11066 | 2070–2875 | 9125[JE only]/9126[BE only]-9930 | 3943–8058 | |
11 | 1372–1865 | 10136–10628 | 2876–4108 | 7892–9124[JE only]/7893–9125[BE only] | N/A | N/A |
12 | 1866–2444 | 9557–10135 | 4109–7891[JE only]/7892[BE only] | N/A | N/A | |
13 | 2445–3175 | 8826–9556 | N/A | N/A | N/A | N/A |
14 | 3176–4294 | 7706–8825 | N/A | N/A | N/A | N/A |
15 | 4295–7705 | 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 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 an inverted daylight detector actually outputs a strength of 11 at midnight when it's clear weather, 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.
Note Blocks[edit]
Daylight detectors can be placed under note blocks to produce "bass" sound.
Sounds[edit]
Sound | Subtitle | Source | Description | Namespaced ID | Translation key | Volume | Pitch | Attenuation distance |
---|---|---|---|---|---|---|---|---|
Block broken | Blocks | Breaking the block | block.wood.break | subtitles.block.generic.break | 1.0 | 0.8 | 16 | |
None[sound 1] | Blocks | Falling on the block with fall damage | block.wood.fall | None[sound 1] | 0.5 | 0.75 | 16 | |
Block breaking | Blocks | Mining the block | block.wood.hit | subtitles.block.generic.hit | 0.25 | 0.5 | 16 | |
Block placed | Blocks | Placing the block | block.wood.place | subtitles.block.generic.place | 1.0 | 0.8 | 16 | |
Footsteps | Blocks | Walking on the block | block.wood.step | subtitles.block.generic.footsteps | 0.15 | 1.0 | 16 |
Sound | Source | Description | Namespaced ID | Volume | Pitch |
---|---|---|---|---|---|
? | Blocks | Breaking the block | dig.wood | 1.0 | 0.8 |
? | Blocks | Falling on the block with fall damage | fall.wood | 0.4 | 1.0 |
? | Blocks | Mining the block | hit.wood | 0.23 | 0.5 |
? | Blocks | Jumping from the block | jump.wood | 0.12 | 1.0 |
? | Blocks | Falling on the block without fall damage | land.wood | 0.18 | 1.0 |
? | Blocks | Walking on the block | step.wood | 0.3 | 1.0 |
? | Blocks | Placing the block | use.wood | 1.0 | 0.8 |
Data values[edit]
ID[edit]
Name | Namespaced ID | Translation key |
---|---|---|
Daylight Detector | daylight_detector | block.minecraft.daylight_detector |
Name | Namespaced ID |
---|---|
Block entity | daylight_detector |
Name | Namespaced ID | Numeric ID | Translation key |
---|---|---|---|
Daylight Sensor | daylight_detector | 151 | tile.daylight_detector.name |
Inverted Daylight Sensor | daylight_detector_inverted | 178 | tile.daylight_detector_inverted.name |
Name | Savegame ID |
---|---|
Block entity | DaylightDetector |
Metadata[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]
Name | Default value | Allowed values | Description |
---|---|---|---|
inverted | false | false true | If true, the daylight detector is inverted. |
power | 0 | 0 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. |
Name | Default value | Allowed values | Description |
---|---|---|---|
redstone_signal | 0 | 0 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 data[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.
- Block entity data
- Tags common to all block entities see Template:Nbt inherit/blockentity/template
History[edit]
July 6, 2010 | Notch suggests that he may implement daylight sensors (in the blog post mentioning Alpha 1.0.2_01). | ||||
---|---|---|---|---|---|
November 24, 2012 | Jeb stated that there may be a daylight sensor. | ||||
January 2, 2013 | Jeb tweeted an image of the daylight sensor. | ||||
Java Edition | |||||
1.5 | 13w01a | ![]() | |||
1.8 | 14w31a | ![]() | |||
1.9 | 15w47a | Daylight sensors no longer emit signal during the night when sufficiently shaded. | |||
Inverted daylight sensors now emit a variable signal at night. | |||||
1.11 | 16w32a | The block entity ID has now been changed from DLDetector to daylight_detector . | |||
1.13 | 17w47a | "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.0 | build 1 | ![]() ![]() | |||
0.15.0 | build 1 | Daylight sensors can now be moved by pistons. | |||
Legacy Console Edition | |||||
TU19 | CU7 | 1.12 | Patch 1 | ![]() | |
TU25 | CU14 | 1.17 | ![]() | ||
New Nintendo 3DS Edition | |||||
0.1.0 | ![]() ![]() |
Gallery[edit]
The 13w01a snapshot image released by Mojang.
Issues[edit]
Issues relating to "Daylight Sensor" or "Daylight Detector" are maintained on the bug tracker. Report issues there.
Notes[edit]
- ↑ Known as Daylight Detector in Java Edition and Daylight Sensor in Bedrock Edition.
References[edit]