I was trying to get the second bed block using this code: PHP: $x=$pos->getX(); $y=$pos->getY(); $z=$pos->getZ(); if($world->getBlock(new Vector3($x+1, $y, $z))->getId() == 26) return new Vector3($x+1, $y, $z); if($world->getBlock(new Vector3($x-1, $y, $z))->getId() == 26) return new Vector3($x-1, $y, $z); if($world->getBlock(new Vector3($x, $y, $z+1))->getId() == 26) return new Vector3($x, $y, $z+1); if($world->getBlock(new Vector3($x, $y, $z-1))->getId() == 26) return new Vector3($x, $y, $z-1); But if I put two beds side by side ... My code goes crazy. Is there any other way to get a second bed block?
[QUOTE = "wolfdale, post: 77117, member: 419"] https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/block/Bed.php#L119 [/ QUOTE] Thanks a lot!