{
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
      "equipment": {
            "mainhand": {
                "predicates": {
                      "minecraft:custom_data": "{sorcerer:lightning}"
                }
            }
        }
  }
}