So as you can assume, I'm trying to mod Minecraft. I notice to edit scripts, I will have to open .class files. How do I go about opening it? what programs do I need? Please help if you can.
OK, so I'm using JD-GUI to open the .class files now. I looked at what a few mods did, and I think I kinda understand what to do to mod items. My question is, which file is for crafting? And is there a list of what each file does? Because all the files are named like a.class, aa.class, ab.class, ect. So yeh, I'm under Appdata --> .minecraft --> bin --> minecraft.jar at the moment.
You don't edit the .class files. They are compiled program files and editing them wouldn't make much sense...
You decompile the game first with a decompiler, like MCP (Minecraft Coder Pack). Then you edit the decompiled .java files.
You don't edit the .class files. They are compiled program files and editing them wouldn't make much sense...
You decompile the game first with a decompiler, like MCP (Minecraft Coder Pack). Then you edit the decompiled .java files.
i'm looking for the .class file in the jar because when i got forge installed i can no longer craft or even use the crafting table without the game shutting down with an error if i knew what file it was i could replace it with a default file
i'm looking for the .class file in the jar because when i got forge installed i can no longer craft or even use the crafting table without the game shutting down with an error if i knew what file it was i could replace it with a default file
You can't just open the classes up and edit them, JD-GUI or other GUI-based decompilers won't even allow you to edit the code because all you're doing is looking at the decompilers view of the bytecode stored in the class files, the classes have not actually be decompiled and saved on your disk until you save them, but I still would not recommend doing so.
What Forge version are you running? Is it installed correctly? Are you running other mods? If so what mods and what versions? I don't think it's Forge causing the crash, I think it's another mod.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
i'm using minecraft 1.2.3 i downloaded forge exactly like they told me to on their site & i turned off all other mods & it still happens i have a back-up clean jar that's why i asked what the crafting .class file is so i can replace it in the minecraft.jar with forge installed
i'm using minecraft 1.2.3 i downloaded forge exactly like they told me to on their site & i turned off all other mods & it still happens i have a back-up clean jar that's why i asked what the crafting .class file is so i can replace it in the minecraft.jar with forge installed
1.2.3? Was there even a 1.2.3 released?
And as I said, you cannot do that. Doing that will break more than what you're trying to fix because Forge changes stuff in the crafting system so mods can add custom crafting recipes and logic. You cannot just replace one class with another class, it does not work like that.
Start afresh, if you're actually trying to use a version before 1.3, you need ModLoader as well. Grab a fresh jar file, if you're using the official launcher you will need to set it all up so it does not replace the jar file (create a new custom version, there are tutorials around on how to do this), open the jar file up with WinRAR or whatever archiver you want to use, drop ModLoader into the jar file, then Forge (make absolute sure you downloaded Forge from a trustworthy and legit place, the Forge fileserver can be found at files.minecraftforge.net). Create a new profile in the launcher, and set it to use your custom version instead.
Rollback Post to RevisionRollBack
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
So as you can assume, I'm trying to mod Minecraft. I notice to edit scripts, I will have to open .class files. How do I go about opening it? what programs do I need? Please help if you can.OK, so I'm using JD-GUI to open the .class files now. I looked at what a few mods did, and I think I kinda understand what to do to mod items. My question is, which file is for crafting? And is there a list of what each file does? Because all the files are named like a.class, aa.class, ab.class, ect. So yeh, I'm under Appdata --> .minecraft --> bin --> minecraft.jar at the moment.
You decompile the game first with a decompiler, like MCP (Minecraft Coder Pack). Then you edit the decompiled .java files.
Thanks!
You can't just open the classes up and edit them, JD-GUI or other GUI-based decompilers won't even allow you to edit the code because all you're doing is looking at the decompilers view of the bytecode stored in the class files, the classes have not actually be decompiled and saved on your disk until you save them, but I still would not recommend doing so.
What Forge version are you running? Is it installed correctly? Are you running other mods? If so what mods and what versions? I don't think it's Forge causing the crash, I think it's another mod.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!
1.2.3? Was there even a 1.2.3 released?
And as I said, you cannot do that. Doing that will break more than what you're trying to fix because Forge changes stuff in the crafting system so mods can add custom crafting recipes and logic. You cannot just replace one class with another class, it does not work like that.
Start afresh, if you're actually trying to use a version before 1.3, you need ModLoader as well. Grab a fresh jar file, if you're using the official launcher you will need to set it all up so it does not replace the jar file (create a new custom version, there are tutorials around on how to do this), open the jar file up with WinRAR or whatever archiver you want to use, drop ModLoader into the jar file, then Forge (make absolute sure you downloaded Forge from a trustworthy and legit place, the Forge fileserver can be found at files.minecraftforge.net). Create a new profile in the launcher, and set it to use your custom version instead.
Author of the Clarity, Serenity, Sapphire & Halcyon shader packs for Minecraft: Java Edition.
My Github page.
The entire Minecraft shader development community now has its own Discord server! Feel free to join and chat with all the developers!