mirror of
https://github.com/artegoser/pimi-launcher-core.git
synced 2024-11-22 20:26:22 +03:00
32 lines
761 B
Markdown
32 lines
761 B
Markdown
# 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
|
|
os: "windows", // windows, osx, linux
|
|
version: {
|
|
number: "1.12.2", // Minecraft version you want to launch
|
|
type: "MC-Launcher" // Type. Can be anything
|
|
},
|
|
memory: {
|
|
max: "5000"
|
|
}
|
|
})
|
|
```
|
|
|
|
#### What should it look like running from console?
|
|
|
|
![gif](https://pierce.is-serious.business/7d91a7.gif)
|