{
	"format_version": "1.18.0",
	"minecraft:entity": {
		"description": {
			"identifier": "ldz:summoner_ender_lord",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"hint": "animation.summoner_ender_lord.hint",
				"summon": "animation.summoner_ender_lord.summon"
			},
			"scripts": {
				"animate": [
					"hint",
					{ "summon": "q.property('ldz:summon')" }
				]
			},
			"properties": {
				"ldz:summon": {
					"type": "bool",
					"default": false,
					"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": {}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"ldz",
					"summoner_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:interact": {
				"interactions": [
					{
						"on_interact": {
							"target": "other",
							"event": "set_interacted_with_to_lord_summoner"
						},
						"interact_text": "action.interact.summoner_ender_lord.resummon"
					}
				]
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "void",
						"on_damage": {
							"event": "despawn"
						}
					},
					{
						"cause": "all",
						"deals_damage": false
					}
				]
			}
		},
		"events": {
			"set_summon_to_true": { "set_property": { "ldz:summon": true } },
			"set_summon_to_false": { "set_property": { "ldz:summon": false } },
			"despawn": {
				"add": {
					"component_groups": [
						"instant_despawn"
					]
				}
			}
		}
	}
}