When I break a Bed I get a random power instead of the actual one. Code: PHP: public function onBreak(BlockBreakEvent $event) { $block = $event->getBlock(); if($block->getId() == Item::BED_BLOCK) { $this->getLogger()->info($block->getDamage()); }}
I think he is trying to say that when he breaks a colored bed, the dropped bed is not the same color as the colored bed that was just broken.
Bed colour is not stored in the damage. The damage stores the rotation. The colour is stored in the bed tile.