Minecraft Wiki
(Undo revision 1137235 by 71.85.55.86 (talk))
Jr Mime (talk | contribs)
(cleanup)
Tags: Replaced Undo
 
(128 intermediate revisions by 82 users not shown)
Line 1: Line 1:
{{disclaimer}}
+
{{Pending import}}
 
== Caution ==
 
'''''Before you decide to mod (modify) your copy of Minecraft, it is very important to understand what you are doing or you may end up messing up your copy. (If your copy of Minecraft is compromised, you can always backup your worlds and re-download Minecraft)''''' If you mod Minecraft, you may break your copy of the game as well as any worlds that you play in. Because you are doing something that is wholly unsupported by Mojang, they won't be able to help you.
 
 
Due to how modding works, updating the ''Minecraft'' client will break your mods. That is, with each update of the ''Minecraft'' client, you will have to obtain updated mods and re-install them. However, the worlds you created will not be destroyed (although any mod items in your world will not be present).
 
 
Additionally, the authors of the mod make no guarantees as to whether or not the code works, much less any guarantees of support.
 
 
Nearly all mod packs have auto-installers that make adding mods to Minecraft extremely easy for the beginner Modder. You can search for mod packs on the Mods page.
 
 
=== Prerequisites ===
 
You should always know the prerequisites first, else the whole mod might not work. Here is a list of prerequisites you '''must''' have:
 
