I'm attempting to have an entity do something when it can no longer reach the player it's chasing. For example, if the entity is chasing a player but the player places blocks in the way of the path. Is there a simple way to detect when the entity gets caught on something? The only way I can think of is loading all of the entities that are targeting players into an array, parsing through the array, and checking whether those entities have been stationary for a significant amount of time. To me, this seems pretty inefficient so I'm wondering if there's a better way to go about it. Thanks!