PlayerInteractEvent? PHP: $block = $event->getBlock();if ($block === Block::BED) { // Have a check for if the block interacted with is a bed block. Not sure if this is right though. $x = $block->getX(); $y = $block->getY(); $z = $block->getZ(); echo 'Bed Block detected at '.$x.'X '.$y.'Y '.$z.'Z';}