I don't know how to use those 2 packs. Can you give me a code to test it out, thank you. And my entity is a zombie.
PHP: $zumbi = .....; //Your zumbi Entity$to = new Vector3($zumbi->add($x, $y, $z));$pk = new MoveEntityAbsolutePacket();$pk->entityRuntimeId = $zumbi->getId();$pk->position = $to;$pk->xRot = $zumbi->getYaw();$pk->yRot = $zumbi->getYaw();$pk->zRot = $zumbi->getPitch();foreach($zumbi->getLevel()->getPlayers() as $p){$p->dataPacket($pk);}
Personally, for Entities that all players should see, I recommend creating your own Entity class and moving it using the Entity->move method, like AI plugins do it: https://github.com/jasonwynn10/Vani...wynn10/VanillaEntityAI/entity/passive/Cow.php That way it's less likely to break with protocol changes.