You mean the chest opening animation? You can use BlockEventPacket. I'll update this post with how PMMP uses if I ever find it. XD
Open animation: PHP: /** @var Level $level *//** @var int $x *//** @var int $y *//** @var int $z */$pk = new BlockEventPacket();$pk->x = $x;$pk->y = $y;$pk->z = $z;$pk->case1 = 1;$pk->case2 = 2;$level->addChunkPacket($x >> 4, $z >> 4, $pk); Close animation: PHP: /** @var Level $level *//** @var int $x *//** @var int $y *//** @var int $z */$pk = new BlockEventPacket();$pk->x = $x;$pk->y = $y;$pk->z = $z;$pk->case1 = 1;$pk->case2 = 0;$level->addChunkPacket($x >> 4, $z >> 4, $pk);
Unless I'm mistaken, you can also broadcast the packet as you wish, such as to a single player with $player->dataPacket.