{
	"format_version": "1.19.0",
	"minecraft:entity": {
		"description": {
			"identifier": "dotvi:eribus",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"minecraft:enderman_calm": {},
			"minecraft:enderman_angry": {
				"minecraft:teleport": {
					"random_teleports": true,
					"max_random_teleport_time": 30,
					"random_teleport_cube": [
						12,
						2,
						12
					],
					"target_distance": 12,
					"target_teleport_chance": 0.1,
					"light_teleport_chance": 0.1,
					"dark_teleport_chance": 0.1
				}
			}
		},
		"components": {
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?5:0"
			},
			"minecraft:type_family": {
				"family": [
					"enderman",
					"monster",
					"mob",
					"disciple",
					"eribus",
					"disciplevoli"
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:nameable": {},
			"minecraft:loot": {
				"table": "loot_tables/entities/eribus.json"
			},
			"minecraft:health": {
				"value": 1200
			},
			"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": 12
			},
			"minecraft:follow_range": {
				"value": 32,
				"max": 32
			},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 2.9
			},
			"minecraft:lookat": {
				"search_radius": 64,
				"set_target": true,
				"look_cooldown": 0,
				"filters": {
					"all_of": [
						{
							"subject": "other",
							"test": "is_family",
							"value": "player"
						},
						{
							"test": "has_equipment",
							"domain": "head",
							"subject": "other",
							"operator": "not",
							"value": "carved_pumpkin"
						}
					]
				}
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 5,
				"must_see": true,
				"attack_interval": 10,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
						"max_dist": 35
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "endermite"
								}
							]
						},
						"max_dist": 35
					}
				]
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": false,
				"avoid_water": true
			},
			"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: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
				}
			},
			"minecraft:boss": {
				"name": "Eribus, Disciple of Culmination",
				"hud_range": 10
			},
			"minecraft:knockback_resistance": {
				"value": 50
			},
			"minecraft:on_death": {
				"target": "self",
				"event": "dotvi:on_death"
			},
			"minecraft:on_target_acquired": {
				"target": "self",
				"event": "dotvi:target_spotted"
			},
			"minecraft:on_target_escape": {
				"target": "self",
				"event": "dotvi:target_lost"
			},
			"minecraft:behavior.melee_attack": {
				"priority": 2,
				"speed_multiplier": 1.4
			},
			"minecraft:movement": {
				"value": 0.4
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"remove": {},
				"add": {
					"component_groups": [
						"minecraft:enderman_calm"
					]
				}
			},
			"dotvi:on_death": {
				"run_command": {
					"command": [
						"function defeattriggers/discipleslain"
					],
					"target": "self"
				}
			},
			"dotvi:target_spotted": {
				"add": {
					"component_groups": [
						"minecraft:enderman_angry"
					]
				},
				"remove": {
					"component_groups": [
						"minecraft:enderman_calm"
					]
				}
			},
			"dotvi:target_lost": {
				"add": {
					"component_groups": [
						"minecraft:enderman_calm"
					]
				},
				"remove": {
					"component_groups": [
						"minecraft:enderman_angry"
					]
				}
			}
		}
	}
}