Hey, so if you go to the Protocol wiki, there will be a packet called SetPassengers ( http://wiki.vg/Protocol#Set_Passengers ). However, while coding, I cannot find this packet as I believe it is called something else. What is the actual packet called that I can code with called and how do I use it as the protocol wiki doesn't explain it well.
You are using 1.12.2 aren't you? Because there is a PacketPlayOutMount, which is non existing in 1.8 Also please do not bump within 24 hours.
I am trying to make an NMS armor stand and use the SetPassengers / Mount packet to make the armor stand the vehicle for the player.
Uuuhh just use setPassengers method. If it doesn't exist in EntityArmorStand, use getBukkitEntity() first.
Afraid that's not how it works when you're spawning entities with packets and using their entity ids.
Sorry for the late reply, but, just tell me if PacketPlatOutMount is the SetPassengers packet found in the Protocol wiki?
Ok, and which method would be more efficient for creating an armor stand entity, sending it with packets or adding the entity to my world?
What I am trying to do is to create an armor stand that is invis, use the SetPassengers packet and then use the steer vehicle packet to get WASD controls.
You could've just said this in your original post. Anyways, you don't need to use packets. Create a class that extends EntityArmorStand and follow this tutorial: https://www.spigotmc.org/threads/tutorial-1-11-wasd-entity-riding.203090/ Then do whatever you want with it, make a player ride it, make it invisible etc.
This wont work, there is more to it and its a really long story (i think). But basically, I need pretty much exactly the WASD controls, which can be achieved by the steer vehicle packet. The link you sent wont work for me. My end goal is different than just being able to ride an invis armor stand. So my initial question still remains, which way is best, adding an entity to my world or using packets?