Wiki 9Minecraft Wiki 9Minecraft
Abyssal Devourer Prime Wiki › Guides › How to Control Boss Targeting and Entity Immunity

How to Control Boss Targeting and Entity Immunity

Forcing the Boss to Attack a Specific Target

Whether you are setting up a custom mob battle, testing defenses, or managing aggro in a group fight, you can override who or what the Annihilation boss attacks using vanilla selector tags and mod functions.

There are two ways to force the boss onto a specific player or mob:

1. Using the Target Function: Run the following command with your chosen player name or entity selector:

/execute as <entity> run function annihilation:set_target

2. Using the Target Tag: Apply the target tag directly to the entity:

/tag <entity> add anniR.target

Making Players or Mobs Immune

If you have spectators watching the arena, camera accounts recording the fight, or nearby pets and villagers you do not want destroyed by area-of-effect attacks, you can grant them complete protection from the boss.

To protect an entity from both boss damage and boss targeting, run:

/tag <entity> add anniR.immune

To remove immunity later and allow the entity to take damage or be targeted again, use the standard vanilla tag removal command:

/tag <entity> remove anniR.immune