I have this code: PHP: $sndblks = []; foreach($blocks as $i=>$block){ list($x,$y,$z)=array_map("intval", explode(".", $i)); $sndblks[] = Block::get($block->getId(),$block->getDamage(), new Position($x,$y,$z,$l)); } $l->sendBlocks($l->getChunkPlayers($pl->getX()>>4,$pl->getZ()>>4), $sndblks, UpdateBlockPacket::FLAG_ALL_PRIORITY); Sometimes it works, sometimes it doesn't. Anybody can spot the problem? This is intended to run on PocketMine 1.5. Full code is here: https://github.com/alejandroliu/bad-plugins/blob/master/ToyBox/src/aliuly/toybox/MagicCarpet.php#L68