array_fill PHP: /** @var BaseInventory $inventory */$item = Item::get(276); //The nether reactor aka "pocketmine" block.$array = array_fill(1, 26, $item); //Starts from 1, has 26 keys.$inventory->setContents($array);