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
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:
  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!
Tags

Create an account or sign in to comment.

1
12/27/2013 11:52 am
Level 6 : Apprentice Crafter
jax200
jax200's Avatar
Well im doing a 1.6.4 mod so i will find a new Tutorial
1
03/29/2013 10:27 pm
Level 12 : Journeyman Archer
Superpooch22
Superpooch22's Avatar
I'm on mac and it comes with an application called TextEdit can I use that also?
1
01/26/2013 8:24 pm
Level 2 : Apprentice Miner
firecat77201
firecat77201's Avatar
go here for eclipse download
1
08/17/2012 1:24 pm
Level 13 : Journeyman Skinner
vastscatman
vastscatman's Avatar
hey eclipse's link not works
1
12/28/2011 9:33 pm
Level 37 : Artisan Narwhal
marcusant
marcusant's Avatar
Ill update this to 1.0 soon.
1
10/16/2011 3:50 am
Level 56 : Grandmaster Dragonborn
[PROTOTYPE]
[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 ??????????????????????????????/
1
10/07/2011 4:14 pm
Level 19 : Journeyman Pokemon
Emrikkaljo
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.
1
10/14/2011 8:17 pm
Level 48 : Master Droid
xMrSchmidtx
xMrSchmidtx's Avatar
To copy folders: CtrlC. To paste folders: CtrlV.

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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome