Wiki page on how to use install and use the CLI
Hello, I am quite unsure of how this module is meant to be used. I am running on python 3.9.2 on Windows 10. Firstly, I am unsure of how to import the module. import minecraft-mod-manager does not work, which is somewhat expected, but import minecraft_mod_manager does. There is no indication that I could find that this is how to import it, if it even is the way to import it, if it even is meant to be imported. Then, if I try to use one of the example code things, minecraft-mod-manager install mod_name, rather than tell me that there is no mod called mod_name or something, it instead throws a SyntaxError exception. I also tried the example mmm update with the same result. I really can not at all understand how this is meant to be used, and how the commands are meant to work. Perhaps an example file/multi-line code block thing that shows the process for installing a mod called mod_name would clarify this process? It is entirely possible (and likely) that I'm just being a derp and missing an obvious thing here, and if I am, I apologise, but an example code would clarify the process IMO.
Hi Vedvod,
The mod is meant to be used as a command (running from cmd.exe). However, in Windows (and other OSes) you need to add a PATH variable to your current python installation, to be able to run it from anywhere.
Windows
- Search and open environment variables
- Open
- Select user variable Path and edit it
- Add the
Python39\Sciptspath. You can see where mine is located in Windows. You probably only have to replace the usernamesenthwith your username since you're also using Python 3.9.
- Press okay to save the variables.
- Open up a new cmd.exe (you have to open up a new one)
- Try running
minecraft-mod-manager --help(mmmormcmanshort command hasn't been released yet). Highlighted in yellow.
Hope this helps :)
The plan in the future is to make it more accessible, hopefully before Minecraft 1.18