Hello! Ive been wondering and searching for a while now how to edit the config a of a .jar forge mod with ought breaking it. Ive tried multiple ways but none seem to work. So Ive come to today to the Minecraft forums community for help. An example of what I wanna edit is the simple text thats on the mod. Like from [Sprinting Toggled] to [Running Toggled] I just wanna change it around a bit to suit me more. I hope someone can help. Note: I have both Mac and Windows operating systems.
1. extract the jar file and browse the assets folder and look for the language files. Change the required key there and it should be done (only doable if the modder used language keys and didn't hardcode the message).
2. decompile the mod (there are online sites that can do this for you), and extract the decompiled resources into a forge modding workspace. then browse the code for the part you wanna change and finally recompile it using forge's gradle script.
files.minecraftforge.net to download the forge workspace
and eclipse.org to download the eclipse IDE.
decompile the mod and download the extracted zip file.
download the latest Forge MDK and extract it to an empty directory. that'll gonna be your workspace. open a command prompt there and type
gradlew setupDecompWorkspace eclipse
then replace everything in /src/main/java with the contents of the zip file you've downloaded from the compiler, open the original mod's jar file and copy the assets folder into /src/main/resources.
Now start eclipse and point it to the eclipse folder within your workspace.
Edit whatever you need and when you're finished open another command prompt and type
gradlew build
There should now appear a new jar inside /build/libs.
! before running the build task you need to edit the build.gradle file inside your workspace to point to the right package. look for the main class in eclipse and copy it's package name into the build.gradle file.
Here are some basic tutorials on minecraft modding, they all tell you how to set up a proper workspace. (I guess you didn't install the latest JDK as you were told on the eclipse download page..)
Hello! Ive been wondering and searching for a while now how to edit the config a of a .jar forge mod with ought breaking it. Ive tried multiple ways but none seem to work. So Ive come to today to the Minecraft forums community for help. An example of what I wanna edit is the simple text thats on the mod. Like from [Sprinting Toggled] to [Running Toggled] I just wanna change it around a bit to suit me more. I hope someone can help. Note: I have both Mac and Windows operating systems.
Your friendly toast!
There are ways of doing this:
1. extract the jar file and browse the assets folder and look for the language files. Change the required key there and it should be done (only doable if the modder used language keys and didn't hardcode the message).
2. decompile the mod (there are online sites that can do this for you), and extract the decompiled resources into a forge modding workspace. then browse the code for the part you wanna change and finally recompile it using forge's gradle script.
Can you please give me some sites that I can use to edit .jar files, i'm rather new to Java and I want to make sure i'm using the right resources.
Your friendly toast!
Javadecompilers.net to extract the sources
files.minecraftforge.net to download the forge workspace
and eclipse.org to download the eclipse IDE.
decompile the mod and download the extracted zip file.
download the latest Forge MDK and extract it to an empty directory. that'll gonna be your workspace. open a command prompt there and type
then replace everything in /src/main/java with the contents of the zip file you've downloaded from the compiler, open the original mod's jar file and copy the assets folder into /src/main/resources.
Now start eclipse and point it to the eclipse folder within your workspace.
Edit whatever you need and when you're finished open another command prompt and type
There should now appear a new jar inside /build/libs.
! before running the build task you need to edit the build.gradle file inside your workspace to point to the right package. look for the main class in eclipse and copy it's package name into the build.gradle file.
Ive tried multiple versions of eclipse and they all just crash or they come up with an error...
Your friendly toast!
Here are some basic tutorials on minecraft modding, they all tell you how to set up a proper workspace. (I guess you didn't install the latest JDK as you were told on the eclipse download page..)
Ah this just wont happen...to confusing for me. I guess il just keep playing with what I have now... Thanks for the help though!
Edit: Nvm I found this amazing program that does just what I need! Thanks!
Your friendly toast!