This is a simple mod that i made for debugging my mods, I thought that somebody could need this, so here you have it, it's a fork of the Mob Entity Path Visualizer for 1.20.1, please refer to his mod if you want something below this version because he is the original author.
Note: this mod isn't optimized in any way, it's just for my debugging, if your pc has poor specs, it could cause big lag spikes!
Link to the original mod: https://www.curseforge.com/minecraft/mc-mods/mob-entity-path-visualizer
How to use
To use this mod you must execute this command to get the item:
/give @p pfa:pathing_visualizer
Then old it in the main hand (there are some weird bugs when holding it in the offand) and watch the mob path.