I'd like to be able to attach a leadable mob (like a pig or a cow) to a passive mob or monster so that I can make the illusion that it is on the end of the lead. No, /ride is not the solution because I want to be able to position the lead anywhere on the mob, not just above it. What I tried was making a repeating command block run this command:
/execute at @n[type=enderman] run teleport @n[type=pig] ~ ~1 ~
However, the mob boxes of the pig and the enderman would conflict, and the pig would push the enderman around even while it was not actually moving. This causes the enderman to walk slowly in random directions instead of stand still (the pig is invisible in this GIF):
Is there a way to make a passive mob look like it is on a lead without pushing it around in random directions?
A bonus that isn't required but would be really cool would be if the passive mob could actually be pulled around with the lead, instead of just looking like it is being pulled around.
