execute if score introtime throne matches 0..240 run scoreboard players add introtime throne 1
execute if score introtime throne matches 10..240 run bossbar set minecraft:throne players @a
execute if score introtime throne matches 0..10 run scoreboard players set @a stattempdpstot 0
execute if score introtime throne matches 0..10 run scoreboard players set @a stattempdamage 0

execute if score players state matches 1..3 if score introtime throne matches 30..240 if score health throne matches 0..1190 run scoreboard players add health throne 10
execute if score players state matches 4 if score introtime throne matches 30..240 if score health throne matches 0..1340 run scoreboard players add health throne 20
execute if score players state matches 5 if score introtime throne matches 30..240 if score health throne matches 0..1490 run scoreboard players add health throne 30
execute if score players state matches 6 if score introtime throne matches 30..240 if score health throne matches 0..1640 run scoreboard players add health throne 40

execute if score introtime throne matches 30..240 run particle minecraft:squid_ink 862 165 202 -5 5 -1.5 0.1 0 normal
execute if score introtime throne matches 60..240 run particle minecraft:squid_ink 862 165 202 -5 3 1 0.1 0 normal
execute if score introtime throne matches 80..240 run particle minecraft:squid_ink 862 165 202 -2 6 0.5 0.1 0 normal
execute if score introtime throne matches 120..240 run particle minecraft:squid_ink 862 165 202 -2 -2 -0.5 0.1 0 normal
execute if score introtime throne matches 160..240 run particle minecraft:squid_ink 862 165 202 -7 5 0 0.1 0 normal
execute if score introtime throne matches 241 run function func:encounter6/start