Top 5 Smartest Mobs In Minecraft

Shulkers

Shulker is coded to be able to find the player's location through blocks.

Zombies

Zombies are able to detect a player from over forty blocks, twice.

Elder Guardian

it can detect the player's presence through blocks and inflict mining fatigue on player.

Zombified Piglins

Has a skill of remembering players that attack them even after their escape.

Villagers

Have knowledge of how to farm, communicate with each other, detect and flee from danger.