public function onBreak(Item $item) { if ($this->canCalc()) { $this->calcSignal(0, self::DESTROY); } else { $this->getLevel()->setBlock($this, new Air()); } }