* Knowledge of zipping/unzipping files, and working with a good archive utility (such as [http://www.win-rar.com/ WinRAR], [http://www.7-zip.org/ 7-Zip], etc.).
 
* Knowing how to accurately read and follow instructions.
 
* Knowing how to submit proper bug reports.
 
* Knowing how to install the mod and its prerequisites.
 
* Knowing which mods conflict with each other and which do not.
 
* Making sure you reread the instructions.
 
You might be able to get away without knowing how to do a few of these things, but if your copy of ''Minecraft'' breaks, then you should seek help from somebody in the modding community (preferably the mod author). If you view this as a great opportunity to learn something new, then you're on the right path!
 
 
'''Note''': You can use [[../Installing forge mods|Forge]] or MCPatcher to do some or all of this work for you!
 
 
=== How Mods Work ===
 
A <code>.jar</code> file on the versions folder under [[.minecraft]] provides everything ''Minecraft'' needs to be able to run. When you add mods to ''Minecraft'', you are taking the <code>.jar</code> file and over-writing it with the changes needed. All of these files inside run through a process called ''[[wikipedia:Obfuscation|obfuscation]]''.
 
 
Furthermore, everything in the game ([[mob]]s, [[item]]s, [[block]]s, etc.) has an ID which allows the game to differentiate each of them. As new content is added to Minecraft, new IDs are used.
 
 
;Notes
 
* '''This is fundamentally changing the way Minecraft was meant to be played'''. So Mojang will '''not''' be able to help you in any way, and are not responsible for crashes, data loss, etc.
 
* Some mods might claim to do something, but could in fact have been authored with a malicious intent such as stealing your ''Minecraft'' username/password, or install a keylogger. This is only a concern if:
 
** The mod that you download contains an executable and you run it.
 
** The mod that you download informs you that you should modify the [[Minecraft launcher]]
 
::If the mod that you wish to install involves neither of these actions then you should feel quite secure. If not, a good measure of safety is to only install mods from a secure and safe website. Make sure to read the comments on mod posts before downloading and installing.
 
* When Minecraft is updated, all mods need to be re-updated by their authors and re-downloaded and placed into the folder, because the launcher downloads a legit copy of ''Minecraft'' from Mojang when it updates. If a mod uses an ID number that Mojang uses in the update, this will cause further issues, and your world might look weird, or potentially be completely broken and unusable. Mod authors do this of their own free will, and it can take weeks for them to update. However, this doesn't mean you should harass the author about it.
 
* If two mods do similar things, they will likely be incompatible, because they will both try to change the same thing (this can be fixed; nowadays, mods come with a properties file to change block and item IDs to fix conflicts)
 
* You may be adding new entities to your worlds, so if you ever have to remove the mods (say because of a ''Minecraft'' update), that world will no longer be compatible.
 
 
== Downloading Mods ==
 
Always be careful when downloading mods. Make sure you download them from the original source to minimize the risk of viruses and be careful with running anything you download on your computer.
 
 
=== Custom Mods ===
 
 
==== ModLoader, Spawnlist and friends ====
 
There are many mods that absolutely require other mods to work, because they use some of the commands these other mods give. These are known as utility mods. These include [http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1272333-risugamis-mods-updated ModLoader] (for adding mods in general), and [http://files.minecraftforge.net/ Minecraft Forge], which is a more advanced ModLoader. These mods that are required by some mods will need to be installed with the mod before ''Minecraft'' is run. Without them, the mod will not work and can even lead to ''Minecraft'' crashing. A much more list of mods can be found [[Programs and editors/Modding|here]].
 
 
Mod authors may give a configuration file to change item IDs. Find the conflicting ID, and change it. Just remember that when an update for ''Minecraft'' or the mod comes out, you must use the same item IDs, else the game will crash.
 
 
== Making Backups ==
 
If you want to test a mod without any risk, simply backup [[.minecraft]]. Restoring it will revert everything to a pre-modded state (including your worlds).
 
 
If you are going to mod in a more persistent and complex fashion then you should keep the following in mind:
 
* Back up your worlds at <code>.minecraft/saves</code>
 
* If you've had previous mods installed, back up the <code>.jar</code> file too, so as not accidentally uninstall mods.
 
* If you wish to potentially keep your stats and achievements safe, backup the directory <code>.minecraft/stats</code>
 
* Do '''not''' put custom mod only items in chests if you wish to access that world again from an unmodified version of Minecraft. It is possible that if you do so, when you remove the mod and then try to open or break the chest, ''Minecraft'' might crash. If you do this accidentally, you can stand on top of the chest, and type in {{cmd|setblock ~ ~-1 ~ air}}. It will remove the chest and the items inside it without crashing the game.
 
 
Backing up your worlds should be done every time you install a new mod.
 
 
== Installing Mods ==
 
 
=== Before 1.6 ===
 
 
'''Windows:'''
 
# Press {{key|win+r}}.
 
# Type in <code>%appdata\.minecraft</code>.
 
# Open '''bin''' and you will see '''minecraft.jar'''.
 
# Open the <code>.jar</code> file using an archive software (recommended WinRAR). To do this, right-click on '''minecraft.jar''' and hover to the '''Open With''' menu item.
 
# Copy the class files into this folder. Exit the folder once you have copied the class files.
 
# Certain mods will require you to copy files into other directories. Follow the instructions on your download for clarification on where to copy files to.
 
 
'''Mac:'''
 
<ol>
 
<li>Go to ''Applications'' > ''Utilities'' and open ''Terminal''.</li>
 
<li>Type in the following, line by line:</li>
 
<pre>cd ~
 
mkdir mctmp
 
cd mctmp
 
jar xf ~/Library/Application\ Support/minecraft/bin/minecraft.jar</pre>
 
<li>Outside ''Terminal'', create a folder named ''mctmp''.</li>
 
<li>Copy all the files and folders into the ''mctmp'' directory.</li>
 
<li>Back in ''Terminal'', type in the following:</li>
 
<pre>rm META-INF/MOJANG_C.*
 
jar uf ~/Library/Application\ Support/minecraft/bin/minecraft.jar ./
 
cd ..
 
rm -rf mctmp</pre>
 
</ol>
 
 
'''Linux:'''
 
You will need to find '''minecraft.jar''' located in '''~/.minecraft/bin/'''.
 
# From Nautilus (or most other file browsers), press {{key|ctrl+H}} to see hidden folders the navigate to '''.minecraft'''.
 
::* If in the console, type, <code>ls -a ~/</code> and you will find the '''.minecraft''' directory.
 
# Navigate to the '''bin''' folder.
 
# Open the <code>.jar</code> file using an archive software.
 
# Copy the class files into this folder. Exit the folder once you have copied the class files.
 
# Certain mods will require you to copy files into other directories. Follow the instructions on your download for clarification on where to copy files to.
 
 
'''Any OS:'''
 
On most operating systems, you can click the ''[[Texture pack]]s'' button on ''Minecraft'''s [[main menu]] which will open the [[.minecraft]] folder. Simply navigate to the parent folder to get into the root of the ''.minecraft'' directory.
 
 
=== [[1.6]] and above ===
 
It is recommended to install mods via Minecraft Forge when installing mods for ''Minecraft'' [[1.6]] and above.
 
{{main|Mods/Installing forge mods}}
 
 
== Dealing with [[Crash]]es ==
 
* Running ''Minecraft'' in command line mode to get a stack trace.
 
* Posting the stack trace on the website/forum/thread of the mod author(s).
 
* If the game still crashes, refer to the next section to restore your ''Minecraft'' and worlds.
 
* Restart ''Minecraft''.
 
 
== Fixing ''Minecraft'' ==
 
If you have encountered a crash like above, then this section might help you.
 
 
=== Deleting Mods ===
 
There are three ways to delete mods from ''Minecraft''.
 
# Go into <code>.minecraft/mods</code> and remove the mod from the folder. If the ''mods'' folder does not exist, then refer to the next way.
 
# Restore your version of ''Minecraft'', making sure to keep your worlds.
 
# Force update. You can do this by deleting the <code>.jar</code> file and re-downloading the game from the launcher.
 
 
=== Fixing Crashes ===
 
To fix a crash, consult the following problem solving list:
 
* Have you deleted the ''META-INF'' folder inside the <code>.jar</code> file?
 
* Forgot ModLoader?
 
* Do your mods have conflicting block or item IDs? If so, most mods have a properties file to change the block and item IDs.
 
* Look in ''modloader.txt'' to see what block ID(s) are conflicted. If the file does not exist, then you have not used ModLoader.
 
* Is the mod made for your version of ''Minecraft''?
 
* Have you installed the dependencies for the mod?
 
* Do you have the right version of Modloader?
 
* Do you have the right version of the mod?
 
* Are you SURE you installed the mod '''correctly'''? (consult any ''README'' file in the mod)
 
 
=== Restoring ''Minecraft'' ===
 
If you have backed up your [[.minecraft]] folder, then you have to delete or remove the modded ''.minecraft'' folder and placing the backed up folder into where you have deleted the modded folder.
 
 
== Video ==
 
 
{{yt|3TW3jsnR41g}}
 
{{yt|1-yLJH-VmcE}}
 
 
== See also ==
 
 
* [[Mods]]
 
* [[Mods/Installing forge mods]]
 
 
{{Minecraft}}
 
 
[[Category:Mods]]
 
 
[[de:Mods/Installation]]
 
[[fr:Installation de mods]]
 

Latest revision as of 00:31, 16 November 2023

FTB Wiki
This page is in the process of being moved to the Feed The Beast Wiki, as it does not fit the scope of the vanilla Minecraft Wiki.
To see the former content of this page, see an older version of this page to read through its content while its import is pending. To do so, see the history and then click any datestamp link from before September 2020. Do not save this version.
 
This page has been exported to an XML file but is awaiting an administrator of the Feed The Beast Wiki to import the pages there.
This page has been blanked and replaced with this message to avoid cluttering maintenance categories on this wiki.
After the files have been imported to the Feed The Beast Wiki, this template should be replaced with a {{soft redirect}} to the Feed The Beast Wiki page. See Template:Copy to FTB for more information.