{
  "parent": "magical_addons:---/item/attack",
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "equipment": {
                "mainhand": {
                  "predicates": {
                    "minecraft:custom_data": "{magical_addons:{id:\"netherite_dagger\"}}"
                  }
                }
              }
            }
          }
        ],
        "entity": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this"
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "magical_addons:item/netherite_dagger/attack"
  }
}