{
  "function": "minecraft:enchant_with_levels",
  "levels": {
    "type": "minecraft:score",
    "target": {
      "type": "minecraft:fixed",
      "target": "target_entity",
      "name": ".req_xp"
    },
    "score": "const",
    "scale": 1
  }
}