main = $main; $this->block = $block; $this->server = $main->getServer(); } public function onRun($tick) { $tile = $this->block->getLevel()->getTile($this->block); if(get_class($tile) == "pocketmine\\tile\\Hopper") { // For software like pocketmine that haven't implemented Hoppers. $tile->namedtag->isVacuum = new ShortTag("isVacuum", 1); } } }