Hey, thanks for keeping this mod updated. I can't stand playing without it.
I'm having trouble using it with Forge 1448. Previously I would create a new folder in Versions per the readme instructions and patch the Forge jar. However, it seems Forge doesn't install a jar there anymore. I tried patching the vanilla 1.7.10 jar, but that didn't work. Any ideas?
java bytecode editor, change iconst_5 in the appropriate methods in the appropriate class to iconst_0, find the correct class/methods with jd-gui
it's loads easier if you're familiar with what you're looking for, though
the class is also generally in the mid b##.class range, and around 6.5-10 kb (6500-9800, it's growing since 1.6.x)
dunno what to tell you for 1.9 reverting your jar: delete profile, make new profile, edit profile Use Version: release 1.9, nothing else checked, open game dir, /versions/1.9/, open 1.9.jar in 7zip, delete META-INF, drag bkt.class or whatever it is into and overwrite, close 7zip, run minecraft, ???, profit or bust
I did everything you guided me to do, and it still keeps redownloading and replacing the .jar. I give up. Thanks for the help anyways, it's not your fault that I couldn't get it to work, I have no idea why it keeps replacing the file...
Kochu's instructions are actually incorrect (@Kochu you may want to edit your instructions on the first page to reflect this method of installing mods for vanilla MC). Unlike how it used to be, you can't use the simple method of drag-and-drop-and-good-to-go. You have to create a custom version to be used in the launcher. Don't worry, it's pretty simple.
Open the 1.6+ launcher and make sure the version of Minecraft the mod requires is already installed.
Click "Edit Profile" in the launcher, then open the game directory.
Go into the subfolder "versions".
Rename the folder for the version you require to something else. In this example, rename "1.8.3" to "1.8.3_Modded".
Open the 1.8.3_Modded folder.
Rename "1.8.3.jar" to "1.8.3_Modded.jar".
Rename "1.8.3.json" to "1.8.3_Modded.json".
Open "1.8.3_Modded.json" with a text editor and replace "id":"1.8.3" with "id":"1.8.3_Modded", save the file and close it.
Open the jar file so you can see all the files in it. You can do this by changing the .jar to .zip and unzipping it. You only need the new jar folder and the json so delete everything else on that directory. No need for WinRAR or 7-Zip. Copy-paste the mod files into the "1.8.3_Modded" new jar folder.\
File extensions may be hidden by default, so you may need to tell your File Explorer to not hide them. In Windows 10, simply click View near the top and locate and check the box that says "File Name Extensions". In older versions of windows you will need to go to Organize to locate the box.
Delete META-INF (If needed) . (Be sure to double check whether or not the META-INF file needs to be deleted. Some mods may not run without it. If it doesn't and you save, you can always go back and delete it.)
Start the 1.6+ launcher.
Click "Edit Profile"
In "Use Version", select "1.8.3_Modded".
Click Save Profile.
Login and play as normal.
Apparently this doesn't work either, as when I click Play my client says "downloading 1.9 click.jar" (what I named my modded game version) and it replaces my modded .jar with the unmodded .jar but with the same name...
So, I have no idea how to get this to install anymore. I could with 1.8.8, but now with 1.9 it's almost as if it won't accept the modded .jar.
Keeping the above text for quick reference for installation, but adding Kochu's following instructions:
This text is near the end of the .json file. There are many similar iterations of the above code (read: over 30), so be sure you find the correct lines. To save you time, just go to the very end of the text, use the find feature in reverse order (if possible), and it should be the first result.
Keep in mind that the .json file will appear as a jumbled cluster of code if you use Notepad (Windows users) to edit it. I copied the code over to Microsoft Word (which organizes it paragraphically) then copied it back, and now my .json file is tidy and neat, even when open in Notepad.
Take note: the above code is being used as an example; the client version may differ (for me, on 1.9 stable, I have "/game/1.9/" as opposed to "/game/1.9.1-pre3/")
So I took it upon myself to try my hand at getting this updated to work for 1.9.4. I used the PowerShell script in the OP to find the correct class file (bkr.class, for 1.9.4), and followed the instructions as accurately as I could. In the appropriate variable declaration, I found two iterations of "iconst_5". Oddly enough, changing the latter of the two declarations (which appears to be the most accurate to the screenshots/instructions) to 0 did not alter the delay at all. However, changing the former of the two did change the delay, but... it only changed the delay after the first block is mined each time. There is still the delay between the first and second blocks mined, but after that, it's super speedy.
The latter "iconst" does not seem to affect the delay at all (changing both to 0 did not make any difference than changing just the former).
I wish I knew more about this, or that the other members of the thread who've been contributing would return and offer some advice, because it still isn't what it should be. I can't figure it out. This thread needs to stay alive because it's the only one that is even remotely close to up-to-date for this mod.
Huh. Maybe I'm imagining it, but it looks like the two different iterations of "iconst" differentiate between the delays for mining while in creative mode (the former) and survival mode (the latter). Interesting.
I changed both of the "iconst" declarations to 0 so that the effect remains applied whether in survival or creative mode. I think there is still the delay after the first mined block when in creative mode, but I don't know how to get around that. This is the best I can do.
(Note for OptiFine users: if you wish to use this with OptiFine, you mustdelete META-INF from the OptiFine .jar file used with 1.9.4 [or whatever version you are running] or your game will crash after clicking "Play". Additionally, in the ".json" file associated with OptiFine, there will not be a "downloads" section as stated above. The "downloads" section is only in the root ".json" file -- meaning the one that is paired with the vanilla ".jar" of your game version [in this case, in the original 1.9.4 folder]. Kochu did say that it was the "root .json" file, but I felt that needs clarification and emphasis, because it's easy to gloss over.
While that does mean it may be easy to miss, that also means that, unless you redownload 1.9.4, you will only need to remove the "downloads" section from the root ".json" file only once; the OptiFine ".json" file inherits everything from the root ".json" file.
I have been trying to get this to work on 1.11.2, but I am not succeeding.
The class file is bnp.class, the method is the 3rd b function, found two "iconst_5" iterations changed to "iconst_0". That's all fine. But I have tried changing the 1.11.2.json file to remove the downloads section as in my previous posts, but the game redownloads the version every time without fail, removing the modified bnp.class and restoring META-INF and reverting the deleted section in 1.11.2.json. I don't know where I'm going wrong. :/
I feel like that's all that's stopping it from working. I believe the proper method is being changed in the class file, but the game keeps reverting the file.
Rollback Post to RevisionRollBack
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
May I ask what process you did to mod the game files?
I'm attempting to use this with OptiFine... After installing OptiFine, I open the .jar, transfer the class file, and delete META-INF. I don't mess with the .json, as OptiFine works without needing anything extra. I cannot seem to get this to work with it, though. I'll try using it with vanilla 1.12 and will report back.