theoparis / nucraft

https://github.com/theoparis/denocraft

Home Page:https://github.com/theoparis/denocraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nucraft

Nushell x Minecraft

Introduction

This project is a collection of nushell scripts. In this project you can find a simple minecraft launcher, and a jar patcher. The jar patching script allows one to patch the java class files within minecraft. Then you can bundle everything together in a final jar file that can be ran using the launcher script. If you want to you can also specify extra libraries to include in the final jar by entering them as maven dependencies in the build.toml file.

Usage

Fetching Minecraft

./src/build.nu

Bundling the Final Jar

use src/patcher.nu [ bundle_jar ]
bundle_jar --output work/client-bundled.jar work/classes

Launching Minecraft

First, you need to define the MINECRAFT_USERNAME and MINECRAFT_PASSWORD variables inside your nushell env file. You can find this file in ~/.config/nushell/env.nu on Linux.

let-env MINECRAFT_USERNAME = "myaccount@gmail.com"
let-env MINECRAFT_PASSWORD = "12345678"

Now you can launch the game!

./src/launcher.nu --mcjar work/client-bundled.jar --mainclass net.minecraft.client.main.Main

About

https://github.com/theoparis/denocraft

https://github.com/theoparis/denocraft

License:MIT License


Languages

Language:Nu 100.0%