npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

adlauncher-core-reflourished

v1.0.1

Published

A module that allows downloading and running minecraft java with node.js

Downloads

167

Readme

ADLAUNCHER-CORE-reflourished | MINECRAFT LAUNCHER WITH NODE JS

This is a simple minecraft-core for download and play minecraft with node.js. / Simple minecraft-core para descargar y jugar minecraft con node.js.


This is a project developed in Node in charge of getting the files to run minecraft Vanilla, OptiFine, Forge and Fabric. The package will be updated taking into account suggestions and bug reports.

The package is in its official version 1.0.0, with support for OptiFine, Forge and Fabric.

The 1.0.0 update contains an event manager with which you can check the data sent by the program and the getVersions function to get the minecraft versions.

The project is not enabled for playing on premium servers (piracy is not supported).

Requirements

Usage

Install

npm i adlauncher-core-reflourished

Get Versions

const { Downloader } = require('adlauncher-core-reflourished');

const downloader = new Downloader();

// Get the available versions: vanilla - snapshot
downloader.getVersions('vanilla').then((data) => console.log(data));

Download Version

const { Downloader } = require('adlauncher-core-reflourished');

const downloader = new Downloader();

// Specify the version you want to download (1.8.9) and the directory
// downloader.download('[version]', '[path]');
downloader.download('1.8.9', './minecraft');

Launch Version

const { Launcher } = require('adlauncher-core-reflourished');

const launcher = new Launcher();

// State the options with which you are going to release a version of Minecraft
const launchOptions = {
  username: 'Fae34r', // Enter your username
  version: '1.20.1', // Enter the version
  gameDirectory: './minecraft', // Enter the directory where you have downloaded Minecraft
  memory: {
    // Define the memory you want to use
    min: '3G', // Minimum memory
    max: '7G', // Maximum memory
  },
  java: 'C:/Program Files/Java/jdk-17/bin/java.exe', // Exact location of java.exe file (OPTIONAL)
  java8: 'C:/Program Files/Java/jre-1.8/bin/java.exe', // Exact location of the java.exe v8 file (OPTIONAL)
};

launcher.launch(launchOptions); // Starts Minecraft with the declared options

Play with OptiFine

In case you want to play with optimization and need to install OptiFine, you will have to install it manually and specify in version the OptiFine folder installed.

If you have problems installing Fabric manually, you can see How to install OptiFine in MINECRAFT

const { Launcher } = require('adlauncher-core-reflourished');

const launcher = new Launcher();

// State the options with which you are going to release a version of Minecraft
const launchOptions = {
  username: 'Fae34r', // Enter your username
  version: '1.8.9-OptiFine_HD_U_M5', // Enter the OptiFine version
  gameDirectory: './minecraft', // Enter the directory where you have downloaded Minecraft
  memory: {
    // Define the memory you want to use
    min: '2G', // Mínimo de memoria
    max: '6G', // Máximo de memoria
  },
  java: 'C:/Program Files/Java/jdk-17/bin/java.exe', // Exact location of java.exe file (OPTIONAL)
  java8: 'C:/Program Files/Java/jre-1.8/bin/java.exe', // Exact location of java.exe file v8 (OPTIONAL)
};

launcher.launch(launchOptions); // Starts Minecraft with the declared options

Play with Fabric

In case you want to play with mods, support for fabric is already available in adlauncher-core-reflourished.

You must install it manually like OptiFine and specify in version the installed fabric folder.

If you have problems installing Fabric manually, you can see How to INSTALL FABRIC and MODS in MINECRAFT

const { Launcher } = require('adlauncher-core-reflourished');

const launcher = new Launcher();

// State the options with which you are going to release a version of Minecraft
const launchOptions = {
  username: 'Fae34r', Enter your username
  version: 'fabric-loader-0.15.7-1.18', // Enter the Fabric version
  gameDirectory: './minecraft', // Enter the directory where you have downloaded Minecraft
  memory: {
    // Define the memory you want to use
    min: '2G', // Minimum memory
    max: '6G', // Maximum memory
  },
  java: 'C:/Program Files/Java/jdk-17/bin/java.exe', // Exact location of java.exe file (OPTIONAL)
  java8: 'C:/Program Files/Java/jre-1.8/bin/java.exe', // Exact location of java.exe file v8 (OPTIONAL)
};

launcher.launch(launchOptions); // Inicia Minecraft con las opciones declaradas

Play with Forge

If you want to play with mods and don't like Fabric, Forge support is finally available in adlauncher-core-reflourished.

You must install it manually, just like OptiFine and Fabric; specify the installed Forge folder in the version.

If you have problems installing Forge manually, you can check How to INSTALL FORGE and MODS in MINECRAFT.

const { Launcher } = require('adlauncher-core-reflourished');

const launcher = new Launcher();

// Declare the options with which you will launch a version of Minecraft
const launchOptions = {
  username: 'dani_adbg', // Enter your username
  version: '1.20-forge-46.0.14', // Enter the Forge version
  gameDirectory: './minecraft', // Enter the directory where you have downloaded Minecraft
  memory: {
    // Define the memory you want to use
    min: '2G', // Minimum memory
    max: '6G', // Maximum memory
  },
  java: 'C:/Program Files/Java/jdk-17/bin/java.exe', // Exact location of the java.exe file (OPTIONAL)
  java8: 'C:/Program Files/Java/jre-1.8/bin/java.exe', // Exact location of the java.exe v8 file (OPTIONAL)
};

launcher.launch(launchOptions); // Starts Minecraft with the declared options

Important Information

  • Forge Compatibility: Forge is available from version 1.12 to the latest.

  • Java Requirements:

  • Installation: Make sure the installation directories are the defaults. If you change the location, errors may occur.

Debug

To read the data sent by the program, you need to write the event manager.

// EVENT MANAGER FOR DOWNLOADING
downloader.download('1.8.9', './minecraft');
downloader.on('downloadFiles', (data) => console.log(data)); // Handles showing the file packages being downloaded.
downloader.on('percentDownloaded', (data) => console.log(data)); // Handles showing the percentage of each package being downloaded.

// EVENT MANAGER FOR LAUNCHING
launcher.launch(launchOptions);
launcher.on('debug', (data) => console.log(data));

adlauncher-core-reflourished

adlauncher-core-reflourished is a continuation of adlauncher-core, a library designed for developing Minecraft launchers using Node.js.

Project Overview

As the base library is currently abandoned, adlauncher-core-reflourished offers essential support by:

  • Providing new versions
  • Incorporating additional features

Credits

Special thanks to dani_adbg for the original work and inspiration.