Daylight Detector

A daylight sensor is a block that outputs a redstone signal based on sunlight.

Obtaining
Daylight sensors can be crafted from wood slabs, nether quartz, and glass.

Usage
A daylight sensor can be used as a redstone power source and as fuel for a furnace.

Fuel
A daylight sensor can be used as fuel in a furnace. Each daylight sensor lasts 15 seconds, or 1.5 operations.

Redstone component


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

A daylight sensor is 0.375 blocks high (3/8ths of a block). Daylight sensors cannot be moved by pistons, and water and lava will flow around daylight sensors without affecting them.


 * Placement


 * To place a daylight sensor, use the "Use Item/Place Block" control (right-click, by default).


 * A daylight sensor can be "inverted", which reverses the power levels produced by the daylight sensor. To invert a daylight sensor, use the "Use Item/Place Block" control (right-click, by default).


 * Activation


 * A daylight sensor activates when exposed to sufficient daylight (daylight detector mode) or when its sky light level drop to 0 (night time detector mode).


 * An inverted daylight sensor activates when exposure to daylight is low enough (inverted daylight detector mode).


 * Sources of block light (torches, glowstone, etc.) cannot activate a daylight sensor.


 * Behavior


 * An active daylight sensor:
 * powers adjacent redstone dust, including below it, and redstone comparators facing away from the daylight sensor, to a power level that depends on the time of day, the weather, and the daylight sensor's sky light level (see tables below)
 * powers adjacent redstone repeaters facing away from the daylight sensor to power level 15
 * activates adjacent redstone mechanisms, including above and below, such as pistons, redstone lamps, etc.


 * A daylight sensor has no effect on other adjacent blocks (for example, it cannot power a block the way a repeater can).


 * Removal


 * To remove a daylight sensor, use the "Attack/Destroy" control (left-click, by default). A daylight sensor takes 0.3 seconds to remove (or faster with an axe) and will drop itself as an item.

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

Night time detector
If a daylight sensor is completely cut off from the sky (its block is at sky light 0), either because it is encased in opaque blocks or because it is too far from sky exposure, then its signal pattern changes: it produces power at night instead of the day, and weather is irrelevant to the signal strength.

Inverted daylight detector
Right-clicking the daylight sensor will invert it. The inverted sensor acts contrary to the daylight sensor emitting full redstone strength during night time, weak strength during the day and no redstone strength at high noon.

The inverted daylight sensor cannot be obtained as an item. Removing an inverted daylight sensor will simply drop a regular daylight sensor.

Data values
The daylight sensor is defined by its block name and block data, and it also has a block entity.

Block name
A daylight sensor has two possible block names:

Block data
A daylight sensor's block data stores its power level:

Block entity
A daylight sensor's block entity stores only its entity id and position (the minimum data for a block entity):


 * Tile entity data
 * : X coordinate of the Tile Entity.
 * : Y coordinate of the Tile Entity.
 * : Z coordinate of the Tile Entity.
 * : Z coordinate of the Tile Entity.

A daylight sensor has a block entity simply to ensure that it is updated every game tick.

Issues
Tageslichtsensor Sensor de luz solar Capteur de lumière du jour Daglichtsensor Detektor światła dziennego Датчик дневного света 阳光传感器