{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "lifeboat:regular_food_trader",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },

    "component_groups": {
      "trading": {
        "minecraft:economy_trade_table": {
          "display_name": "Food Trader",
          "table": "trading/regular_food_trader.json",
          "new_screen": true
        }
      }
    },

    "components": {
      "minecraft:type_family": {
        "family": "trader"
      },
      "minecraft:collision_box": {
        "width": 0.3,
        "height": 1.8
      },
      "minecraft:nameable": {
      },
      "minecraft:damage_sensor": {
        "triggers": {
          "deals_damage": false
        }
      },
      "minecraft:pushable": {
        "is_pushable": false
      },
      "minecraft:behavior.look_at_player": {
        "priority": 12,
        "look_distance": 8,
        "probability": 0.02
      },
      "minecraft:behavior.trade_with_player": {
        "priority": 1
      },
	    "minecraft:physics": {
      }
    },

    "events":{
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "filters": { "test": "has_component", "operator": "!=", "value": "minecraft:variant" },
            "randomize": [
              {
                "weight": 100,
                "add": { "component_groups": [ "trading" ] }
              }
            ]
          }
        ]
      }
    }
  }
}
