So I am making a plane that is going to involve an armor stand that will wear a model of a plane on its head and a pig that will ride on top of the armor stand. Does anyone know how to detect if a player rides the pig in 1.13?
1.12 version
/scoreboard players set @a Flying 1 {Riding:{id:pig,CustomName:"Fly"}
Me trying to update the command to 1.13 and failing
/scoreboard players set @a[nbt={Riding:{id:pig,CustomName:"\"Fly\""}}] Flying 1
bOkay so I just decided to solve this problem my own way... I did some testing and this command is a really accurate distance between the pig and the player... if you run this command while riding a pig it will say hi in the chat but if you run it when you are not riding it it doesn't work. It is a weird system but it seems to be very reliable...
/execute at @e[type=pig,name=Fly] at @a[distance=0.324..0.325] run say hi
So I am making a plane that is going to involve an armor stand that will wear a model of a plane on its head and a pig that will ride on top of the armor stand. Does anyone know how to detect if a player rides the pig in 1.13?
1.12 version
/scoreboard players set @a Flying 1 {Riding:{id:pig,CustomName:"Fly"}
Me trying to update the command to 1.13 and failing
/scoreboard players set @a[nbt={Riding:{id:pig,CustomName:"\"Fly\""}}] Flying 1
bOkay so I just decided to solve this problem my own way... I did some testing and this command is a really accurate distance between the pig and the player... if you run this command while riding a pig it will say hi in the chat but if you run it when you are not riding it it doesn't work. It is a weird system but it seems to be very reliable...
/execute at @e[type=pig,name=Fly] at @a[distance=0.324..0.325] run say hi