{
	"format_version": "1.16.0",
	"minecraft:entity": {
		"description": {
			"identifier": "minecraft:enderman",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false,
			"properties": {
				"ldz:ice_overlay": {
					"type": "bool",
					"client_sync": true,
					"default": false
				}
			},
			"animations": {
				"summon_end_force_power_5": "animation.generic.summon_end_force_power_5",
				"ice_timer": "animation.vanilla.ice_timer",
				"ice_damage": "animation.vanilla.ice_damage",
				"ctrl.ice_timer": "controller.animation.vanilla.ice_timer"
			},
			"scripts": {
				"animate": [
					"ctrl.ice_timer",
					{
						"summon_end_force_power_5": "!q.is_alive"
					}
				]
			}
		},
		"component_groups": {
			"ice_overlay": {
				"minecraft:is_shaking": {}
			},
			"minecraft:enderman_calm": {
				"minecraft:on_target_acquired": {
					"event": "minecraft:become_angry",
					"target": "self"
				},
				"minecraft:movement": {
					"value": 0.3
				}
			},
			"minecraft:enderman_angry": {
				"minecraft:angry": {
					"duration": 25,
					"calm_event": {
						"event": "minecraft:on_calm",
						"target": "self"
					}
				},
				"minecraft:movement": {
					"value": 0.45
				},
				"minecraft:behavior.melee_attack": {
					"priority": 2
				}
			},
			"main_island": {
				"minecraft:type_family": {
					"family": [
						"enderman",
						"monster",
						"mob",
						"main_island"
					]
				}
			},
			"forced_spawn": {
				"minecraft:teleport": {
					"random_teleports": true,
					"max_random_teleport_time": 30,
					"random_teleport_cube": [
						32,
						32,
						32
					],
					"target_distance": 16,
					"target_teleport_chance": 0.05,
					"light_teleport_chance": 0
				},
				"minecraft:type_family": {
					"family": [
						"enderman",
						"monster",
						"mob",
						"forced_spawn"
					]
				}
			},
			"despawn_component": {
				"minecraft:despawn": {}
			},
			"despawn": {
				"minecraft:instant_despawn": {}
			},
			"instant_despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:type_family": {
				"family": [
					"enderman",
					"monster",
					"mob"
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:nameable": {},
			"minecraft:loot": {
				"table": "loot_tables/entities/enderman.json"
			},
			"minecraft:health": {
				"value": 40,
				"max": 40
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					},
					{
						"filters": {
							"test": "in_contact_with_water",
							"operator": "==",
							"value": true
						},
						"cause": "drowning",
						"damage_per_tick": 1
					}
				]
			},
			"minecraft:attack": {
				"damage": 7
			},
			"minecraft:follow_range": {
				"value": 32,
				"max": 32
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 2.9
			},
			"minecraft:teleport": {
				"random_teleports": true,
				"max_random_teleport_time": 30,
				"random_teleport_cube": [
					32,
					32,
					32
				],
				"target_distance": 16,
				"target_teleport_chance": 0.05,
				"light_teleport_chance": 0.05
			},
			"minecraft:lookat": {
				"search_radius": 64,
				"set_target": true,
				"look_cooldown": 5,
				"filters": {
					"all_of": [
						{
							"subject": "other",
							"test": "is_family",
							"value": "player"
						},
						{
							"test": "has_equipment",
							"domain": "head",
							"subject": "other",
							"operator": "not",
							"value": "carved_pumpkin"
						}
					]
				},
				"look_event": {
					"event": "example:foo",
					"target": "self"
				}
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 5,
				"must_see": true,
				"attack_interval": 10,
				"entity_types": [
					{
						"filters": {
							"test": "is_family",
							"subject": "other",
							"value": "endermite"
						},
						"max_dist": 64
					}
				]
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": false,
				"avoid_water": true
			},
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"filters": [
							{
								"all_of": [
									{
										"test": "distance_to_nearest_player",
										"operator": ">",
										"value": 70
									},
									{
										"test": "is_family",
										"value": "forced_spawn"
									}
								]
							}
						],
						"event": "despawn",
						"target": "self"
					}
				]
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:behavior.random_stroll": {
				"priority": 7,
				"speed_multiplier": 1
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8,
				"look_distance": 8,
				"probability": 8
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 3
			},
			"minecraft:behavior.enderman_leave_block": {
				"priority": 10
			},
			"minecraft:behavior.enderman_take_block": {
				"priority": 11
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {
				"default_values": {
					"max_optimized_distance": 80,
					"max_dropped_ticks": 10,
					"use_motion_prediction_hints": true
				}
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"remove": {},
				"add": {
					"component_groups": [
						"minecraft:enderman_calm"
					]
				}
			},
			"minecraft:become_angry": {
				"remove": {
					"component_groups": [
						"minecraft:enderman_calm"
					]
				},
				"add": {
					"component_groups": [
						"minecraft:enderman_angry"
					]
				}
			},
			"minecraft:on_calm": {
				"remove": {
					"component_groups": [
						"minecraft:enderman_angry"
					]
				},
				"add": {
					"component_groups": [
						"minecraft:enderman_calm"
					]
				}
			},
			"set_ice_overlay_to_true": {
				"set_property": {
					"ldz:ice_overlay": true
				},
				"add": {
					"component_groups": [
						"ice_overlay"
					]
				}
			},
			"set_ice_overlay_to_false": {
				"set_property": {
					"ldz:ice_overlay": false
				},
				"remove": {
					"component_groups": [
						"ice_overlay"
					]
				}
			},
			"forced_spawn": {
				"trigger": "minecraft:entity_spawned",
				"add": {
					"component_groups": [
						"forced_spawn"
					]
				}
			},
			"main_island": {
				"trigger": "minecraft:entity_spawned",
				"add": {
					"component_groups": [
						"forced_spawn",
						"main_island"
					]
				}
			},
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			}
		}
	}
}