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.
Edit:
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...
WTH Mojang?
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.
Edit2:
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.
Edit:
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.
Same modification rules from this post above still apply, unfortunately.
(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.
It seems as though there is a possibility that both versions of the .json file associated with the game version / mod you are using may, in fact, contain the lines required to be deleted.
It is best to check both versions.
For the OptiFine .json, there will be far fewer lines of code, and only one instance of the lines that need to be deleted.
For the root .json, there may be several iterations with minor differences; find the very last iteration (search from the end of the file) and delete that one.
.
Rollback Post to RevisionRollBack
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
I've bit the bullet and made a patcher. Should have really made it in java, but it's not my platform of choice and I wanted to play around with different nugets.
Any way you could reupload it somewhere permanent? That link 404s for me. :/
Edit: I think I downloaded it? From the downloads link on your bitbucket, but I have no idea how to run it as it's a .zip file and everything inside doesn't look executable.
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!
I followed the instructions in the OP. Seems to work. Download for 1.12
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.
Any chance someone could compile this into a 1.12.2 forge mod? couldn't get the different .class file to work with forge and I know nothing about mod making.
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?
Hey guys. Just wanted to stop by to say that I am immensely thankful this mod is still actively being updated. You guys are incredible.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
https://mega.nz/#!sJMinYJa!T7lCVKD9dOW9ljspMD-QyEwGoJyXPsQGV8o3nFARQCA
1.9 version
keep in mind you must change from Use Latest Version to "Minecraft 1.9" in your launcher profile and delete META-INF or it will redownload the jar.
edit: wow where did my mcf account and username go? I've been a member since beta wtf
edit 2: 1.8.9 version https://mega.nz/#!VZFDSapZ!123QT-kaYHwMa7KEvmfS3dobF0r3x7zBS7x2xosuzeU
note: if using with any technicpack launcher based pack, you must edit mod_files/modpack.jar/version.json to add
on the line after "mainclass", because their launcher is crap and ignores jvm arguments
@CaptainReaper
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
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.From the wiki:
Installation for the 1.6+ launcher[edit | edit source]
Edit: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...WTH Mojang?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.Edit2:
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/")
.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
I think this is a sign from Mahjong that I should finally pony up and make a patcher.
Addition to installation instructions: delete the section "downloads" from the root of version JSON. It looks like this:
-Dfml.ignorePatchDiscrepancies=true -Dfml.ignoreInvalidMinecraftCertificates=true
run any jarmods
Thank you; it now works.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
any plans for this to work on 1.9.2+, or does it already work?
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
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.Edit:
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.
Same modification rules from this post above still apply, unfortunately.
(Note for OptiFine users: if you wish to use this with OptiFine, you must delete 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.
Visual representation:
)
The reason why anyone on 1.9.4 is here:
Download link for 1.9.4
.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
.
Followup to the previous comment ^
.
It seems as though there is a possibility that both versions of the .json file associated with the game version / mod you are using may, in fact, contain the lines required to be deleted.
It is best to check both versions.
For the OptiFine .json, there will be far fewer lines of code, and only one instance of the lines that need to be deleted.
For the root .json, there may be several iterations with minor differences; find the very last iteration (search from the end of the file) and delete that one.
.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
Download for 1.10.2
I've bit the bullet and made a patcher. Should have really made it in java, but it's not my platform of choice and I wanted to play around with different nugets.
Here is the first dirty version that worked for me: https://dl.dropboxusercontent.com/u/12898517/ClickfixPatcher.zip
Instructions:
1. Drop into .minecraft\versions\$$versionid$$ (e.g. .minecraft\versions\16w36a)
2. Run.
3. Patcher should create new version 'release $$versionid$$_clickfix' with autorepair disabled and necessary .class patched
e.g. .minecraft\versions\16w36a_clickfix, visible as version 'release 16w36a_clickfix' in the launcher
4. Select the newly created clickfix version in launcher
source: https://bitbucket.org/jetsparrow/clickfixpatcher/src/bf671b753c441ab037f6ab1c18c3576726f5b77a/ClickfixPatcher/?at=master
If you want to redo it in java - do it, the logic is pretty simple, and it will be a lot more convenient for everyone.
-Dfml.ignorePatchDiscrepancies=true -Dfml.ignoreInvalidMinecraftCertificates=true
run any jarmods
Download for 1.11
Also, the method was found in third b function
Any way you could reupload it somewhere permanent? That link 404s for me. :/
Edit: I think I downloaded it? From the downloads link on your bitbucket, but I have no idea how to run it as it's a .zip file and everything inside doesn't look executable.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
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.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
I followed the instructions in the OP. Seems to work. Download for 1.12
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.
Check out my thread suggesting new possibilities for pressure plates, buttons, and switches!
1.12.1 & 1.12.2 - Download
This time around it was bsa.class, works for both versions.
Personally I use MultiMC and add the above file (zip file) as jarmod.... no fuss, no hassle.
Any chance someone could compile this into a 1.12.2 forge mod? couldn't get the different .class file to work with forge and I know nothing about mod making.
circuitsword, you have to use two launch parameters to use Forge with a modified jar.