{
  "fields": [
    {
      "id": "priority",
      "title": "Priority",
      "hideSamples": true,
      "description": "As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.",
      "dataType": 0,
      "samples": {
        "/vanilla/behavior_pack/entities/piglin.json": [
          {
            "path": "/minecraft:entity/components/minecraft:behavior.barter/",
            "content": 3
          }
        ]
      }
    }
  ],
  "note": "Requires the `minecraft:barter` component and `barter_table` loot table in order to work properly.",
  "requires": [
    {
      "id": "minecraft:barter",
      "type": "entity_component"
    },
    {
      "id": "barter_table",
      "type": "loot_table"
    }
  ],
  "description": "Enables the mob to barter for items that have been configured as barter currency. Must be used in combination with the barter component",
  "title": "Barter Behavior",
  "samples": {
    "/vanilla/behavior_pack/entities/piglin.json": [
      {
        "path": "/minecraft:entity/components/minecraft:behavior.barter/",
        "content": {
          "priority": 3
        }
      }
    ]
  },
  "id": "minecraft:behavior.barter"
}