{
  "format_version": "1.8.0",
  "minecraft:spawn_rules": {
    "description": {
      "identifier": "guardian:nautilus_crab",
      "population_control": "animal"
    },
    "conditions": [
      {
        "minecraft:spawns_on_surface": {},
        "minecraft:spawns_underwater": {},

        "minecraft:weight": {
          "default": 10
        },
        "minecraft:density_limit": {
          "surface":4
        },
        "minecraft:herd": {
          "min_size":1,
          "max_size":1
        },
        
        "minecraft:biome_filter": { 
          "any_of": [
            { "test": "has_biome_tag", "operator": "==", "value": "ocean" },
            { "test": "has_biome_tag", "operator": "==", "value": "river" }
          ]
        }
      }
    ]
  }
}
