I am currently developing a minecraft mod Manager in c#. I have access to folder with sub-folders corresponding to the different versions I have installed. Inside these folders are the mods in .jar files.
To this point, I have set up custom naming conventions on the files in order to display the mod name. I have discovered, however, that in each .jar file there is a file with the name mcmod.info containing the name and description of the mod. How can I access that file in the .jar? Best case scenario would be not to extract the .jar first and read the file's contents directly from the .jar. Here is an example of what a mcmod.info looks like:
If you use Total Commander, then select the JAR file in there with press Ctrl + PageDown. Then the Total Commander will open it for you and you can check, modify the the things in the JAR, if you want.
Using the JDK, jar -tf will list the files in the jar. javap will give you more details. To access source code, you would use a decompiler such as JAD shareit apk
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am currently developing a minecraft mod Manager in c#. I have access to folder with sub-folders corresponding to the different versions I have installed. Inside these folders are the mods in .jar files.
To this point, I have set up custom naming conventions on the files in order to display the mod name. I have discovered, however, that in each .jar file there is a file with the name mcmod.info containing the name and description of the mod. How can I access that file in the .jar? Best case scenario would be not to extract the .jar first and read the file's contents directly from the .jar. Here is an example of what a mcmod.info looks like:
A detailed answer would very much be appreciated!
https://www.kodi.link/
You can extract jars with a program like WinRAR.
A jar file is basically a zipfile, so WinZip, Zip, 7-Zip and other programs will also do it.
Modpack creator, blogger, writer ...
My Gaming archives: http://virtes.com/games/mc/
If you use Total Commander, then select the JAR file in there with press Ctrl + PageDown. Then the Total Commander will open it for you and you can check, modify the the things in the JAR, if you want.
Using the JDK, jar -tf will list the files in the jar. javap will give you more details. To access source code, you would use a decompiler such as JAD shareit apk