{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:iron_helmet",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:enchantment_glint_override": true,
                "minecraft:attribute_modifiers": [
                  {
                    "type": "armor",
                    "id": "124117701912756-140382",
                    "amount": 1,
                    "operation": "add_value",
                    "slot": "head"
                  },
                  {
                    "type": "luck",
                    "id": "224137401012356740368",
                    "amount": 0.1,
                    "operation": "add_value",
                    "slot": "head"
                  }
                ],
                "minecraft:rarity": "uncommon",
                "minecraft:custom_data": "{tradehat:tag,hat:tag}",
                "minecraft:item_name": "Persuasion Hat",
                "minecraft:lore": [
                  {
                    "text": "Chance to get an extra emerald on trades",
                    "color": "gray",
                    "italic": false
                  }
                ],
                "minecraft:item_model": "emerald",
                "minecraft:equippable": {
                  "slot": "head",
                  "equip_sound": "minecraft:item.armor.equip_diamond"
                },
                "minecraft:max_damage": 180,
                "minecraft:repairable": {
                  "items": "minecraft:emerald"
                }
              }
            }
          ]
        }
      ]
    }
  ]
}