#Project generated by Animated Java (https://animated-java.dev/)

scoreboard players operation .this aj.id = @s aj.id
scoreboard players operation .this aj.frame = @s aj.frame
execute rotated ~ 0 as @e[type=#annoying_seagull:bone_entities,tag=aj.annoying_seagull.bone,distance=..5.1] if score @s aj.id = .this aj.id run function annoying_seagull:animations/death/tree/trunk
execute if score .noScripts aj.i matches 0 run function annoying_seagull:animations/death/zzz/execute/20
scoreboard players operation @s aj.frame += .aj.annoying_seagull.framerate aj.i
scoreboard players set .aj.animation aj.annoying_seagull.animating 1
execute unless score @s aj.frame matches 0..21 run function annoying_seagull:animations/death/edge