I can't silence mobs using tick function
I have these commands in my tick function
Continue to help postexecute as @e[tag=!scored,type= cat] run scoreboard players set @s sound_cooldown 10 execute as @e[tag=!scored,type= cat] run tag @s add scored execute as @e[name="Averjax___"] run data merge entity @s {Silent:1b}
3rd command doesn't work the rest is fine so it is not the problem with the tick function
I'm trying to silence mobs with specific name
when I run the command in game it works perfectly but it doesn't work in the function file