{
    "pools": [
      {
        "rolls": 1,
        "entries": [
          {
            "type": "minecraft:item",
            "name": "minecraft:player_head",
            "functions": [
              {
                "function": "minecraft:fill_player_head",
                "entity": "this"
              },
              {
                "function": "minecraft:set_lore",
                "entity": "attacker",
                "lore": [
                  {
                    "text": "Killed by ",
                    "extra": [
                      {
                        "selector": "@s",
                        "color": "gray",
                        "italic": false
                      }
                    ],
                    "color": "gray",
                    "italic": false
                  }
                ],
                "mode": "replace_all",
                "conditions": [
                  {
                    "condition": "minecraft:killed_by_player"
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }