How would I make a projectile invisible, in my case (armor stand). Attempt: PHP: $pk = new AddActorPacket(); $pk->entityRuntimeId = Entity::$entityCount; $pk->type = 61; $pk->position = $player->asVector3(); $pk->motion = new Vector3(0, 0, 0); $pk->yaw = 0; $pk->pitch = 0; $pk->metadata = [Entity::DATA_FLAGS => [Entity::DATA_TYPE_LONG, 1 << Entity::DATA_FLAG_INVISIBLE]]; $player->sendDataPacket($pk);
Avoid using packets as much as possible. Create and register the armor stand entity, then do smt like PHP: $entity = Entity::createEntity(...);$entity->setInvisible(); For a more detailed example, view Muqsit's comment on the post here https://forums.pmmp.io/threads/is-there-away-to-make-throwing-sword.5797/
Protocol changes aren't documented and BC breaks are possible so you'll have trouble updating to newer releases