{
  "parent": "minecraft:husbandry/root",
  "criteria": {
    "allay_deliver_item_to_player": {
      "conditions": {
        "entity": [
          {
            "condition": "minecraft:entity_properties",
            "entity": "this",
            "predicate": {
              "type": "minecraft:allay"
            }
          }
        ]
      },
      "trigger": "minecraft:thrown_item_picked_up_by_player"
    }
  },
  "display": {
    "announce_to_chat": true,
    "description": {
      "translate": "advancements.husbandry.allay_deliver_item_to_player.description"
    },
    "frame": "task",
    "hidden": true,
    "icon": {
      "item": "minecraft:cookie"
    },
    "show_toast": true,
    "title": {
      "translate": "advancements.husbandry.allay_deliver_item_to_player.title"
    }
  },
  "requirements": [
    [
      "allay_deliver_item_to_player"
    ]
  ]
}