Until this gets fixed, you can leash the wanted mob to itself and it will act as a non-leashed mob in every way except dropping the lead on death.
Command:
/execute as <entity> run data modify entity @s Leash.UUID set from entity @s UUID
Until this gets fixed, you can leash the wanted mob to itself and it will act as a non-leashed mob in every way except dropping the lead on death.
Command:
/execute as <entity> run data modify entity @s Leash.UUID set from entity @s UUID