{
    "format_version": "1.8.0",
    "minecraft:spawn_rules": {
        "description": {
            "identifier": "cc_fairytales:spirit",
            "population_control": "animal"
        },
        "conditions": [
            {
                "minecraft:spawns_on_surface": {},
                "minecraft:brightness_filter": {
                    "min": 0,
                    "max": 15,
                    "adjust_for_weather": false
                },
                "minecraft:weight": {
                    "default": 3
                },
                "minecraft:difficulty_filter": {
                    "min": "easy",
                    "max": "hard"
                },
                "minecraft:biome_filter": [
                    {
                        "all_of": [
                            {
                                "test": "has_biome_tag",
                                "operator": "==",
                                "value": "animal"
                            },
                            {
                                "test": "has_biome_tag",
                                "operator": "!=",
                                "value": "plains"
                            },
                            {
                                "test": "has_biome_tag",
                                "operator": "!=",
                                "value": "mesa"
                            },
                            {
                                "test": "has_biome_tag",
                                "operator": "!=",
                                "value": "desert"
                            }
                        ]
                    }
                ],
                "minecraft:density_limit": {
                    "surface": 1
                }
            }
        ]
    }
}