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
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.