Minecraft Java Edition – How to Detect if a Specific Mob Is Dead in Minecraft 1.15

minecraft-commandsminecraft-java-edition

So I am trying to be able to detect if a specific mob is dead and then execute a command. I have already tagged the mob "boss1" and I know that you need a tag to detect the entity but I don't know the commands to actually detect it.

Best Answer

You will need to check for the entity using /execute.

/execute unless entity @e[tag=boss1] run ...

Run the command unless there is an entity with the tag boss1.

When the boss dies, you can put the command to run after the run parameter.