This fabric mod connects the minepkg CLI to Minecraft.
It currently enables minepkg to skip the main menu and immediately join a server or start a single player session.
To build and test this mod, use the following workflow:
- Build the mod and launch Minecraft using:
minepkg launch --minepkgCompanion none. Optionally, specify a Minecraft version by adding-m <minecraft-version>to the command. - Create a world; call it, for example,
test_world. - Set the environment variable:
export MINEPKG_COMPANION_PLAY=local://test_world - Launch Minecraft again. The mod should now load the world on startup.
To test joining a server locally:
- Start a server using:
minepkg launch --minepkgCompanion none --server -a - In a separate terminal, set the environment variable:
export MINEPKG_COMPANION_PLAY=server://localhost - Join the server with the client using:
minepkg launch --minepkgCompanion none(note: both sessions need to run the same Minecraft version)
- Try building with
./gradlew clean build - See if there are newer compatible versions of dependencies (Fabric Loom, Fabric Loader, Gradle)
- Make sure you have the correct java version. (
java --version) - Ask for help on the minepkg Discord server
This mod is MIT licenced.