[
  {
    "function": "minecraft:set_lore",
    "entity": "this",
    "lore": [
      [
        " ",
        {
        "selector": "@s",
        "color": "#A8C2A8",
        "italic": false
        }
      ]
    ],
    "replace": true,
    "conditions": [
      {
        "condition": "minecraft:inverted",
        "term": {
          "condition": "minecraft:entity_properties",
          "entity": "this",
          "predicate": {
            "nbt": "{Item:{tag:{Enchantments:[{}]}}}"
          }
        }
      }
    ]
  },
  {
    "function": "minecraft:set_lore",
    "entity": "this",
    "lore": [
      [
        " ",
        {
        "selector": "@s",
        "color": "aqua",
        "italic": true
        }
      ]
    ],
    "replace": true,
    "conditions": [
      {
        "condition": "minecraft:entity_properties",
        "entity": "this",
        "predicate": {
          "nbt": "{Item:{tag:{Enchantments:[{}]}}}"
        }
      }
    ]
  }
]
