{
  "display": {
    "icon": {
      "id": "minecraft:emerald",
      "components": {
        "minecraft:enchantment_glint_override": true
      }
    },
    "title": "+1 Charisma",
    "description": "Obtain a hat from... villagers that has a 20% chance to persuade them in giving you an extra emerald per trade"
  },
  "parent": "survivalplus:adventure/tools/spacehat",
  "criteria": {
    "requirement": {
      "trigger": "minecraft:inventory_changed",
      "conditions": {
        "items": [
          {
            "predicates": {
              "minecraft:custom_data": "{tradehat:tag}"
            }
          }
        ]
      }
    }
  }
}