From 4b65cfaf90c41a78ebeb0843466b84a2276900d3 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Sun, 28 Mar 2021 01:35:26 +0000 Subject: [PATCH] Update 'README.md' --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7736234..a4caae8 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,21 @@ Just start Minecraft. **Does not download assets.** > **Windows:** https://www.python.org/downloads/ (use 3.8.x on Win7, 3.4.4 on WinXP) # Simple usage: +- Extract the py and ini to .minecraft - Edit `offline-minecraft-launcher.ini` to your liking - Start `offline-minecraft-launcher.py` - Enter data - Profit -# Commandline: -You can automatize entering the data by using commandline arguments. Each argument works like this: key=value - These act like the settings in the ini, and will replace corresponding settings in the ini. +# .ini Configuration: - **name:** Your player name - **version:** The ID of the version you wanna start (Example: b1.8.1) - **console:** Whether to show console output (1/0) - **osName:** Override your OS in case it isn't detected (windows/linux/macos) - **jvmArguments:** The arguments to use to launch your JVM, json formatted - You may need to escape " -- **java:** The path to the java executable. Try not to append a file ending, as `w` will be added, if console is 0 \ No newline at end of file +- **java:** The path to the java executable. Try not to append a file ending, as `w` will be added, if console is 0 + +The script will parse variables within settings values, the variables are sourced from the script itself. `$+var$` for global variables, `$var$` for local variables. `$+sp$` gives you the script's path, for example. + +# Commandline: +You can automatize entering the data or change settings by using commandline arguments. Each argument works like this: key=value - These act like the settings in the ini, and will replace corresponding settings in the ini. However, settings you set via this method will not have the aforementioned variable support enabled, use console variables instead. \ No newline at end of file