I have very little knowledge about java. I want to modify the old version of minecraft a1.2.6 in such a way that, when selecting a certain block, the trolley accelerates 2 times when it drives up the rails to this block. I do not know where to look for it, and what exactly to change. Help please!!!!
You should probably start by learning Java first, because as with talking in a language, you cannot have full-length conversations with people just until you learn to use it.
However, I'm sure you're probably still insisting on working on this modification, so here's how it'll go:
(I have no idea how a1.2.6's codebase is, so I'll go off of 1.7.10's codebase)
Update the onUpdate() method with a check to see if the riddenByEntity is an EntityPlayer and the currentItem is your custom block, and if so, double the minecart's acceleration by using addVelocity() (See how it is used, then use it yourself)
Open launchclient.jar in MCP's root folder, and test.
If you're planning on making/releasing this mod outside of MCP:
Recompile your code from MCP's recompile.bat
Reobfuscate your code from MCP's reobfuscate.bat
Your new mod is now in /temp/ and is presumably called client_reobf.jar.
This may not be a ton of help, but it is a general outline of what to do. If you get stuck anywhere or not sure how to do something, see tutorials online on how to achieve it. Good luck!
Your new mod is now in /temp/ and is presumably called client_reobf.jar.
The actual files are in "mcp\reobf\minecraft"; you can't distribute that jar file as it is against the EULA to distribute "modded versions" of the game, only relatively small snippets. This also means you'll need to have the user manually install it (aka the old "jar" modding days, open jar with a zip tool, add files, delete META-INF, but you'll also need to set up a "custom version", as I gave an example of here, I also distribute the json file with my own mods so you don't need to edit it yourself).
Also, I looked at the contents of "client_reobf.jar" (using 1.6.4 but that should be the same as 1.7.10, and probably any version) and it probably wouldn't work anyway since it is missing the assets and achievement folders and some other files so it isn't intended to be a complete working version (it is possible to add new/missing assets with a resource/texture pack, as I use to add new assets within MCP, the game seems fine with this since it loads them right away, no warnings of missing textures).
As far as I know, the client_reobf.jar can be redistributed because it doesn't contain the whole minecraft jar but rather the changed code of the Java files (which as far as I heard is allowed by the EULA, as long as it does not allow someone to play Minecraft without a license).
Personally for my mod (currently in early development), I distribute the client_reobf.jar with instructions on how to patch it onto the vanilla jar file via MultiMC or manually deleting meta inf and all that. I personally have an automatic python file that patches the assets into the changed client_reobf, along with a hashed folder tree for the sounds (This is the same way that Right Branch of Development redistributed its files).
I'm a fan of the TMCW mod, it's been one of my main inspirations for my mod development after RBoD, and your forum posts are very interesting, I appreciate you lots!
The client_reobf.jar that I have contains every recompiled class, the same number as \bin\minecraft\net\minecraft\src (where the compiled classes used to run the game are placed), and over three times as many as \reobf\minecraft (from which I copy the files from); at the least you are including unnecessary files, especially for smaller mods (for example, earlier versions of TMCW could be used with Optifine but if you just included all files like this you could end up overwriting anything Optifine modified; I'd also made mods which were just a single class, like my "old caves" mods or Intel OpenGL fix):
Interesting, thanks for the info! I'll do it this way now.
On a side note, is there any way I could contact you outside of Minecraft Forum? A platform like Discord or Telegram would suffice, I have a few questions regarding a specific part of the code...
I have very little knowledge about java. I want to modify the old version of minecraft a1.2.6 in such a way that, when selecting a certain block, the trolley accelerates 2 times when it drives up the rails to this block. I do not know where to look for it, and what exactly to change. Help please!!!!
You should probably start by learning Java first, because as with talking in a language, you cannot have full-length conversations with people just until you learn to use it.
However, I'm sure you're probably still insisting on working on this modification, so here's how it'll go:
(I have no idea how a1.2.6's codebase is, so I'll go off of 1.7.10's codebase)
If you're planning on making/releasing this mod outside of MCP:
This may not be a ton of help, but it is a general outline of what to do. If you get stuck anywhere or not sure how to do something, see tutorials online on how to achieve it. Good luck!
The actual files are in "mcp\reobf\minecraft"; you can't distribute that jar file as it is against the EULA to distribute "modded versions" of the game, only relatively small snippets. This also means you'll need to have the user manually install it (aka the old "jar" modding days, open jar with a zip tool, add files, delete META-INF, but you'll also need to set up a "custom version", as I gave an example of here, I also distribute the json file with my own mods so you don't need to edit it yourself).
Also, I looked at the contents of "client_reobf.jar" (using 1.6.4 but that should be the same as 1.7.10, and probably any version) and it probably wouldn't work anyway since it is missing the assets and achievement folders and some other files so it isn't intended to be a complete working version (it is possible to add new/missing assets with a resource/texture pack, as I use to add new assets within MCP, the game seems fine with this since it loads them right away, no warnings of missing textures).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
As far as I know, the client_reobf.jar can be redistributed because it doesn't contain the whole minecraft jar but rather the changed code of the Java files (which as far as I heard is allowed by the EULA, as long as it does not allow someone to play Minecraft without a license).
Personally for my mod (currently in early development), I distribute the client_reobf.jar with instructions on how to patch it onto the vanilla jar file via MultiMC or manually deleting meta inf and all that. I personally have an automatic python file that patches the assets into the changed client_reobf, along with a hashed folder tree for the sounds (This is the same way that Right Branch of Development redistributed its files).
I'm a fan of the TMCW mod, it's been one of my main inspirations for my mod development after RBoD, and your forum posts are very interesting, I appreciate you lots!
The client_reobf.jar that I have contains every recompiled class, the same number as \bin\minecraft\net\minecraft\src (where the compiled classes used to run the game are placed), and over three times as many as \reobf\minecraft (from which I copy the files from); at the least you are including unnecessary files, especially for smaller mods (for example, earlier versions of TMCW could be used with Optifine but if you just included all files like this you could end up overwriting anything Optifine modified; I'd also made mods which were just a single class, like my "old caves" mods or Intel OpenGL fix):
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?
Interesting, thanks for the info! I'll do it this way now.
On a side note, is there any way I could contact you outside of Minecraft Forum? A platform like Discord or Telegram would suffice, I have a few questions regarding a specific part of the code...