{
	"format_version": "1.13.0",
	"minecraft:entity": {
		"description": {
			"identifier": "minecraft:ender_dragon",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false,
			"properties": {
				"ldz:ice_overlay": {
					"type": "bool",
					"client_sync": true,
					"default": false
				}
			},
			"animations": {
				"ctrl.ice_timer": "controller.animation.vanilla.ice_timer",
				"ice_timer": "animation.vanilla.ice_timer",
				"ice_damage": "animation.vanilla.ice_damage"
			},
			"scripts": {
				"animate": [
					"ctrl.ice_timer"
				]
			}
		},
		"component_groups": {
			"ice_overlay": {
				"minecraft:is_shaking": {}
			},
			"dragon_sitting": {
				"minecraft:behavior.dragonlanding": {
					"priority": 0
				},
				"minecraft:behavior.dragonflaming": {
					"priority": 1
				},
				"minecraft:behavior.dragonscanning": {
					"priority": 2
				}
			},
			"dragon_flying": {
				"minecraft:behavior.dragontakeoff": {
					"priority": 0
				},
				"minecraft:behavior.dragonchargeplayer": {
					"priority": 1
				},
				"minecraft:behavior.dragonstrafeplayer": {
					"priority": 2
				},
				"minecraft:behavior.dragonholdingpattern": {
					"priority": 3
				},
				"minecraft:shooter": {
					"type": "dragonfireball",
					"def": "minecraft:dragon_fireball"
				}
			},
			"dragon_death": {
				"minecraft:behavior.dragondeath": {
					"priority": 0
				}
			},
			"instant_despawn": {
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:type_family": {
				"family": [
					"dragon",
					"mob"
				]
			},
			"minecraft:health": {
				"value": 200,
				"max": 200
			},
			"minecraft:boss": {
				"should_darken_sky": false,
				"hud_range": 125
			},
			"minecraft:collision_box": {
				"width": 13,
				"height": 4
			},
			"minecraft:movement": {
				"value": 0.3
			},
			"minecraft:fire_immune": true,
			"minecraft:knockback_resistance": {
				"value": 100,
				"max": 100
			},
			"minecraft:flying_speed": {
				"value": 0.6
			},
			"minecraft:attack": {
				"damage": 3
			},
			"minecraft:damage_sensor": {
				"triggers": {
					"cause": "fall",
					"deals_damage": false
				}
			},
			"minecraft:on_start_landing": {
				"event": "minecraft:start_land",
				"target": "self"
			},
			"minecraft:on_start_takeoff": {
				"event": "minecraft:start_fly",
				"target": "self"
			},
			"minecraft:on_death": {
				"event": "minecraft:start_death",
				"target": "self"
			},
			"minecraft:persistent": {},
			"minecraft:physics": {
				"has_gravity": false,
				"has_collision": false
			},
			"minecraft:game_event_movement_tracking": {
				"emit_flap": true
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"remove": {},
				"add": {
					"component_groups": [
						"dragon_flying"
					]
				}
			},
			"minecraft:start_land": {
				"remove": {
					"component_groups": [
						"dragon_flying"
					]
				},
				"add": {
					"component_groups": [
						"dragon_sitting"
					]
				}
			},
			"minecraft:start_fly": {
				"remove": {
					"component_groups": [
						"dragon_sitting"
					]
				},
				"add": {
					"component_groups": [
						"dragon_flying"
					]
				}
			},
			"minecraft:start_death": {
				"remove": {
					"component_groups": [
						"dragon_sitting",
						"dragon_flying"
					]
				},
				"add": {
					"component_groups": [
						"dragon_death"
					]
				}
			},
			"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"
					]
				}
			},
			"despawn": {
				"add": {
					"component_groups": [
						"instant_despawn"
					]
				}
			}
		}
	}
}