{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "guardian:catfish",
			"runtime_identifier": "minecraft:cod",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
    "component_groups": {
      "scale_small": {
        "minecraft:scale": {
          "value": 0.5
        },
        "minecraft:health": {
          "value": 9,
          "max": 9
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/ad+/catfish.json"
        }
      },
      "scale_normal": {
        "minecraft:scale": {
          "value": 1
        },
        "minecraft:health": {
          "value": 9,
          "max": 9
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/ad+/catfish.json"
        }
      },
      "scale_large": {
        "minecraft:scale": {
          "value": 1.5
        },
        "minecraft:health": {
          "value": 9,
          "max": 9
        },
        "minecraft:loot": {
          "table": "loot_tables/entities/ad+/catfish.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": [
          "catfish",
          "fish"
        ]
      },
      "minecraft:collision_box": {
        "width": 0.5,
        "height": 0.5
      },
      "minecraft:breathable": {
        "total_supply": 15,
        "suffocate_time": 0,
        "breathes_air": true,
        "breathes_water": true
      },
      "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.12
      },
      "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": {
        "has_gravity": false
      },
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "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": {
        "in_water": true,
        "match_variants": false,
        "use_center_of_mass": false,
        "low_flock_limit": 4,
        "high_flock_limit": 8,
        "goal_weight": 2.0,
        "loner_chance": 0.1,
        "influence_radius": 3.0,
        "breach_influence": 7.0,
        "separation_weight": 0.65,
        "separation_threshold": 0.15,
        "cohesion_weight": 2.25,
        "cohesion_threshold": 1.5,
        "innner_cohesion_threshold": 1.5,
        "min_height": 4.0,
        "max_height": 4.0,
        "block_distance": 1.0,
        "block_weight": 0.75
      },
      "minecraft:nameable": {},
      "minecraft:conditional_bandwidth_optimization": {},
	"minecraft:behavior.nearest_attackable_target": {
				"priority": 1,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "tadpole"
								}
							]
						},
						"max_dist": 16
					}
				],
				"must_see": true
			},
      "minecraft:attack": {
        "damage": 4
      },
      "minecraft:behavior.melee_attack": {
        "priority": 2,
        "speed_multiplier": 1.25,
        "reach_multiplier": 1.5
      }
    },
      "minecraft:leashable": {
        "soft_distance": 4.0,
        "hard_distance": 6.0,
        "max_distance": 10.0
      },
    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 10,
            "add": {
              "component_groups": [
                "adult",
                "scale_small"
              ]
            }
          },
          {
            "weight": 30,
            "add": {
              "component_groups": [
                "adult",
                "scale_normal"
              ]
            }
          },
          {
            "weight": 60,
            "add": {
              "component_groups": [
                "adult",
                "scale_large"
              ]
            }
          }
        ]
      }
    }
  }
}