{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "tsu_morph:vex_pet",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "tsu_morph:despawn": {
        "minecraft:instant_despawn": {}
      }
    },
    "components": {
      "minecraft:tameable": {},
      "minecraft:behavior.teleport_to_owner": {
        "priority": 1,
        "filters": {
          "any_of": [
            {
              "all_of": [
                {
                  "test": "owner_distance",
                  "operator": ">",
                  "value": 12
                },
                {
                  "test": "is_panicking"
                }
              ]
            },
            {
              "all_of": [
                {
                  "test": "owner_distance",
                  "operator": ">",
                  "value": 24
                },
                {
                  "test": "has_target"
                }
              ]
            }
          ]
        }
      },
      "minecraft:timer": {
        "time": 30,
        "looping": false,
        "time_down_event": {
          "event": "despawn",
          "target": "self"
        }
      },
      "minecraft:behavior.follow_owner": {
        "priority": 6,
        "speed_multiplier": 1.0,
        "start_distance": 10,
        "stop_distance": 2
      },
      "minecraft:behavior.owner_hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.owner_hurt_target": {
        "priority": 2
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:nameable": {},
      "minecraft:type_family": {
        "family": [
          "vex",
          "monster",
          "mob",
          "dev",
          "tsu_morph"
        ]
      },
      "minecraft:equipment": {
        "table": "loot_tables/entities/vex_gear.json"
      },
      "minecraft:health": {
        "value": 14,
        "max": 14
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": -20,
        "inhale_time": 0,
        "breathes_air": true,
        "breathes_water": true,
        "breathes_lava": false,
        "breathes_solids": true,
        "generates_bubbles": true,
        "breathe_blocks": [],
        "non_breathe_blocks": []
      },
      "minecraft:attack": {
        "damage": 3
      },
      "minecraft:collision_box": {
        "width": 0.4,
        "height": 0.8
      },
      "minecraft:movement": {
        "value": 1.0
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true
      },
      "minecraft:movement.basic": {},
      "minecraft:jump.static": {},
      "minecraft:can_climb": {},
      "minecraft:fire_immune": {},
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:behavior.charge_attack": {
        "priority": 4
      },
      "minecraft:behavior.look_at_player": {
        "priority": 9,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.look_at_entity": {
        "priority": 9,
        "look_distance": 6.0,
        "probability": 0.02,
        "filters": {
          "test": "is_family",
          "subject": "other",
          "value": "mob"
        }
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:physics": {
        "has_gravity": false,
        "has_collision": false
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:game_event_movement_tracking": {
        "emit_move": false,
        "emit_swim": false
      }
    },
    "events": {
      "despawn": {
        "add": {
          "component_groups": [
            "tsu_morph:despawn"
          ]
        }
      }
    }
  }
}