{
  "parent": "minecraft:adventure/root",
  "criteria": {
    "criterion_one": {
      "trigger": "minecraft:player_generates_container_loot",
      "conditions": {
        "loot_table": "minecraft:chests/buried_treasure"
      }
    }
  },
  "display": {
    "description": "Follow a Map to find the treasure",
    "icon": {
      "id": "minecraft:chest"
    },
    "title": "X Marks the Spot!",
    "frame": "task"
  }
}