block = $block; $this->pos = $pos; $this->item = $item; } /* * Runs when the delay comes */ public function onRun($currentTick) { $this->block->place($this->item, $this->pos->getLevel()->getBlock($this->pos), $this->block, 0, 0, 0, 0); $inv = $this->pos->getLevel()->getTile($this->pos); LootTable::fillChest($inv->getInventory(), $this->pos); } }