public function onBreak(Item $item) { $this->deactivateImmediately(); $this->getLevel()->setBlock($this, new Air(), true, false); $this->getLevel()->setBlockTempData($this); }