[
  {
    "function": "minecraft:set_custom_model_data",
    "strings": {
      "values": [
        "lightning"
      ],
      "mode": "replace_all"
    }
  },
  {
    "function": "minecraft:set_components",
    "components": {
      "minecraft:enchantment_glint_override": true
    }
  },
  {
    "function": "minecraft:set_lore",
    "entity": "this",
    "lore": [
      {
        "translate": "enchantment.magical_addons.lightning_spell",
        "color": "gray",
        "italic": false
      }
    ],
    "mode": "append"
  }
]