{
	"format_version": "1.19.50",
	"minecraft:entity": {
		"description": {
			"identifier": "dotvi:alatar_swordphase",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"dotvi:despawn": {
				"minecraft:instant_despawn": {}
			},
			"dotvi:playerassist": {
				"minecraft:behavior.melee_attack": {
					"priority": 2,
					"speed_multiplier": 1,
					"track_target": false
				},
				"minecraft:behavior.hurt_by_target": {
					"priority": 1
				},
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 2,
					"within_radius": 20,
					"reselect_targets": true,
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "monster"
									}
								]
							},
							"max_dist": 20
						}
					],
					"must_see": true,
					"must_see_forget_duration": 17
				},
				"minecraft:timer": {
					"looping": false,
					"time": 20,
					"time_down_event": {
						"target": "self",
						"event": "dotvi:despawn"
					}
				}
			},
			"dotvi:alatarassist": {
				"minecraft:behavior.melee_attack": {
					"priority": 2,
					"speed_multiplier": 1,
					"track_target": false
				},
				"minecraft:behavior.hurt_by_target": {
					"priority": 1,
					"entity_types": {
						"filters": {
							"test": "is_family",
							"subject": "other",
							"value": "alatarah",
							"operator": "not"
						}
					}
				},
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 2,
					"within_radius": 20,
					"reselect_targets": true,
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									}
								]
							},
							"max_dist": 20
						}
					],
					"must_see": true,
					"must_see_forget_duration": 17
				},
				"minecraft:damage_sensor": {
					"triggers": {
						"cause": "all",
						"deals_damage": false
					}
				}
			}
		},
		"components": {
			"minecraft:health": {
				"value": 20,
				"max": 20
			},
			"minecraft:movement": {
				"value": 0.25
			},
			"minecraft:physics": {
				"has_collision": true,
				"has_gravity": true
			},
			"minecraft:attack": {
				"damage": 20
			},
			"minecraft:behavior.look_at_player": {
				"priority": 5
			},
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"can_walk": true
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:behavior.float": {},
			"minecraft:damage_sensor": {
				"triggers": {
					"cause": "all",
					"deals_damage": false
				}
			},
			"minecraft:scale": {
				"value": 0.75
			}
		},
		"events": {
			"dotvi:despawn_event": {
				"add": {
					"component_groups": [
						"dotvi:despawn"
					]
				}
			},
			"dotvi:spawn_alatarassist": {
				"add": {
					"component_groups": [
						"dotvi:alatarassist"
					]
				}
			},
			"dotvi:spawn_playerassist": {
				"add": {
					"component_groups": [
						"dotvi:playerassist"
					]
				}
			},
			"dotvi:despawn": {
				"run_command": {
					"target": "self",
					"command": [
						"particle dotvi:heritickill_one",
						"playsound misc.ghost.poof @a[r=15]",
						"event entity @s dotvi:despawn_event"
					]
				}
			}
		}
	}
}