2018-10-30 01:13:58 +03:00
|
|
|
# Minecraft Launcher Core
|
|
|
|
### Currently only supports MC 1.7.3 and up.
|
|
|
|
|
|
|
|
A script that launches Minecraft using NodeJS.
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
const launch = require('./pathtomodule').core;
|
|
|
|
|
|
|
|
launch({
|
|
|
|
login: {
|
|
|
|
username: "", // required
|
|
|
|
password: "", // optional
|
|
|
|
offline: false // optional
|
|
|
|
},
|
|
|
|
// All of the following is required
|
|
|
|
root: "directory", // C:/Users/user/AppData/Roaming/.mc
|
2018-10-30 01:32:19 +03:00
|
|
|
os: "windows", // windows, osx, linux
|
2018-10-30 01:13:58 +03:00
|
|
|
version: {
|
|
|
|
number: "1.12.2", // Minecraft version you want to launch
|
|
|
|
type: "MC-Launcher" // Type. Can be anything
|
|
|
|
},
|
|
|
|
memory: {
|
|
|
|
max: "5000"
|
|
|
|
}
|
|
|
|
})
|
2018-10-30 01:32:19 +03:00
|
|
|
```
|