Daylight Detector

From Box of Rocks WIKI
Revision as of 12:32, 11 May 2021 by 108.85.152.134 (talk) (→‎Inverted Daylight Detector)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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.

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

File:Daylight sensor output clear.png
Graphed daylight detector output in clear weather.
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.‌[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).
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

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

Daylight detector power levels when sky light level is 15
Power Clear Rain or Snowfall Thunder
Time ↓ Time ↑ Time ↓ Time ↑ Time ↓ Time ↑
0 Template:ClockPhase 13670–22330 Template:ClockPhase 13670–22330 Template:ClockPhase 13670–22330
1 Template:ClockPhase 22331–22781 Template:ClockPhase 13219–13669 Template:ClockPhase 22331–22798 Template:ClockPhase 13203–13669 Template:ClockPhase 22331–22943 Template:ClockPhase 13058–13669
2 Template:ClockPhase 22782–23069‌[JE only]/23070‌[BE only] Template:ClockPhase 12931–13218 Template:ClockPhase 22799–23231 Template:ClockPhase 12769‌[JE only]/12770‌[BE only]-13202 Template:ClockPhase 22944–23352 Template:ClockPhase 12648–13057
3 Template:ClockPhase 23070‌[JE only]/23071‌[BE only]-23296 Template:ClockPhase 12705–12930 Template:ClockPhase 23232–23504 Template:ClockPhase 12497–12768‌[JE only]/12769‌[BE only] Template:ClockPhase 23353–23700 Template:ClockPhase 12300–12647
4 Template:ClockPhase 23297–23529 Template:ClockPhase 12471–12704 Template:ClockPhase 23505–23745 Template:ClockPhase 12256–12496 Template:ClockPhase 23701–59 Template:ClockPhase 11941‌[JE only]/11942‌[BE only]-12299
5 Template:ClockPhase 23530–23767 Template:ClockPhase 12233–12470 Template:ClockPhase 23746–23991 Template:ClockPhase 12010–12255 Template:ClockPhase 60–441 Template:ClockPhase 11560–11940‌[JE only]/11941‌[BE only]
6 Template:ClockPhase 23768–23960 Template:ClockPhase 12041–12232 Template:ClockPhase 23992–394 Template:ClockPhase 11607–12009 Template:ClockPhase 442–1039 Template:ClockPhase 10962–11559
7 Template:ClockPhase 23961–166 Template:ClockPhase 11835–12040 Template:ClockPhase 395–882 Template:ClockPhase 11119–11606 Template:ClockPhase 1040–1735 Template:ClockPhase 10266–10961
8 Template:ClockPhase 167–535 Template:ClockPhase 11465‌[JE only]/11466‌[BE only]-11834 Template:ClockPhase 883–1429‌[JE only]/1430‌[BE only] Template:ClockPhase 10571–11118 Template:ClockPhase 1736–2608 Template:ClockPhase 9392–10265
9 Template:ClockPhase 536–933 Template:ClockPhase 11067–11464‌[JE only]/11465‌[BE only] Template:ClockPhase 1430‌[JE only]/1431‌[BE only]-2069 Template:ClockPhase 9931–10570 Template:ClockPhase 2609–3942 Template:ClockPhase 8059–9391
10 Template:ClockPhase 934–1371 Template:ClockPhase 10629–11066 Template:ClockPhase 2070–2875 Template:ClockPhase 9125‌[JE only]/9126‌[BE only]-9930 Template:ClockPhase 3943–8058
11 Template:ClockPhase 1372–1865 Template:ClockPhase 10136–10628 Template:ClockPhase 2876–4108 Template:ClockPhase 7892–9124‌[JE only]/7893–9125‌[BE only] N/A N/A
12 Template:ClockPhase 1866–2444 Template:ClockPhase 9557–10135 Template:ClockPhase 4109–7891‌[JE only]/7892‌[BE only] N/A N/A
13 Template:ClockPhase 2445–3175 Template:ClockPhase 8826–9556 N/A N/A N/A N/A
14 Template:ClockPhase 3176–4294 Template:ClockPhase 7706–8825 N/A N/A N/A N/A
15 Template:ClockPhase 4295–7705 N/A N/A N/A N/A

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

Java Edition:

SoundSubtitleSourceDescriptionNamespaced IDTranslation keyVolumePitchAttenuation
distance
File:Wood dig1.oggFile:Wood dig2.oggFile:Wood dig3.oggFile:Wood dig4.oggBlock brokenBlocksOnce the block has brokenblock.wood.breaksubtitles.block.generic.break1.00.816
File:Wood hit1.oggFile:Wood hit2.oggFile:Wood hit3.oggFile:Wood hit4.oggFile:Wood hit5.oggFile:Wood hit6.oggNone[sound 1]BlocksFalling on the block with fall damageblock.wood.fallNone[sound 1]0.50.7516
File:Wood hit1.oggFile:Wood hit2.oggFile:Wood hit3.oggFile:Wood hit4.oggFile:Wood hit5.oggFile:Wood hit6.oggBlock breakingBlocksWhile the block is in the process of being brokenblock.wood.hitsubtitles.block.generic.hit0.250.516
File:Wood dig1.oggFile:Wood dig2.oggFile:Wood dig3.oggFile:Wood dig4.oggBlock placedBlocksWhen the block is placedblock.wood.placesubtitles.block.generic.place1.00.816
File:Wood hit1.oggFile:Wood hit2.oggFile:Wood hit3.oggFile:Wood hit4.oggFile:Wood hit5.oggFile:Wood hit6.oggFootstepsBlocksWalking on the blockblock.wood.stepsubtitles.block.generic.footsteps0.151.016

Bedrock Edition:

SoundSourceDescriptionNamespaced IDVolumePitch
?BlocksOnce the block has brokendig.wood1.00.8
?BlocksFalling on the block with fall damagefall.wood0.41.0
?BlocksWhile the block is in the process of being brokenhit.wood0.230.5
?BlocksJumping from the blockjump.wood0.121.0
?BlocksFalling on the block without fall damageland.wood0.181.0
?BlocksWalking on the blockstep.wood0.31.0
?BlocksWhen the block is placeduse.wood1.00.8

Data values

ID

Java Edition:

NameNamespaced IDFormTranslation key
Daylight Detectordaylight_detectorBlock & Itemblock.minecraft.daylight_detector
NameNamespaced ID
Block entitydaylight_detector

Bedrock Edition:

NameNamespaced IDNumeric ID FormTranslation key
Daylight Sensordaylight_detector151Block & Itemtile.daylight_detector.name
Inverted Daylight Sensordaylight_detector_inverted178Blocktile.daylight_detector_inverted.name
NameSavegame ID
Block entityDaylightDetector

Metadata

See also: Data values

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

Template:/DV

Block states

See also: Block states

Template:/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.

Template:/BE

History

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.513w01a32px Added daylight sensors.
1.814w31a32px 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
v0.13.0build 132px 32px Added daylight sensors.
v0.15.0build 1Daylight sensors can now be moved by pistons.
Legacy Console Edition
TU19CU7 1.12 Patch 132px Added daylight sensors.
TU25CU14 1.17 32px Daylight sensors can now be toggled between day and night by using them.
New Nintendo 3DS Edition
0.1.032px 32px Added daylight detectors.

Gallery

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