Hi, How would I go about doing this: Spawn a stone block under player, set player to invisible and make the stone block follow the player as if the player is morphed to it. Any help would be greatly appreciated.
You can make a task that regularly remove the previous stone and set a new stone but i think using fake block packets would be more efficient there's also using falling sand as another block id but it dosent grip into the grid
I know how to create entities and make them follow a player but how would I do it for a tile? As a block would be considered a tile not an entity
So for example this is how I would spawn an entity to a player. PHP: public function spawnTo(Player $player) { parent::spawnTo($player); $pk = new AddEntityPacket(); $pk->entityRuntimeId = $this->getId(); $pk->type = $this->getNetworkId(); $pk->x = $this->x; $pk->y = $this->y; $pk->z = $this->z; $pk->speedX = $pk->speedY = $pk->speedZ = 0.0; $pk->yaw = $this->yaw;$pk->metadata = [ 15 => [0,1], 20 => [2,86] ];$pk->y = $this->y + 0.6; $pk->pitch = $this->pitch; $pk->metadata = $this->dataProperties; $player->dataPacket($pk); } How would I do this with a block. forexample a book shelf