I am currently attempting to create a public function for a block that pulls a player(s) to it whether it is above, below and to the left or right of the player; using PHP: $motionX, $motionY, $motionZ or anything better. Is there any way I could accomplish that?
Have you considered using teleportation functions? IIRC the animation is comparable (close-range anyway) to if you set motion vectors for the player.
That I also have down, but I have never attempted to create such a function for a block and I lack the information to do so. Do you have any resources I could use as guidance?
Sorry to be off topic but this caught my attention, does this even work? If closing a players inventory is that easy then I'll use this from now on. https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Player.php#L3459-L3464
PHP: $packet = new ContainerClosePacket();$packet->windowid = 0;$player->dataPacket($packet); now get ontopic