I am trying to make a command in Minecraft 1.12.1 where a pig can ride an arrow, but I keep running into problems.
The first problem is, that when a mob is riding an arrow, it gets damaged and causes the arrow to stop moving.
I want to make the arrow continue moving without hurting the mob.
The commands I am using (in a repeating command block) are as follows:
/execute @e[type=arrow] ~ ~ ~ tp @e[type=pig] ~ ~2 ~
And the problem with that command is that the pig is only constantly being teleported up 2 blocks from where it was as long as the arrow exists.
The second command is:
/tp @e[type=pig] @e[type=arrow]
And the problem is basically the pig is damaged and the arrow doesn't go anywhere.
I've tried them both together and separately but they just won't work. Any ideas?