I'm an avid Command Block user for Minecraft: Bedrock Edition and I'm currently diving into a system for a Boss Spawner for what's essentially an RPG-style dungeon with a Boss Spawner and boss at the end. I've spent quite a bit of time trying to piece together a command that can detect when the "boss" entity dies so as to give the player an automatic reward and to teleport them safely from the dungeon.
The only problem is that the command requires the entity that I'm spawning as the boss, which is a skeleton, in this case, to have the unique name "TheMinion". I've been able to create a system that can detect the skeleton entity and apply the correct armor, weapon, and effect combination that I want, but I cannot find one that will apply a
nametag to the entity.
I would greatly appreciate it if anyone could share a solution to this problem.