Modern namespaced IDs are recommended. This numerical form is only for old Java releases.
/give @p 151 1
Give command syntax by version
Java 1.13+
/give @p minecraft:daylight_detector 1
Namespaced ID (current format)
Java 1.8–1.12.2
/give @p 151 1 0
Numerical ID + data value
Bedrock Edition
/give @p minecraft:daylight_detector 1
Same namespaced ID (namespace optional)
Rows appear only when the underlying value is verified: the Java 1.8–1.12.2 row requires a reviewed historical numerical ID, and the Bedrock row appears only when this exact namespaced ID exists in the Bedrock registry.
How to Get Daylight Detector
Crafting Recipe
Glass
Glass
Glass
Nether Quartz
Nether Quartz
Nether Quartz
Cherry Slab
Cherry Slab
Cherry Slab
Crafting table recipe — makes 1 × Daylight Detector.
Glass
Glass
Glass
Nether Quartz
Nether Quartz
Nether Quartz
Bamboo Slab
Bamboo Slab
Bamboo Slab
Crafting table recipe — makes 1 × Daylight Detector.
Glass
Glass
Glass
Nether Quartz
Nether Quartz
Nether Quartz
Mangrove Slab
Mangrove Slab
Mangrove Slab
Crafting table recipe — makes 1 × Daylight Detector.
Daylight Detector has 12 crafting recipes in the source data; the first 3 are shown.
Give 1 to nearest player: /give @p minecraft:daylight_detector 1
Give 1 to yourself: /give @s minecraft:daylight_detector 1
Give to a specific player: /give PlayerName minecraft:daylight_detector 1
Clear from inventory: /clear @p minecraft:daylight_detector
Daylight Detector FAQ
What is the item ID for Daylight Detector?
The item ID for Daylight Detector is minecraft:daylight_detector. Java Edition commands such as /give, /clear, and /setblock use this namespaced ID.
What is the numerical ID for Daylight Detector?
Daylight Detector has the historical numerical ID 151, used in Java Edition 1.12.2 and earlier. Current versions use minecraft:daylight_detector instead.
How do I give myself Daylight Detector in Minecraft?
Open the chat window and run /give @p minecraft:daylight_detector 1 to give the nearest player one Daylight Detector. Replace @p with a player name to target someone else.
How do you craft Daylight Detector?
Daylight Detector is crafted on a crafting table with 3 glass, 3 nether quartzs and 3 cherry slabs, which yields 1 Daylight Detector.