{
  "parent": "minecraft:nether/root",
  "criteria": {
    "distract_piglin": {
      "conditions": {
        "entity": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "minecraft:entity_type": "minecraft:piglin",
              "minecraft:flags": {
                "is_baby": false
              }
            }
          }
        ],
        "item": {
          "items": "#minecraft:piglin_loved"
        },
        "player": [
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "head": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "chest": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "legs": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "feet": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          }
        ]
      },
      "trigger": "minecraft:thrown_item_picked_up_by_entity"
    },
    "distract_piglin_directly": {
      "conditions": {
        "entity": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "minecraft:entity_type": "minecraft:piglin",
              "minecraft:flags": {
                "is_baby": false
              }
            }
          }
        ],
        "item": {
          "items": "minecraft:gold_ingot"
        },
        "player": [
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "head": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "chest": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "legs": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          },
          {
            "condition": "minecraft:inverted",
            "term": {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "minecraft:equipment": {
                  "feet": {
                    "items": "#minecraft:piglin_safe_armor"
                  }
                }
              }
            }
          }
        ]
      },
      "trigger": "minecraft:player_interacted_with_entity"
    }
  },
  "display": {
    "description": {
      "translate": "advancements.nether.distract_piglin.description"
    },
    "icon": {
      "id": "minecraft:gold_ingot"
    },
    "title": {
      "translate": "advancements.nether.distract_piglin.title"
    }
  },
  "requirements": [
    [
      "distract_piglin",
      "distract_piglin_directly"
    ]
  ],
  "sends_telemetry_event": true
}