Entity target
The player or mob that a hostile mob is currently chasing or attacking. It is empty when the mob has no target.
A Minecraft element (a value) in Entities & mobs. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player uses a command → Entity target → If Has target → Make it stop attacking.
Also called
target, who attacks, aggro, chasing, enemy
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Entity
What it gives back
- Target
- Has target