Spawning armourstand packets

Discussion in 'Plugin Development' started by thechrisanator, Apr 16, 2019.

Thread Status:
Not open for further replies.
  1. Offline

    thechrisanator

    I need to spawn armour stand packets, but I dont know how to do it for all of these data things.
    Code:
    worldloc.setZ(worldloc.getZ() + 0.5 + (airloc.getZ() - worldloc.getZ()) * 0.35);
                    EntityArmorStand bigOre = new EntityArmorStand(((CraftWorld)worldloc.getWorld()).getHandle());
                    bigOre.setPosition(worldloc.getX(), worldloc.getY(), worldloc.getZ());
                    bigOre.setInvisible(false);
                    bigOre.setNoGravity(true);
                    bigOre.setSmall(true);
                    bigOre.setHeadPose(new Vector3f(main.random.nextInt(180), main.random.nextInt(180), main.random.nextInt(180)));
                    bigOre.setBodyPose(new Vector3f(0, main.random.nextInt(180), 0));
    any idea which packets would do this?
     
  2. Offline

    KarimAKL

    @thechrisanator From what i see you just need to spawn it using the 'PacketPlayOutSpawnEntityLiving' packet.
    If i misunderstood your question please let me know. :p
     
  3. Offline

    thechrisanator

    Nope, that works perfectly, thank you :)
     
    KarimAKL likes this.
Thread Status:
Not open for further replies.

Share This Page