Comments (11)
You can! If you use the full library (either from pip install or if you can bundle files from the portablemc
directory in the repository). Then you can use
import portablemc.cli
portablemc.cli.main(["argument0", ...])
from portablemc.
@mindstorm38 can u give me the full example ? For example like: start farbic:1.17.1 jvm-args ...?
The arg is the same as the one using in console ?
I tried: portablemc.cli.main(["start farbic:1.17.1"])
ain't working
from portablemc.
Arguments are the same but you must separate arguments in the list, in your example this will be
portablemc.cli.main(["start", "fabric:1.17.1"])
from portablemc.
Thanks, But I can't make the import work. I installed it using pip but still get an error.
from portablemc.
Hmmm what is the error?
from portablemc.
Sorry for the late reply(Had school). Here is what the error is. Seem like it can't find the fabric addons.
from portablemc.
Try to run portablemc.cli.main(["addon", "list"])
(you probably miss fabric addon).
If you run portablemc.cli.main(["addon", "dirs"])
you can see directories, where portablemc search for addons.
from portablemc.
C:\Users\Administrator\AppData\Local\portablemc\addons (not existing)
Why it in AppData/Local ?
Anyway is there a way I can change the dirs to custom dir?
from portablemc.
Hi! Sry for the delay, add-ons can be currently placed in directories given by addon dirs
sub command. It's not currently possible to change the add-on directories (excellent idea btw!), for now you can use a directory called addons
next to you executable.
from portablemc.
I can add an environment variable like PMC_ADDONS_DIRS
to allow users to add optional add-ons directories as you wish.
from portablemc.
I close this issue, the PMC_ADDONS_PATH
environment variable was added (in 2.0.4) and can solve you issue!
from portablemc.
Related Issues (20)
- Error with portablemc-forge HOT 1
- Update main illustration
- Issue authenticating HOT 15
- API Question HOT 3
- Starting Minecraft older than 1.19 crashes on Apple Silicon HOT 21
- Error: Could not find or load main class net.minecraft.client.main.Main HOT 9
- Question about API authentication HOT 10
- How do you run the game offline? HOT 2
- Obtain the progress of the download. HOT 2
- Arch Linux package incoherencies HOT 9
- Minecraft: Forge - Failed to initialize graphics window with current settings. HOT 5
- Errors remain when attempting offline usage HOT 14
- Neoforged repo for ForgeVersion HOT 8
- LWJGL 3.3.3 and onward HOT 2
- Invalid session HOT 2
- Installing fabric and mods on it HOT 9
- LWJGL not found in classpath for early versions HOT 7
- Installing mods with events HOT 1
- Possible to add info to README re: another method of contributing...? HOT 4
- Trouble launching Windows Minecraft from WSL HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portablemc.