Daylight Detector

Daylight Detector
File:Daylight Detector.pngFile:Inverted Daylight Detector.png

 Stackable
 Tool
 Catches fire from lava | Yes

{{ #vardefine: $lang-list | {{ #dplreplace:
/ ar
/ ca / cz
/ dk
/ el / eo / et
/ fa / fin
/ ga
/ he / hr
/ id / is
/ lv / lt
/ moh
/ no
/ pt / ph
/ ro
/ sr / sk / se
/ th / tl / tr
/ ua
/ vi
/ yi
/
}}
A **daylight detector**Template:Efn is a block that outputs a redstone signal based on sunlight.

## Obtaining

### Breaking

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.

 Tool
 Golden | 0.05

1. ↑ Times are for unenchanted tools as wielded by players with no status effects, measured in seconds. For more information, see Breaking § Speed.

### Crafting

**Lua error: callParserFunction: function "#dplvar" was not found.**

## Usage

### Redstone component

 File:Daylight sensor output clear.png
See also: Redstone circuit

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.‌{{#vardefine:$title|This statement only applies to {{#vardefine: editions}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}

```
       {{#vardefine: edition       |{{#var: argval}} }}
               {{#vardefine: edition-s     |{{#var: edition}}}}
               {{#vardefine: edition-l     |{{#var: edition-s}} Edition}}
           {{#var: editions}} {{#var: edition-l}}
       }}
  }}{{#var: editions}} }}[*{{#vardefine: editions}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}
 {{#vardefine: edition |{{#var: argval}} }}
 {{#vardefine: edition-s |{{#var: edition}}}}
 {{#vardefine: edition-l |{{#var: edition-s}} Edition}}
 {{#var: editions}} [[{{#var: linkname}}|{{#var: edition-l}}]]
 }}
 }}{{#var: editions}} 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).
Sources of block light (torches, 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, 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‌{{#vardefine:$title|This statement only applies to {{#vardefine: editions}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}

```
       {{#vardefine: edition       |{{#var: argval}} }}
               {{#vardefine: edition-s     |{{#var: edition}}}}
               {{#vardefine: edition-l     |{{#var: edition-s}} Edition}}
           {{#var: editions}} {{#var: edition-l}}
       }}
  }}{{#var: editions}} }}[*{{#vardefine: editions}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}
 {{#vardefine: edition |{{#var: argval}} }}
 {{#vardefine: edition-s |{{#var: edition}}}}
 {{#vardefine: edition-l |{{#var: edition-s}} Edition}}
 {{#var: editions}} & [[{{#var: linkname}}|{{#var: edition}}]]
 }}
 }}{{#var: editions}} only*]/daytime‌{{#vardefine:$title|This statement only applies to {{#vardefine: editions}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval |     {{#vardefine:game-{{#var:argnum}}}}
       {{#vardefine: edition       |{{#var: argval}} }}
               {{#vardefine: edition-s     |{{#var: edition}}}}
               {{#vardefine: edition-l     |{{#var: edition-s}} Edition}}
           {{#var: editions}} {{#var: edition-l}}
       }}
  }}{{#var: editions}} }}[*{{#vardefine: editions}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}
 {{#vardefine: edition |{{#var: argval}} }}
 {{#vardefine: edition-s |{{#var: edition}}}}
 {{#vardefine: edition-l |{{#var: edition-s}} Edition}}
 {{#var: editions}} & [[{{#var: linkname}}|{{#var: edition}}]]
 }}
 }}{{#var: editions}} only*]. Block update have no effect on daylight detectors.

```

#### Daylight Detector

The daylight detector power level depends on the time of day, the weather, and the **internal sky light level**.

#### Inverted Daylight Detector

{{#vardefine: control | right click on mouse or left trigger on most controllers }}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 {{#vardefine: editions}}{{#vardefine:nosuffix}}{{#vardefine:nosuffix-1}}{{#vardefine:nosuffix+1}}{{#vardefine:nosuffix+2}}{{#fornumargs: argnum | argval | {{#vardefine:game-{{#var:argnum}}}}

```
       {{#vardefine: edition       |{{#var: argval}} }}
               {{#vardefine: edition-s     |{{#var: edition}}}}
               {{#vardefine: edition-l     |{{#var: edition-s}} Edition}}
           {{#var: editions}} [[{{#var: linkname}}|{{#var: edition-l}}]]
       }}
  }}{{#var: editions}}. Mining an inverted daylight detector simply drops a regular daylight detector.

```

### Fuel

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

### Note Blocks

Daylight detectors can be placed under note blocks to produce "bass" sounds.

## Sounds

*Java Edition*:
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**

Bedrock Edition:
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**
**Lua error: callParserFunction: function "#var" was not found.**

## Data values

### ID

*Java Edition*:

{{#vardefine: idtable | 1 }}

```
 #dplreplace: {{
   #dplreplace: ?

 }}

```

{{#vardefine: idtable | 1 }}

```
 #dplreplace: {{
   #dplreplace: ?

 }}

```

Bedrock Edition:

{{#vardefine: idtable | 1 }}

{{#vardefine: idtable | 1 }}

```
 #dplreplace: {{
   #dplreplace: ?

 }}

```

```
 #dplreplace: {{
   #dplreplace: ?

 }}

```

{{#vardefine: idtable | 1 }}

```
 #dplreplace: {{
   #dplreplace: ?

 }}

```

### Block states

See also: Block states

Daylight Detector/BS

### 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.

*Java Edition*:

See also: Block entity format
Daylight Detector/BE

Bedrock Edition:

See Bedrock Edition level format/Block entity format.
## History

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

1. vardefine: $name |jeb\_}}{{
2. vardefine: deleted |}}https://web.archive.org/web/https://twitter.com/{{#var: $name }}/status/286493347756011520 January 2, 2013]

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-mode| java }}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}<th class="nowrap" rowspan="{{#vardefine: history-ver | 1.5 }}{{#vardefine: history-index| **Expression error: Unrecognized punctuation character "{".** }}{{
 #var\_final: history-rowspan-{{#var: history-index}} }}" colspan="2">[[{{#dplreplace: {{#var: $ver }} | /^minecraft /i }}|{{
 #dplreplace: 1.5 | ^\((.\*?)\)$ | \1 }}]]{{
 #fornumargs: argnum | argval | }}

```

```

```
     }}{{

```

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}<th class="nowrap" rowspan="{{#vardefine: history-ver | 1.8 }}{{#vardefine: history-index| **Expression error: Unrecognized punctuation character "{".** }}{{
 #var\_final: history-rowspan-{{#var: history-index}} }}" colspan="2">[[{{#dplreplace: {{#var: $ver }} | /^minecraft /i }}|{{
 #dplreplace: 1.8 | ^\((.\*?)\)$ | \1 }}]]{{
 #fornumargs: argnum | argval | }}

```

```

```
     }}{{

```

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}<th class="nowrap" rowspan="{{#vardefine: history-ver | 1.9 }}{{#vardefine: history-index| **Expression error: Unrecognized punctuation character "{".** }}{{
 #var\_final: history-rowspan-{{#var: history-index}} }}" colspan="2">[[{{#dplreplace: {{#var: $ver }} | /^minecraft /i }}|{{
 #dplreplace: 1.9 | ^\((.\*?)\)$ | \1 }}]]{{
 #fornumargs: argnum | argval | }}

```

```

```
     }}{{

```

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}<th class="nowrap" rowspan="{{#vardefine: history-ver | 1.11 }}{{#vardefine: history-index| **Expression error: Unrecognized punctuation character "{".** }}{{
 #var\_final: history-rowspan-{{#var: history-index}} }}" colspan="2">[[{{#dplreplace: {{#var: $ver }} | /^minecraft /i }}|{{
 #dplreplace: 1.11 | ^\((.\*?)\)$ | \1 }}]]{{
 #fornumargs: argnum | argval | }}

```

```

```
     }}{{

```

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}<th class="nowrap" rowspan="{{#vardefine: history-ver | 1.13 }}{{#vardefine: history-index| **Expression error: Unrecognized punctuation character "{".** }}{{
 #var\_final: history-rowspan-{{#var: history-index}} }}" colspan="2">[[{{#dplreplace: {{#var: $ver }} | /^minecraft /i }}|{{
 #dplreplace: 1.13 | ^\((.\*?)\)$ | \1 }}]]{{
 #fornumargs: argnum | argval | }}

```

```

```
     }}{{

```

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-mode|pocket Alpha}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}<th class="nowrap" rowspan="{{#vardefine: history-ver | v0.13.0 }}{{#vardefine: history-index| **Expression error: Unrecognized punctuation character "{".** }}{{
 #var\_final: history-rowspan-{{#var: history-index}} }}" colspan="2">[[{{#dplreplace: {{#var: $ver }} | /^minecraft /i }}|{{
 #dplreplace: v0.13.0 | ^\((.\*?)\)$ | \1 }}]]{{
 #fornumargs: argnum | argval | }}

```

```

```
     }}{{

```

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}<th class="nowrap" rowspan="{{#vardefine: history-ver | v0.15.0 }}{{#vardefine: history-index| **Expression error: Unrecognized punctuation character "{".** }}{{
 #var\_final: history-rowspan-{{#var: history-index}} }}" colspan="2">[[{{#dplreplace: {{#var: $ver }} | /^minecraft /i }}|{{
 #dplreplace: v0.15.0 | ^\((.\*?)\)$ | \1 }}]]{{
 #fornumargs: argnum | argval | }}

```

```

```
     }}{{

```

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-mode|console}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-mode|new3ds}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-nomode|1}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

 {{ #vardefine:history-head|1}}{{#vardefine: history-nomode|}}{{

 #vardefine: history-rows | 45
}}{{#vardefine: history-mode|foot}}{{
 #vardefine: history-xbox-ver |}}{{
 #vardefine: history-xbone-ver |}}{{
 #vardefine: history-ps-ver |}}{{
 #fornumargs: argnum | argval | }}

## References

Template:Redstone

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:阳光探测器