Whenever I try to install Forge for 1.6.4 to create a mod, it tries to download MCP, then fails, even when I already have MCP already downloaded and extracted. Does anyone how to fix this? Keep in mind, I am using Forge (specifically Forge 184.108.40.2065), and am not trying to decompile the vanilla game. I am also using Java 1.8.0_271, in case that could be the issue, as I am aware Forge 1.6.4 doesn't run with later Java 8 versions.
I read that somewhere, but I wanted to make sure there was a fix for build .965 first. Anyway, thanks!
Also, if anyone is having a "download failed hash check" issue with 1.4.7 or another version, you will need to download and install the files manually, so MCP will go into the same folder the "forge" folder is, and minecraft_server.jar will go into the jars folder.
It looks like the only place those links could be are in the obfuscated code in the gradle-wrapper.jar. I can't deobfuscate it and change them and recompile it just like that, so is there like any other way?
Also, I would use MCP unless you really need compatibility with other mods as not having to deal with an API makes it extremely easy to mod, especially if you want to change existing code, and it minimizes dependencies on 3rd parties (in particular, all you need to run the mod outside of MCP is Minecraft itself, no 3rd party libraries that may break at any time due to the owner changing/shutting down their web server. This is also part of the reason why I abandoned Forge, which I did use early on for some other mods, and Optifine, instead coding in my own optimizations/graphical enhancements (you can't even find the 1.6.4 version on their site anymore, only on an old forum thread, and many of those links are still hosted on the Optifine site).
It looks like I might have to directly mod with MCP, as nothing is working, even build .1345 for 1.6.4. However, I think you had mentioned somewhere about how to do stuff with MCP, but I can't remember where, so I hope you don't mind that I am asking questions here. (oh, and you can just direct me to other threads or somewhere else)
1. How do I add a block/item/entity, or anything else without Forge or another mod loader?
2. If I make little to no changes to base class files, will it still be compatible with Forge/Optifine?
You might be thinking of this thread, where I posted some examples of how easy it is to add new blocks with MCP (for the most basic blocks you don't need to create any new classes, just add a new entry to the "Block" class), and otherwise I learned to do most things by looking at how it was done in vanilla, and still often use vanilla code as a template when adding my own features.
As mentioned though, this will almost certainly make it incompatible with Forge, though it is possible to indirectly add new blocks by adding variants to an existing vanilla block (Forge is most likely to modify the core classes like the Block and Item classes but not subclasses); likewise, people have used my cave generation mods with Forge as nothing seems to use the original vanilla classes, but more extensive changes to world generation are harder to implement. Optifine should be fine as long as you don't change anything related to rendering (early on in the development of TMCWv5 I had some rather hacky work-arounds to ensure compatibility; one thing I did was use the render type for ladders, which only renders anything if a valid data value is used, and used the "getMixedBrightnessForBlock" method to get access to the world data and block coordinates. In another case, I added fields and methods that were added by Optifine (which I'd decompiled) to ensure compatibility, albeit they were only to avoid no such method/field errors and the particular feature that used them no longer worked).
Hey, just a question, how do I decompile MCP? For some bizarre reason, it doesn't decompile the code correctly and doesn't decompile net.minecraft.launchwrapper and everything in it and the game fails to launch. I feel like I am doing something wrong here.
I have no idea what "net.minecraft.launchwrapper" is; it isn't part of the game itself but I assume something in the launcher itself and isn't in my MCP setup, just what would be in the Minecraft jar with the same layout ("net.minecraft.src" is equivalent to the root of the jar while the "server" and "client" folders are the same as the ones in the jar). That said, I've actually been using the same MCP installation for the past 7 years, using a backup of the original decompiled sources instead of starting from scratch when I want a clean slate, so it may have changed since then; however, the link to MCP811 given in the Wiki says it was uploaded on 9/20/2013 so it is probably be the same one that I'm using, which appears to have been set up on 12/17/2013 (I originally downloaded it from MCP's old site, when it was an actual web site and not just a basic page with a few links, but the files may have been hosted on MediaFire then).
As far as setting things up goes, I remember simply copying "minecraft_server.1.6.4.jar" into the jars folder and running the "decompile.bat" file, as instructed in "mcp\docs\readme-mcp.txt" and it automatically did everything by itself (the server jar probably isn't actually needed unless you are making a dedicated server-only mod and I deleted it and the sources for it later on; most "client-side" server mods can also be used on a dedicated server as they use nearly the same code), although I suppose there could be issues due to changes to the launcher/.minecraft folder/json files since then (the last time I actually ran it was when I decompiled Optifine in 2018, although I just made of copy of the MCP folder and ran "cleanup.bat" and replaced the jar in "mcp\jars\versions" with one with Optifine installed manually instead of starting from scratch; there were several recompile errors but that were caused by the installer files being included).
One thing I do notice is that the versions folder in MCP includes a "natives" folder, which includes files which are normally only extracted by the launcher when the game is running (they are deleted when the game is closed) and "1.6.4.json", the latter of which has changed significantly since 2013 (this file includes all the libraries the game needs to run, and I presume this is how MCP knows which ones it needs). Here is the json file, dated 12/17/2013 and presumably unchanged since 1.6.4 was released on 9/19/2013 (the current file is 3 times the size despite not having any whitespace):
If there are issues with finding the correct files you could try replacing the current json file in ".minecraft\versions\1.6.4" with this one (do not try running the game/launcher and restore the original when done).