27
Today I am going to teach you how to make mods. The example I will be using is changing the text where it says Minecraft Beta on the main menu. For some java tutorials, check out a java tutorial site, examine Mojang's current code, look a java support/help chat or read a book on java. I am sure some of the mod developers on here, Bukkit or Minecraft forums will be willing to help also.
This tutorial is for windows, for Mac see: www.youtube.com/watch?feature=player_embedded&v=R4fS8BLlZww and for Linux/Unix use the .sh files instead of .bin and look inside src and use your distro's textedit to change the classes instead of Eclipse.
Programs Needed:
Getting Started:
Creating your first mod:
Compiling and Adding to your game:
If this helped you at all, please up vote, favorite and follow!
This tutorial is for windows, for Mac see: www.youtube.com/watch?feature=player_embedded&v=R4fS8BLlZww and for Linux/Unix use the .sh files instead of .bin and look inside src and use your distro's textedit to change the classes instead of Eclipse.
Programs Needed:
- Eclipse: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1
- MCP (Minecraft Coders Pack): http://www.mediafire.com/?g09as6o73ls77c6
- Notepad++: http://notepad-plus-plus.org/
- A Clean Minecraft (force update)(DO NOT DELETE META-INF YET!)
Getting Started:
- Open the folder that you extracted MCP to
- Run cleanup.bat
- Run updatemcp.bat
- Open the jars folder and copy the /bin/ and /resources/ folders from your %appdata%/.minecraft folder (OPTIONAL: if you cant stand seeing errors, copy a linux vanilla Minecraft server and a server.properties there too.)
- Run decompile.bat
- Open the folder you extracted Eclipse to
- Run Eclipse
- Choose the Eclipse folder that is inside of your MCP folder as the workspace
Creating your first mod:
- In Eclipse, open Client>src>net.minecraft.src>GuiMainMenu.java
- Find where it says drawString(fontRenderer, "Minecraft Beta 1.8.1", 2, height - 10, 0xffffff);
- The "Minecraft Beta 1.8.1" is the text, the numbers are coordinates and the color code is the color
- Change this to your needs (EX. drawString(fontRenderer, "Marcusant is Cool", 2, height - 10, 0xFF0000);
- That example will show up on the Main Menu as Marcusant is Cool
- OPTIONAL: You can even add some new text by making a new line, pasting that and changing the coordinates (changing the coordinates can t
- Click save and exit Eclipse
Compiling and Adding to your game:
- In your MCP folder run recompile.bat
- When that is done, run reobfuscate.bat
- Open the reobf folder, then the minecraft folder and copy all of those into your minecraft in%appdata%/.minecraft/bin/minecraft.jar
- Delete the META-INF in %appdata%/.minecraft/bin/minecraft.jar
- Run your game and test
- Zip up the minecraft folder inside of the reobf and post that as your mod!
If this helped you at all, please up vote, favorite and follow!
Tags |
tools/tracking
230124
6
how-to-start-making-mods
Create an account or sign in to comment.
I don't understand, What does this mean?
Please take that again.
Find the Bin and Resources folders in the %appdata%/.minecraft folder. Apply.