I figured out a way to do this in complete vanilla mine craft with only command blocks. The type of compass isnt the same but itll still point towards them. The only catch to this is the fact that the hunter needs to respawn in a timely manner, or else this wont work.
So the only way to make this work is to set the world spawn ontop of the prey so the compass tracks them
So first off create the world, mark the cords of spawn, and tp 100000 blocks away (So that u never reach the command blocks while playing.) Also attempt to build this in 1 chunk and run the following command once:
(F3 + G to toggle chunks)
/scoreboard objectives add deaths deathCount
First put a command block on repeat mode and intert to following command (repleace "ap" with the "at" symbol + p)
/execute if entity ap[scores={deaths=1..}]
Have 2 comparaters coming from this command block.
The first comparater needs to power a block, which in turn powers a 2 tick repeater and a sticky piston with a redstone block attached to the head of the piston. When the piston is depowered, the redstone block needs to power a command block on repeat mode with this command: (repleace "ap" with the "at" symbol + p)
/execute at ap[name=(prey user name)] positioned ~ ~ ~ run setworldspawn ~ ~ ~
From the 2 tick repeater. run it into a regular command block with the command:
/setworldspawn (Insert cords of actual worldspawn)
From the original command block, from the 2nd comparater, run a line of redstone repeater with delay. This will be the amount of time the hunter has to respawn. At the end, place a redstone dust with it powering 2 repeaters, a 1 tick, and a 2 tick.
On the one tick, power a command block with the command: (repleace "ap" with the "at" symbol + p)
/give ap[scores={deaths=1..}] compass 1
And on the 2 tick, run this: (repleace "aa" with the "at" symbol + a)
/scoreboard players set aa[scores={deaths=1..}] deaths 0
There you go! now the compass with track the prey and the hunter will always respawn with the compass! Just 1 more thing, position yourself with in the chunk you created the redstone and run "forceload add ~ ~" This will ensure the chunk is always loaded while you're playing the game.
Also note the time u set up for the hunter to respawn, The shorter u make it, the more likely he wont respawn in time, the longer u make it, He could die a 2nd time and lose the compass he is given, and also the longer it takes for him to recieve the compass.
Also another downside: when prey enters nether or end, and compass wont track that position (It'll point towards actual world spawn)