{
	"format_version": "1.18.0",
	"minecraft:entity": {
		"description": {
			"identifier": "ldz:tutorial_ender_lord",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"laugh": "animation.ender_lord.laugh",
				"walk": "animation.ender_lord.walk",
				"jump": "animation.ender_lord.jump",

				"ctrl.states": "controller.animation.tutorial_ender_lord.states"
			},
			"scripts": {
				"animate": [
					"ctrl.states"
				]
			},
			"properties": {
				"ldz:state": {
					"type": "enum",
					"values": [ "default", "laugh", "walk", "jump" ],
					"default": "default",
					"client_sync": true
				},
				"ldz:ice_overlay": { // This is here only to prevent an error
					"type": "bool",
					"default": false,
					"client_sync": true
				}
			}
		},
		"component_groups": {
			"instant_despawn": {
				"minecraft:instant_despawn": {}
			},
			"no_collision_box": {
				"minecraft:collision_box": {
					"height": 0,
					"width": 0
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"ldz",
					"tutorial_ender_lord"
				]
			},
			"minecraft:collision_box": {
				"height": 3,
				"width": 1.5
			},
			"minecraft:physics": {
				"has_collision": true,
				"has_gravity": true
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			},
			"minecraft:attack": {
				"damage": 1
			},
			"minecraft:navigation.generic": {
				"can_jump": false,
				"avoid_damage_blocks": true,
				"blocks_to_avoid": [
					"ldz:portal_frame_barrier"
				]
			},
			"minecraft:movement.basic": {},
			"minecraft:movement": {
				"value": 0.4,
				"max": 0.4
			},
			"minecraft:behavior.melee_attack": {
				"priority": 0,
				"track_target": true
			},
			"minecraft:behavior.nearest_prioritized_attackable_target": {
				"priority": 1,
				"must_see": false,
				"reselect_targets": true,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{ "test": "is_family", "subject": "other", "value": "tutorial_dummy" }
							]
						},
						"max_dist": 50
					}
				]
			},
			"minecraft:follow_range": {
				"value": 50
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"test": "has_damage",
								"value": "void"
							},
							"event": "despawn"
						},
						"deals_damage": false
					},
					{
						"cause": "all",
						"deals_damage": false
					}
				]
			}
		},
		"events": {
			"set_state_to_default": { "set_property": { "ldz:state": "default" } },
			"set_state_to_laugh": { "set_property": { "ldz:state": "laugh" } },
			"set_state_to_walk": { "set_property": { "ldz:state": "walk" } },
			"set_state_to_jump": { "set_property": { "ldz:state": "jump" } },
			"no_collision_box": { "add": { "component_groups": [ "no_collision_box" ] } },
			"despawn": {
				"add": {
					"component_groups": [
						"instant_despawn"
					]
				}
			}
		}
	}
}