How to See a Mob Aura in Minecraft (Glowing Effect)
Minecraft Java 1.21+ and 26+ – Highlight Mobs with Glowing When Looking at Them
Want to see a mob aura in Minecraft and highlight it with a glowing outline?
In this tutorial you’ll learn how to automatically apply the Glowing effect to a mob when you aim at it,
creating a great system for entity selection, RPG mechanics and custom minigames.
Works in Minecraft Java Edition 1.21+ and newer versions like 26+.
To begin, place this command in a Repeat command block set to Always Active
execute as @a at @s anchored eyes facing entity @e[type=pig] eyes anchored feet positioned ^ ^ ^1 rotated as @s positioned ^ ^ ^-1 if entity @s[distance=..0.3] run effect give @e[type=pig] glowing 1 10 true
In this example, I chose the pig, just replace it with the mob you want to see the aura of
In distance, you can modify the detection radius to see the aura. Change the value to see how it works