Minecraft Blogs / Tutorial

How to Start Making Mods [TUTORIAL]

  • 12,168 views, 3 today
  • 30
  • 24
  • 80
marcusant's Avatar marcusant
Level 37 : Artisan Narwhal
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:
  1. Open the folder that you extracted MCP to
  2. Run cleanup.bat
  3. Run updatemcp.bat
  4. 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.)
  5. Run decompile.bat
  6. Open the folder you extracted Eclipse to
  7. Run Eclipse
  8. 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!

Create an account or sign in to comment.

12/27/2013 11:52 am
Level 6 : Apprentice Crafter
jax200's Avatar
Well im doing a 1.6.4 mod so i will find a new Tutorial
03/29/2013 10:27 pm
Level 12 : Journeyman Archer
Superpooch22's Avatar
I'm on mac and it comes with an application called TextEdit can I use that also?
01/26/2013 8:24 pm
Level 2 : Apprentice Miner
firecat77201's Avatar
go here for eclipse download
08/17/2012 1:24 pm
Level 13 : Journeyman Skinner
vastscatman's Avatar
hey eclipse's link not works
12/28/2011 9:33 pm
Level 37 : Artisan Narwhal
marcusant's Avatar
Ill update this to 1.0 soon.
10/16/2011 3:50 am
Level 56 : Grandmaster Dragonborn
[PROTOTYPE]'s Avatar
it errors when i run cleanup and all the other fucking .bat files AND it has fucked up shitty files like execute_child WTF WTF WTF ??????????????????????????????/
10/07/2011 4:14 pm
Level 19 : Journeyman Pokemon
Emrikkaljo's Avatar
"Open the jars folder and copy the /bin/ and /resources/ folders from your %appdata%/.minecraft folder "

I don't understand, What does this mean?

Please take that again.
10/14/2011 8:17 pm
Level 48 : Master Droid
xMrSchmidtx's Avatar
To copy folders: CtrlC. To paste folders: CtrlV.

Find the Bin and Resources folders in the %appdata%/.minecraft folder. Apply.
10/06/2011 10:51 pm
Level 10 : Journeyman Dragonborn
KingCraft's Avatar
10/06/2011 9:04 pm
Level 1 : New Miner
bunker12222's Avatar
ty ill look into it
Planet Minecraft


© 2010 - 2024