{
  "display": {
    "icon": {
      "id": "minecraft:snowball"
    },
    "title": "Icicles Within My Brain",
    "description": "Use the Ice Sword.",
    "frame": "challenge",
    "show_toast": true,
    "announce_to_chat": true,
    "hidden": true
  },
  "parent": "mt:treasure_advancements/first_legendary_ice_treasure",
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "flags": {},
              "equipment": {
                "mainhand": {
                  "predicates": {
                    "minecraft:custom_data": "{weapon:\"ice_sword\"}"
                  }
                }
              }
            }
          }
        ],
        "damage": {
          "type": {
            "tags": [
              {
                "id": "minecraft:is_player_attack",
                "expected": true
              }
            ]
          }
        }
      }
    }
  }
}
