{
	"format_version": "1.16.0",
	"animations": {
		"animation.ender_lord.login_delay": {
			"animation_length": 1.1,
			"loop": false,
			"timeline": {
				"1.0": [
					"/event entity @e[type=ldz:summoner_ender_lord] despawn",
					"@s add_melee_mode"
				]
			}
		},
		"animation.ender_lord.charge_delay": {
			"animation_length": 4.5,
			"loop": false,
			"timeline": {
				"4.3": [
					"@s remove_during_beam",
					"@s remove_look_at_player"
				]
			}
		},
		"animation.ender_lord.face_player": {
			"animation_length": 4.5,
			"loop": false,
			"timeline": {
				"0.0": [
					"/effect @s slowness 4 255 true",
					"/tp @s ~ ~ ~ facing @p"
				],
				"0.25": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"0.5": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"0.75": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"1.0": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"1.25": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"1.5": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"1.75": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"2.0": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"2.25": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"2.5": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"2.75": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"3.0": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"3.25": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"3.5": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"4.0": [
					"/tp @s ~ ~ ~ facing @p"
				],
				"4.45": [
					"/effect @s slowness 0 0 true"
				]
			}
		},
		"animation.ender_lord.beam_delay": {
			"animation_length": 4.0,
			"loop": false,
			"timeline": {
				"0.05": [
					"@s set_beam_state_to_2",
					"/playsound mob.ender_lord.attack @a[r=20]"
				]
			}
		},
		"animation.ender_lord.beam_sfx": {
			"animation_length": 1.25,
			"loop": true,
			"timeline": {
				"0.0": [
					"/playsound mob.ender_lord.beam @a[r=20]"
				]
			}
		},
		"animation.ender_lord.beam": {
			"animation_length": 0.05,
			"loop": true,
			"timeline": {
				"0.0": [
					"/scoreboard objectives add BeamDelay dummy",
					"/execute positioned ~ ~ ~ if entity @s[scores={BeamDelay=5..}] run function endermen/ender_lord/beam_attack",
					"/scoreboard players add @s BeamDelay 1"
				]
			}
		},
		"animation.ender_lord.end_delay": {
			"animation_length": 0.8,
			"loop": false
		},

		"animation.ender_lord.attack_melee_delay": {
			"animation_length": 7,
			"loop": false
		},
		"animation.ender_lord.attack_summon_delay": {
			"animation_length": 4.0,
			"loop": false,
			"timeline": {
				"0.0": [
					"/effect @s slowness 4 255 true"
				],
				"3.95": [
					"/effect @s slowness 0 0 true"
				]
			}
		},
		"animation.ender_lord.attack_beam_delay": {
			"animation_length": 9.2,
			"loop": false
		},
		"animation.ender_lord.despawn_delay": {
			"animation_length": 5,
			"loop": false,
			"timeline": {
				"0.0": [
					"/function endermen/ender_lord/set_health",
					"/playsound mob.ender_lord.death @a ~ ~ ~ 20 1.0"
				],
				"3.0": [ "/particle ldz:lord_death_sparks ^ ^ ^0.5" ],
				"4.85": [ "/particle ldz:lord_death_discharge ^ ^ ^1.5" ],
				"4.95": [ "/function endermen/ender_lord/defeated" ]
			}
		},
		"animation.ender_lord.despawn_redundancy": {
			"animation_length": 10.0,
			"loop": true,
			"timeline": {
				"9.0": [
					"@s despawn"
				]
			}
		},
		"animation.ender_lord.duplication_check": {
			"animation_length": 3.0,
				"loop": true,
				"timeline": {
					"0.0": [
						"/tag @s add BossFight"
					],
					"2.5": [
						"/scoreboard players add @e[type=ldz:ender_lord,tag=BossFight] EnderLordCheck 0",
						"/event entity @e[type=ldz:ender_lord,scores={EnderLordCheck=0},tag=BossFight] despawn",
						"/function endermen/ender_lord/cleanup_summoner_and_portal"
					]
				}
		},
		"animation.ender_lord.health_to_score": {
			"animation_length": 10.0,
			"anim_time_update": "t.digit = Math.mod(Math.floor(v.convert / v.digit), 10) + 0.1; v.digit = v.digit / 10; return t.digit;",
			"timeline": {
				"0.0": [
					"/scoreboard players operation @s LordHP *= \".10\" Const",
					"/scoreboard players operation @s LordHP += \".var\" LordHP",
					"/scoreboard players set \".var\" LordHP 0"
				],
				"1.0": [
					"/scoreboard players set \".var\" LordHP 1"
				],
				"2.0": [
					"/scoreboard players set \".var\" LordHP 2"
				],
				"3.0": [
					"/scoreboard players set \".var\" LordHP 3"
				],
				"4.0": [
					"/scoreboard players set \".var\" LordHP 4"
				],
				"5.0": [
					"/scoreboard players set \".var\" LordHP 5"
				],
				"6.0": [
					"/scoreboard players set \".var\" LordHP 6"
				],
				"7.0": [
					"/scoreboard players set \".var\" LordHP 7"
				],
				"8.0": [
					"/scoreboard players set \".var\" LordHP 8"
				],
				"9.0": [
					"/scoreboard players set \".var\" LordHP 9"
				]
			}
		},
		"animation.ender_lord.home_check": {
			"animation_length": 1.0,
			"loop": true,
			"timeline": {
				"0.0": [
					"/execute unless entity @s[x=-2,y=59,z=-6,r=40] run function endermen/ender_lord/go_back_to_arena"
				]
			}
		},
		"animation.ender_lord.give_passive_force_to_player": {
			"animation_length": 0.6,
			"loop": true,
			"timeline": {
				"0.0": [
					"/scoreboard players add @a[r=40] CurrentForce 1"
				]
			}
		}
	}
}