public function onBreak(Item $item) { $t = $this->getLevel()->getTile($this); if ($t instanceof TileChest) { $t->unpair(); } $this->getLevel()->setBlock($this, new Air(), true, true); return true; }