Command :
execute as @a run titleraw @s actionbar {"rawtext":[{"text":"§6"},{"selector":"@s"},{"text":"\n§aNearby Entities§f: "},{"score":{"name":"@s","objective":"entity"}}]}
___________________________________________
On this video, i will explaining to you all how to make "Nearby Entity Counter" on Minecraft with command blocks. Don't worry, this tutorial was very simple and i will make sure you can do this correctly.
This Tutorial might be only works on Minecraft Bedrock Edition, but not with Java or another version. I'am sorry, it's because i only know Minecraft Bedrock command, but not with Java.
Make sure you watch this video till the end.
Okay, that's all, enjoy my video :)
___________________________________________
🎵Music used
Title : Creative 4
Artist : C418
___________________________________________