Errors in visual studio code?

execute if score tick mana >= 20 mana as @a unless score @s mana >= 30 mana run scoreboard players add @s mana 1
execute if score tick mana >= 20 mana run scoreboard players set tick mana 0
execute as @a run title @s actionbar ["Mana = ",{score:{name:"@s",objective:"mana"}}]
``` I made this in minecraft using commandblocks and it worked fine but as soon as i threw the last line in vs code for a datapack it got errors. the only addon i have is datapack helper plus does anyone know whats wrong
Continue to help post