{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "mobs:orca",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "scale_small": {
        "minecraft:scale": {
          "value": 0.5
        },
        "minecraft:health": {
          "value": 40,
          "max": 40
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/salmon_normal.json"
        }
      },
      "scale_normal": {
        "minecraft:scale": {
          "value": 1
        },
        "minecraft:health": {
          "value": 40,
          "max": 40
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/salmon_normal.json"
        }
      },
      "scale_large": {
        "minecraft:scale": {
          "value": 1.5
        },
        "minecraft:health": {
          "value": 40,
          "max": 40
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/salmon_large.json"
        }
      }
    },
    "components": {
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
      },
      "minecraft:type_family": {
        "family": [
          "salmon",
          "fish"
        ]
      },
      "minecraft:collision_box": {
        "height": 1.3,
        "width": 0.9
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:movement": {
        "value": 0.16
      },
      "minecraft:underwater_movement": {
        "value": 0.12
      },
      "minecraft:navigation.generic": {
        "is_amphibious": false,
        "can_path_over_water": false,
        "can_swim": true,
        "can_walk": false,
        "can_breach": false,
        "can_sink": false
      },
      "minecraft:movement.sway": {
        "sway_amplitude": 0.0
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:despawn": {
        "despawn_from_distance": {
          "min_distance": 32,
          "max_distance": 40
        }
      },
      "minecraft:behavior.swim_idle": {
        "priority": 5,
        "idle_time": 5.0,
        "success_rate": 0.1
      },
      "minecraft:behavior.random_swim": {
        "speed_multiplier": 1.0,
        "priority": 3,
        "xz_dist": 16,
        "y_dist": 4,
        "interval": 0
      },
      "minecraft:behavior.swim_wander": {
        "priority": 4,
        "interval": 0.0166,
        "look_ahead": 5.0,
        "speed_multiplier": 0.014,
        "wander_time": 5.0
      },
      "minecraft:flocking": {
        "block_distance": 0.75,
        "block_weight": 0.75,
        "breach_influence": 7.0,
        "cohesion_threshold": 1.5,
        "cohesion_weight": 2.25,
        "goal_weight": 2.0,
        "high_flock_limit": 8,
        "in_water": true,
        "influence_radius": 3.0,
        "innner_cohesion_threshold": 1.5,
        "loner_chance": 0.1,
        "low_flock_limit": 4,
        "match_variants": false,
        "max_height": 4.0,
        "min_height": 4.0,
        "separation_threshold": 0.15,
        "separation_weight": 0.65,
        "use_center_of_mass": false
      },
      "minecraft:nameable": {
        "alwaysShow": false,
        "allowNameTagRenaming": false
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:health": {
        "value": 40,
        "max": 40
      },
      "minecraft:scale": {
        "value": 1
      },
      "minecraft:attack": {
        "damage": 3
      },
      "minecraft:behavior.melee_attack": {
        "priority": 2,
        "speed_multiplier": 1.0,
        "target_dist": 0.0,
        "max_dist": 3,
        "random_stop_interval": 100,
        "track_target": true,
        "reach_multiplier": 1.4
      },
      "minecraft:lookat": {
        "allow_invulnerable": false,
        "filters": {
          "test": "has_target"
        },
        "search_radius": 10.0,
        "set_target": true
      },
      "minecraft:knockback_resistance": {
        "value": 0.1,
        "max": 0.1
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 30,
            "add": {
              "component_groups": [
                "adult",
                "scale_small"
              ]
            }
          },
          {
            "weight": 50,
            "add": {
              "component_groups": [
                "adult",
                "scale_normal"
              ]
            }
          },
          {
            "weight": 15,
            "add": {
              "component_groups": [
                "adult",
                "scale_large"
              ]
            }
          }
        ]
      },
      "on:death": {
        "run_command": {
          "command": []
        }
      },
      "on:hurt": {
        "run_command": {
          "command": []
        }
      },
      "on:hurt_by_player": {
        "run_command": {
          "command": []
        }
      },
      "on:ignite": {
        "run_command": {
          "command": []
        }
      },
      "on:target_acquired": {
        "run_command": {
          "command": []
        }
      },
      "on:target_escape": {
        "run_command": {
          "command": []
        }
      },
      "on:wake_with_owner": {
        "run_command": {
          "command": []
        }
      }
    }
  }
}