{
  "format_version": "1.8.0",
  "minecraft:spawn_rules": {
    "description": {
      "identifier": "minecraft:pufferfish",
      "population_control": "water_animal"
    },
    "conditions": [
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_underwater": {},

        "minecraft:distance_filter": {
          "min": 12,
          "max": 32
        },
        "minecraft:weight": {
          "default": 25
        },
        "minecraft:density_limit": {
          "surface":3
        },
        "minecraft:height_filter": {
          "min": 0,
          "max": 64
        },
        "minecraft:herd": {
          "min_size":3,
          "max_size":5
        },

        "minecraft:biome_filter": [
          {"test": "has_biome_tag", "operator":"==", "value": "ocean"},
          {"test": "has_biome_tag", "operator":"==", "value": "warm"}
        ]
      }
    ]
  }
}
