データパック:ルートテーブル:player_head.json

下記コードには欠陥が有り、
全てのプレイヤーヘッドに同じアイテム名とアイテム説明を付ける。

プレイヤーヘッドのスカルオーナーのUUIDが違うならば、
そのUUIDに合わせたアイテム名になるようにしたいが出来ていない。

{
    "type": "minecraft:block",
    "pools": [
      {
        "rolls": 1,
        "entries": [
          {
            "type": "alternatives",
            "children": [
              {
                "type": "minecraft:item",
                "name": "minecraft:player_head",
                "functions": [
                  {
                    "function": "minecraft:copy_nbt",
                    "source": "block_entity",
                    "ops": [
                      {
                        "op": "replace",
                        "source": "SkullOwner",
                        "target": "SkullOwner"                      
                      },
                      {
                        "op": "replace",
                        "source": "note_block_sound",
                        "target": "BlockEntityTag.note_block_sound"
                      }
                    ]
                  },
                  {
                    "function": "set_name",
                    "name": "アイテム名"
                  },
                  {
                    "function": "set_lore",
                    "lore": ["アイテムの説明"]
                  },
                  {
                    "function": "set_nbt",
                    "tag": "{Tags:['アイテムのタグ']}"
                  }
                ]
              },
              {
                "type": "minecraft:item",
                "name": "minecraft:player_head",
                "functions": [
                  {
                    "function": "copy_nbt",
                    "source": "block_entity",
                    "ops": [
                      {
                        "op": "replace",
                        "source": "SkullOwner",
                        "target": "SkullOwner"
                      },
                      {
                        "op": "replace",
                        "source": "note_block_sound",
                        "target": "BlockEntityTag.note_block_sound"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
}