{
  "criteria": {
    "requirement": {
      "trigger": "minecraft:player_hurt_entity",
      "conditions": {
        "player": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "equipment": {
                "mainhand": {
                  "components": {
                    "minecraft:custom_data": {
                      "xtraloot": "tag"
                    }
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:reference",
            "name": "survivalplus:10chance"
          }
        ]
      }
    }
  },
  "rewards": {
    "function": "survivalplus:tools/dealdmg/xtraloot"
  }
}