Detector Rails are special types of tracks that can be used to create circuits by sending a redstone signal when a minecart passes over them. They function as pressure plates for minecarts, activating connected devices such as doors, pistons, or redstone lamps. Crafted from stone pressure plates, iron ingots, and redstone, these rails are integral for automating various rail systems and creating interactive minecart-based contraptions.
The numerical item ID for Detector Rails is 28
Numerical item IDs will only work in Minecraft versions below 1.13.
The item ID for Detector Rails is minecraft:detector_rail
This is the spawn command to give yourself Detector Rails in Minecraft which includes the Minecraft /give command. If you are using the Essentials plugin you will need to use /minecraft:give instead of /give