{
       "format_version": "1.10.0",
            "minecraft:entity": {
                "description": {
                "scripts": {
                "animate": [
                "chase"
                ]
            },
        "animations": {
                "chase": "controller.animation.is_evil_nun_chase"
            },
                "identifier": "vl:is_evil_nun",
                "is_spawnable": true,
                "is_summonable": true,
                "is_experimental": false
            },
        "component_groups": {
            "minecraft:ghost": {
            "minecraft:transformation": {
                "delay": 0,
                "into": "vl:is_evil_nun_death"
                }
            },
            "vl:ouch":{
            "minecraft:is_stunned":{},
            "minecraft:timer": {
                "looping": false,
                "time": 0.5,
                "time_down_event": {
                "event": "not_ouch"
                    }
                }
            },
            "minecraft:eating_process": {
			"minecraft:transformation": {
				"into": "vl:is_evil_nun_attack_start<minecraft:entity_spawned>"  
            },
            "minecraft:timer": {
                "looping": true,
                "time": 3,
                "time_down_event": {
                "event": "ready"
                    }
                }
            },
            "minecraft:ready": {
            "minecraft:variant": {
                "value": 0
            },
		    "minecraft:attack": {
			    "damage": 1,
			    "effect_name": "()",
				"effect_duration": 0
            },
            "minecraft:behavior.melee_attack": {
                "priority": 4,
                "track_target": true,
                "attack_once": false,
                "on_attack": {
                "event": "eating",
                "target": "self"
                    }
                }
            }
        },
        "components": {
            "minecraft:loot": {
                "table": "loot_tables/items/evil_nun.json"
            },
            "minecraft:behavior.nearest_attackable_target": {
                "priority": 2,
                "must_see": true,
                "reselect_targets": true,
                "within_radius": 16,
                "must_see_forget_duration": 10,
                "entity_types": [
            {
                "filters": {
                "any_of": [
            {
                "test": "is_family",
                "subject": "other",
                "value": "player"
                },
            {
                "test": "is_family",
                "subject": "other",
                "value": "irongolem"
                },
            {
                "test": "is_family",
                "subject": "other",
                "value": "villager"
                },
            {
                "test": "is_family",
                "subject": "other",
                "value": "evil"
                    }
                ]
            },
                "max_dist": 16,
                "walk_speed_multiplier": 3.0,
                "sprint_speed_multiplier": 3.0
                    }
                ]
            },
            "minecraft:type_family": {
                "family": [
                "keplerians",
                "undead",
                "monster"
                ]
            },
            "minecraft:scale": {
                "value": 1
            },
            "minecraft:behavior.open_door": {
                "priority": 8,
                "close_door_after": true
            },
            "minecraft:breathable": {
                "totalSupply": 15,
                "suffocateTime": 0
            },
            "minecraft:collision_box": {
                "width": 1,
                "height": 0.8
            },
            "minecraft:nameable": {},
            "minecraft:health": {
                "value": 20,
                "max": 20
            },
            "minecraft:movement": {
                "value": 0.25
            },
            "minecraft:knockback_resistance": {
                "value": 1
            },
            "minecraft:navigation.walk": {
                "is_amphibious": true,
                "can_path_over_water": true,
                "can_pass_doors": true,
                "can_open_doors": true,
                "can_walk": true,
                "avoid_water": false
            },
            "minecraft:movement.basic": {
            },
            "minecraft:jump.static": {
            },
            "minecraft:can_climb": {
            },
            "minecraft:behavior.float": {
                "priority": 1
            },
            "minecraft:behavior.random_stroll": {
                "priority": 6,
                "speed_multiplier": 1.5
            },
            "minecraft:behavior.random_look_around": {
                "priority": 8
            },
            "minecraft:push_through": {
                "value": 0.0
            },
            "minecraft:pushable": {
                "is_pushable": true,
                "is_pushable_by_piston": true
            },
            "minecraft:on_death": {
                "event": "minecraft:event_ghost",
                "target": "self"
            },
            "minecraft:on_target_escape": {
                "event": "on:target_escape",
                "target": "self"
            },
            "minecraft:physics": {}
            },
        "events": {
            "null": {},
            "minecraft:entity_spawned": {
                "add": {
                "component_groups": [
                "minecraft:ready"
                    ]
                }
            },
            "eating": {
                "add": {
                "component_groups": [
                "minecraft:eating_process"
                    ]
                },
                "remove": {
                "component_groups": [
                "minecraft:ready"
                    ]
                }
            },
            "ready": {
                "add": {
                "component_groups": [
                "minecraft:ready"
                    ]
                },
           "remove": {
                "component_groups": [
                "minecraft:eating_process"
                    ]
                }
            },
            "minecraft:event_null": {
                "add": {
                "component_groups": [
                 "null"
                    ]
                }
            },
            "vl:ouch": {
                 "add": {
                 "component_groups": [
                 "vl:ouch"
                    ]
                }
            },
            "not_ouch": {
                "remove": {
                "component_groups": [
                "vl:ouch"
                    ]
                }
            },
            "minecraft:event_ghost": {
                "add": {
                "component_groups": [
                "minecraft:ghost"
                    ]
                }
            },
            "on:target_escape": {
                "run_command": {
                "command": [
                "music stop 2",
                "playsound is_evil_nun_warn_end @p"
                    ]
                }
            }
        }
    }
}
