- Saved searches
- Use saved searches to filter your results more quickly
- License
- JakobDev/minecraft-launcher-lib
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- License
- shasankp000/PyCraft
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Official Mirror of the Codeberg Repo
License
JakobDev/minecraft-launcher-lib
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
A Python library for creating a custom minecraft launcher. This library containts functions to install and execute minecraft and interacting with mojang accounts.
import minecraft_launcher_lib import subprocess import sys # Set the data for your Azure Application here. For more information look at the documentation. CLIENT_ID = "YOUR CLIENT ID" REDIRECT_URL = "YOUR REDIRECT URL" # Get latest version latest_version = minecraft_launcher_lib.utils.get_latest_version()["release"] # Get Minecraft directory minecraft_directory = minecraft_launcher_lib.utils.get_minecraft_directory() # Make sure, the latest version of Minecraft is installed minecraft_launcher_lib.install.install_minecraft_version(latest_version, minecraft_directory) # Login login_url, state, code_verifier = minecraft_launcher_lib.microsoft_account.get_secure_login_data(CLIENT_ID, REDIRECT_URL) print(f"Please open login_url> in your browser and copy the url you are redirected into the prompt below.") code_url = input() # Get the code from the url try: auth_code = minecraft_launcher_lib.microsoft_account.parse_auth_code_url(code_url, state) except AssertionError: print("States do not match!") sys.exit(1) except KeyError: print("Url not valid") sys.exit(1) # Get the login data login_data = minecraft_launcher_lib.microsoft_account.complete_login(CLIENT_ID, None, REDIRECT_URL, auth_code, code_verifier) # Get Minecraft command options = < "username": login_data["name"], "uuid": login_data["id"], "token": login_data["access_token"] > minecraft_command = minecraft_launcher_lib.command.get_minecraft_command(latest_version, minecraft_directory, options) # Start Minecraft subprocess.call(minecraft_command)
- Easy installing
- Get command to run Minecraft
- Login to Microsoft account
- Supports Forge, Fabric, Quilt and Liteloader
- Old versions like alpha or beta supported
- All functions have type annotations and docstrings
- Only depents on requests
- Supports PyPy
- Full Documention with tutorial online available
- Supports reading and writing profiles of the Vanilla Launcher
- Install of mrpack modpacks
- All public APIs are static typed
- Examples available
- OpenSource
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
A Minecraft launcher made in python.
License
shasankp000/PyCraft
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Contributors to this project will really be appreciated.
Update: 30/10/22. This launcher is being rewritten in rust at the moment, will make up for all that this launcher lacks.
However this launcher will still have support if anyone wants to keep using it.
A Minecraft launcher made in python.
This Launcher aims to be the best free minecraft launcher for Linux primarily. Porting to other platforms will be done later.
This launcher is not illegal as all files are downloaded from libraries.minecraft.net.
Piracy concerned rich people feel free to press the back button on the browser 🙂
To use the latest version, it’s best to clone the project and then run it, since I fail to keep the releases updated in the release section in tandem with the main code folders in the .git
Added a modinstaller where users will have to enter the modname(in lowercase), modloader(in lowercase) and gameversion
This modinstaller only downloads «stable» version of the mods from modrinth. If the stable version doesn’t exist then the mod won’t be downloaded( non stable versions can be added manually in the mods folder)
Yes, minecraft 1.19 and all subsequent updates are supported.
Fixed issue of being unable to play downloaded versions offline without internet.
Fixed all bugs on Windows.
Rewritten the ram allocation alogrithm, jvm no longer assigns ram by rounding off to the nearest GB. What you select on the slider is what you get.
Fixed issue of cracked login in Fabric. Players using cracked mode will now have a permanent UUID generated by the launcher.
Changed GUI totally.
Ely_by login mode is now optional if customskinloader is used.
GUI changes(Merged all 3 files into one main launcher).
Added a new download mode named (fps clients). This mode will detect custom clients by placing them in the versions folder. I have chosen Ares client as the candidate for now. This is not fully implemented yet so work in progress
Fps boost is still(sadly) in beta testing mode.
Fixed the download window.
There is a font folder now containing all fonts the launcher uses. There is no copyright on these fonts, and can be used anywhere. Users are needed to install these fonts or else the launcher will not look as it is intended to look.
Added a «Bypass Ram limiter» option which will override Pycraft’s defualt settings to allocate only upto 50% of system ram to minecraft. With this option enabled people can set ram more than 50% of the total ram, if needed.
Deal with the GUI once and for all
Add a new news page on the launcher
Add a modinstaller
Make a few fps boosting modpacks(tested on my pc gives around 1200 fps without shaders)
Rename cracked mode to something better
Installation script changes
Added installation support for java 17 (windows and debian based linux). The launcher only supports this variant of java 17 now.
Added python installation support (windows and debian based linux. Use this only if you don’t
have python installed by defualt).
Passwords are no longer stored in the launcher. Only player uuid, accessToken from auth servers
and clientToken is randomly generated on each run, for ely_by logins.
Players using cracked mode will now have a permanent UUID generated by the launcher on first run in cracked mode
This launcher is based on the Tkinter and minecraft_launcher_lib. It offers mojang login and cracked login.
Includes a special FPS boost option(old releases).
Includes an in-built toggleable vpn, running through torsocks(Linux) (old releases)
Fps boost has been shifted to beta testing mode. That is , it has been tested with java 16.It is still being tested. Feedback would be most graciously appreciated.
Run python install.py or python3 install.py(if on linux)
Then run python pycraft_gui.py or python3 pycraft_gui.py
Before starting minecraft, do increase or decrease the ram in the settings, so as to update it in the settings file. Or else an error will pop concerning the JVM.
I will patch this in future releases.
After stopping a download, please press CTRL+C twice. (This will close the launcher as well.) For people who have worked with python, it’s an issue where i am unable to close the download thread directly at once by raising the KeyboardInterrupt exception.
If download fails, you may need to use a vpn(windows) or enable tor in settings(linux)
Any changes in the settings (be it tor, fps boost, ram change, directory change) will require a launcher reboot(not to be confused with system reboot), to take effect.
Pycraft has 3 accounts mode. The mojang account mode(microsoft accounts support coming soon),
cracked mode and ely_by login system. For the majority of the people who don’t know what that is, it is an alternative minecraft service used by Tlauncher as well, only that their security is better. For this mode, you need to create an account at https://ely.by (2 factor authentication not yet supported), and then enter your username and password and start. Supported for all modes, vanilla, forge and fabric.
Ely_by skins are not viewable on all servers, only in singleplayer mode and those servers which
use it’s services. However to view your skin on all servers you can use a client side mod, https://www.curseforge.com/minecraft/mc-mods/customskinloader/ , usage instructions are given on the page. Officially supported till 1.16.5 but there are release versions for the mod for 1.17 in the files section. Just run this mod one time, close minecraft, go to .minecraft/CustomSkinLoader/CustomSkinLoader.json, open it with any text editor
from the webiste : «- Q: How can I modify configurations of CustomSkinLoader?
A: The config file is .minecraft/CustomSkinLoader/CustomSkinLoader.json . Unfortunately, there is no way to modify the CustomSkinLoader configuration file in
the game currently, so you need to manually modify it by using a code editor (e.g. VSCode). However, we have a website to modify the configuration file online, you only need to import and modify your current configuration file.»
This mod supports: LittleSkin, BlessingSkin, Elyby, SkinMe, GlitchlessGames skins. Since ely_by is the most popular choice, you can go ahead with this mod.
And yea this mod has no impact on physical resources, like ram and cpu(I used it a lot of times).
Sometimes mojang’s server, libraries.minecraft.net is not available on some systems (especially for those living in Egypt). To fix this a vpn is used. Now the governement of Egypt has kinda cracked down on openvpn (thanks to one of my testers, i wouldn’t have known about it otherwise.), so Tor is the best solution to that.
FunMc (my minecraft server’s website).
New microsoft account login system as per the latest changes according to mojang in Minecraft: Java Edition
Below is a video stating how to use PyCraft Launcher(rip my trash pc — i am still working on the fps boost)