
    "minecraft:weapon":{ 
      "on_hurt_entity":{
        "event": "smite"
        }
      },



      "smite": {
        "sequence": [
          {
            "run_command": {
              "target": "other",
              "command": 
                "execute @s[family=undead] ~~~ summon lightning_bolt ~~~"
             }
           }
         ]
       }
