I'm trying to make a repeating command block that makes an arrow have an entity riding it when shot (I'm using a pig here as an example) but for some reason it says it modified the data, but it isn't working. Can anyone help please?
myMy command:
data merge entity @e[limit=1,type=minecraft:arrow] {Passengers:[{id:pig}]}
data merge entity @e[limit=1,type=minecraft:arrow] {Passengers:[{id:pig}]}