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 detectorTemplate:Efn is a block that outputs a redstone signal based on sunlight.
Contents
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.[Bedrock Edition only]
Block | Daylight Detector | |
---|---|---|
Hardness | 0.2 | |
Tool | ||
Breaking time[FN 1] | ||
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
Ingredients | Crafting recipe |
---|---|
Glass + Nether Quartz + Any wood Slab |
Usage
Redstone component
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
The daylight detector power level depends on the time of day, the weather, and the internal sky light level.
Inverted Daylight Detector
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
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" sound.
Sounds
Sound | Subtitle | Source | Description | Namespaced ID | Translation key | Volume | Pitch | Attenuation distance |
---|---|---|---|---|---|---|---|---|
File:Wood dig1.ogg | Block broken | Blocks | Once the block has broken | block.wood.break | subtitles.block.generic.break | 1.0 | 0.8 | 16 |
File:Wood hit1.ogg | None[sound 1] | Blocks | Falling on the block with fall damage | block.wood.fall | None[sound 1] | 0.5 | 0.75 | 16 |
File:Wood hit1.ogg | Block breaking | Blocks | While the block is in the process of being broken | block.wood.hit | subtitles.block.generic.hit | 0.25 | 0.5 | 16 |
File:Wood dig1.ogg | Block placed | Blocks | When the block is placed | block.wood.place | subtitles.block.generic.place | 1.0 | 0.8 | 16 |
File:Wood hit1.ogg | 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 | Once the block has broken | dig.wood | 1.0 | 0.8 |
? | Blocks | Falling on the block with fall damage | fall.wood | 0.4 | 1.0 |
? | Blocks | While the block is in the process of being broken | 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 | When the block is placed | use.wood | 1.0 | 0.8 |
Data values
ID
Name | Namespaced ID | Form | Translation key |
---|---|---|---|
Daylight Detector | daylight_detector | Block & Item | block.minecraft.daylight_detector |
Name | Namespaced ID |
---|---|
Block entity | daylight_detector |
Name | Namespaced ID | Numeric ID | Form | Translation key |
---|---|---|---|---|
Daylight Sensor | daylight_detector | 151 | Block & Item | tile.daylight_detector.name |
Inverted Daylight Sensor | daylight_detector_inverted | 178 | Block | tile.daylight_detector_inverted.name |
Name | Savegame ID |
---|---|
Block entity | DaylightDetector |
Metadata
In Bedrock Edition, a daylight sensor's block data stores its power level:
Block states
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.
History
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 | 32px Added daylight sensors. | |||
1.8 | 14w31a | 32px Daylight sensors can now be toggled between day and night by using them. | |||
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 | |||||
v0.13.0 | build 1 | 32px 32px Added daylight sensors. | |||
v0.15.0 | build 1 | Daylight sensors can now be moved by pistons. | |||
Legacy Console Edition | |||||
TU19 | CU7 | 1.12 | Patch 1 | 32px Added daylight sensors. | |
TU25 | CU14 | 1.17 | 32px Daylight sensors can now be toggled between day and night by using them. | ||
New Nintendo 3DS Edition | |||||
0.1.0 | 32px 32px Added daylight detectors. |
Gallery
- 13w01a Banner.png
The 13w01a snapshot image released by Mojang.
Issues
Issues relating to "Daylight Sensor" or "Daylight Detector" are maintained on the bug tracker. Report issues there.
Notes
References
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:阳光探测器
- Pages with broken file links
- Renewable resources
- Redstone recipe
- Recipe using Glass
- Recipe using Nether Quartz
- Recipe using Slab
- Redstone
- Upcoming
- Bedrock Edition upcoming tag
- Java Edition upcoming tag
- Pages using deprecated sprite names
- Pages with missing sprites
- Blocks
- Mechanics
- Redstone mechanics
- Mechanisms
- Manufactured blocks
Bedrock Edition upcoming tag
Blocks
Java Edition upcoming tag
Manufactured blocks
Mechanics
Mechanisms
Pages using deprecated sprite names
Pages with broken file links
Pages with missing sprites
Recipe using Glass
Recipe using Nether Quartz
Recipe using Slab
Redstone
Redstone mechanics
Redstone recipe
Renewable resources
Upcoming