{
	"format_version" : "1.13.0",
	"minecraft:entity" : {
		"description" : {
			"identifier" : "minecraft:ender_dragon",
			"is_spawnable" : false,
			"is_summonable" : true,
			"is_experimental" : false
		},
		"component_groups" : {
			"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
				}
			},
			"rare_ender_dragon" : {
				"minecraft:health" : {
					"value" : 600,
					"max" : 600
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/rare_ender_dragon.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "4800"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "conduit_power",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.6
				},
				"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"
				}
			},
			"rare_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 10,
					"name" : "§bRare Armoured Ender Dragon The Defender"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 1,
							"visible" : false
						}
					]
				}
			},
			"ultra_ender_dragon" : {
				"minecraft:health" : {
					"value" : 1000,
					"max" : 1000
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/ultra_ender_dragon.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "5200"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "haste",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 0.8
				},
				"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"
				}
			},
			"ultra_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 20,
					"name" : "§eUltra Defensive Ender Dragon Of Turtling"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 2,
							"visible" : false
						}
					]
				}
			},
			"infernal_ender_dragon" : {
				"minecraft:health" : {
					"value" : 1400,
					"max" : 1400
				},
				"minecraft:loot" : {
					"table" : "loot_tables/entities/tartarean/infernal_ender_dragon.json"
				},
				"minecraft:experience_reward" : {
					"on_death" : "6000"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "saturation",
							"duration" : 999999,
							"visible" : true
						}
					]
				},
				"minecraft:movement" : {
					"value" : 1.0
				},
				"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"
				}
			},
			"infernal_bullwark" : {
				"minecraft:boss" : {
					"hud_range" : 30,
					"name" : "§cInfernal Turtling Ender Dragon Of Effing Armor"
				},
				"minecraft:spell_effects" : {
					"add_effects" : [
						{
							"effect" : "resistance",
							"duration" : 999999,
							"amplifier" : 3,
							"visible" : false
						}
					]
				}
			}
		},
		"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
			}
		},
		"events" : {
			"minecraft:entity_spawned" : {
				"randomize" : [
					{
						"weight" : 9500,
						"add" : {
							"component_groups" : [ "dragon_flying" ]
						},
						"remove" : {}
					},
					{
						"weight" : 75,
						"add" : {
							"component_groups" : [ "rare_ender_dragon", "rare_bullwark" ]
						}
					},
					{
						"weight" : 25,
						"add" : {
							"component_groups" : [ "ultra_ender_dragon", "ultra_bullwark" ]
						}
					},
					{
						"weight" : 5,
						"add" : {
							"component_groups" : [ "infernal_ender_dragon", "infernal_bullwark" ]
						}
					}
				]
			},
			"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" ]
				}
			}
		}
	}
}
