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?
execute @e[type=arrow] ~ ~ ~ teleport @e[type=pig] ~ ~2 ~
work? Specifically "teleport" instead of "tp" and leave out the second command. If that doesn't work, would it be an option to have the mob be higher above the arrow?/entitydata
works with changing passengers, but if it works properly, you could try adding the plug to the arrow as a passenger. I can't try this myself until Friday.