{
  "format_version": "1.8.0",
  "minecraft:spawn_rules": {
    "description": {
      "identifier": "guardian:drowned_skeleton",
      "population_control": "monster"
    },
    "conditions": [
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_underwater": {},
        "minecraft:brightness_filter": {
          "min": 0,
          "max": 3,
          "adjust_for_weather": true
        },

        "minecraft:difficulty_filter": {
          "min": "easy",
          "max": "hard"
        },
        "minecraft:weight": {
          "default": 30
        },
        "minecraft:density_limit": {
          "surface": 5
        },

        "minecraft:herd": {
          "min_size": 0,
          "max_size": 2
        },
        "minecraft:biome_filter": {
          "test": "has_biome_tag", "operator": "==", "value": "ocean" 
        }
      },
      {
        "minecraft:spawns_on_surface": { },
        "minecraft:spawns_underwater": { },

        "minecraft:brightness_filter": {
          "min": 0,
          "max": 7,
          "adjust_for_weather": true
        },
        "minecraft:difficulty_filter": {
          "min": "easy",
          "max": "hard"
        },
        "minecraft:weight": {
          "default": 5
        },
        "minecraft:density_limit": {
          "surface": 2
        },
        "minecraft:herd": {
          "min_size": 2,
          "max_size": 4
        },
        "minecraft:biome_filter": { 
          "test": "has_biome_tag", "operator": "==", "value": "river" 
        }
      }
    ]
  }
}