Add pitch and yaw values to the spawn packet and use EntityType.ARMOR_STAND for setting the entity type. This change ensures the armor stand is created with the correct orientation and type.