Hello, developers! In one of my minigames I'm trying to make so changing of one block was visible by only one player. This block should not be changed in the world, but one player will see it like it was changed. May be I do it in wrong way, because I didn't succeed. I'm trying to create UpdateBlockPacket and send it to the particular player. PHP: $pk = new UpdateBlockPacket();$pk->x = $pos->getX();$pk->y = $pos->getY();$pk->z = $pos->getZ();$pk->blockId = Block::GOLD_BLOCK;$pk->blockData = 0;$pk->flags = UpdateBlockPacket::FLAG_NONE; // not sure what is here$player->dataPacket($pk); But player doesn't see any changes How to implement it correctly? Thanks in advance!
Um, for that, you will need to send BlockEntityPacket directly to the player. Read my answer to a similar question.