public function onBreak(Item $item) { $this->getLevel()->setBlock($this, new Air(), true); if ($this->isActivated()) { $this->deactivate(); } }