Detect Evil and Good

SpellPHBp. 2312014SRD
Level
1 · Divination
Casting time
1 action
Range
Self
Components
V, S
Duration
Concentration, up to 10 minutes

For the duration, you know if there is an aberration, celestial, elemental, fey, fiend, or undead within 30 feet of you, as well as where the creature is located. Similarly, you know if there is a place or object within 30 feet of you that has been magically consecrated or desecrated.

The spell can penetrate most barriers, but it is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt.

Raw data
{
  "srd": true,
  "name": "Detect Evil and Good",
  "page": 231,
  "time": [
    {
      "unit": "action",
      "number": 1
    }
  ],
  "feats": [
    {
      "name": "Divinely Favored",
      "source": "DSotDQ"
    },
    {
      "name": "Initiate of High Sorcery",
      "source": "DSotDQ"
    },
    {
      "name": "Fey Touched",
      "source": "TCE"
    },
    {
      "name": "Fey-Touched",
      "source": "XPHB"
    },
    {
      "name": "Magic Initiate",
      "source": "XPHB"
    },
    {
      "name": "Magic Initiate",
      "source": "PHB"
    },
    {
      "name": "Strixhaven Initiate",
      "source": "SCC"
    }
  ],
  "level": 1,
  "races": [
    {
      "name": "Half-Elf (Variant; Mark of Detection)",
      "source": "ERLW",
      "baseName": "Half-Elf",
      "baseSource": "PHB"
    }
  ],
  "range": {
    "type": "point",
    "distance": {
      "type": "self"
    }
  },
  "__prop": "spell",
  "school": "D",
  "source": "PHB",
  "classes": {
    "fromSubclass": [
      {
        "class": {
          "name": "Bard",
          "source": "XPHB"
        },
        "subclass": {
          "name": "College of Lore",
          "source": "XPHB",
          "shortName": "Lore"
        }
      },
      {
        "class": {
          "name": "Sorcerer",
          "source": "XPHB"
        },
        "subclass": {
          "name": "Divine Soul",
          "source": "XGE",
          "shortName": "Divine Soul"
        }
      },
      {
        "class": {
          "name": "Warlock",
          "source": "XPHB"
        },
        "subclass": {
          "name": "The Genie",
          "source": "TCE",
          "shortName": "Genie"
        }
      },
      {
        "class": {
          "name": "Sorcerer",
          "source": "PHB"
        },
        "subclass": {
          "name": "Divine Soul",
          "source": "XGE",
          "shortName": "Divine Soul"
        }
      },
      {
        "class": {
          "name": "Warlock",
          "source": "PHB"
        },
        "subclass": {
          "name": "The Genie",
          "source": "TCE",
          "shortName": "Genie"
        }
      }
    ],
    "fromClassList": [
      {
        "name": "Cleric",
        "source": "PHB"
      },
      {
        "name": "Paladin",
        "source": "PHB"
      }
    ]
  },
  "entries": [
    "For the duration, you know if there is an aberration, celestial, elemental, fey, fiend, or undead within 30 feet of you, as well as where the creature is located. Similarly, you know if there is a place or object within 30 feet of you that has been magically consecrated or desecrated.",
    "The spell can penetrate most barriers, but it is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt."
  ],
  "duration": [
    {
      "type": "timed",
      "duration": {
        "type": "minute",
        "amount": 10
      },
      "concentration": true
    }
  ],
  "_tmpFeats": [],
  "_tmpRaces": [],
  "_tmpGroups": [],
  "components": {
    "s": true,
    "v": true
  },
  "_tmpClasses": {},
  "reprintedAs": [
    "Detect Evil and Good|XPHB"
  ],
  "_isMutEntity": true,
  "_tmpBackgrounds": [],
  "_tmpSourcesInit": true,
  "referenceSources": [
    "BGDIA",
    "CM",
    "CoA",
    "IDRotF",
    "JttRC",
    "TftYP-AtG",
    "TftYP-DiT",
    "TftYP-THSoT",
    "TftYP-ToH",
    "VEoR",
    "WDMM"
  ],
  "affectsCreatureType": [
    "aberration",
    "celestial",
    "elemental",
    "fey",
    "fiend",
    "undead"
  ],
  "_tmpOptionalfeatures": []
}