30

How to Start Making Mods [TUTORIAL]

Collectable

Get Embed Code

Forum:
HTML:
Link:
avatar
marcusant
Level 36 : 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: http://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:Art, Tutorial

Comments : 82

Join us to post comments.

Show Comments

1 - 50 of 82

  • jax200
  • Level 3
  • Apprentice Crafter
  • December 27, 2013, 6:52 am
Well im doing a 1.6.4 mod so i will find a new Tutorial
Edit Reply Delete
  • Superpooch22
  • Level 6
  • Apprentice Blacksmith
  • March 29, 2013, 6:27 pm
I'm on mac and it comes with an application called TextEdit can I use that also?
Edit Reply Delete
  • firecat77201
  • Level 2
  • Apprentice Miner
  • January 26, 2013, 3:24 pm
go here for eclipse download
Edit Reply Delete
  • vastscatman
  • Level 9
  • Apprentice Skinner
  • August 17, 2012, 9:24 am
hey eclipse's link not works
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • December 28, 2011, 4:33 pm
Ill update this to 1.0 soon.
Edit Reply Delete
So what's Notepad++ for?
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • December 28, 2011, 4:25 pm
When you get into more advanced editing and need to finish things off or look at other people's code without having to set up an entire eclipse environment.
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 15, 2011, 11:50 pm
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 ??????????????????????????????/
Edit Reply Delete
  • Emrikkaljo
  • Level 13
  • Journeyman Pokemon
  • October 7, 2011, 12:14 pm
[size=12px][color=rgb(34,34,34)][bgcolor=rgb(204,204,204)]"Open the jars folder and copy the [color=rgb(255,102,0)]/bin/[/color] and [color=rgb(51,204,0)]/resources/[/color] folders from your [color=rgb(204,51,204)]%appdata%/.minecraft[/color] folder "

I don't understand, What does this mean?

Please take that again.[/bgcolor][/color][/size]
Edit Reply Delete
  • xMrSchmidtx
  • Level 44
  • Master Droid
  • October 14, 2011, 4:17 pm
To copy folders: CtrlC. To paste folders: CtrlV.

Find the Bin and Resources folders in the %appdata%/.minecraft folder. Apply.
Edit Reply Delete
  • KingCraft
  • Level 7
  • Apprentice Dragonborn
  • October 6, 2011, 6:51 pm
OH THX MAN
Edit Reply Delete
  • bunker12222
  • Level 1
  • New Miner
  • October 6, 2011, 5:04 pm
ty ill look into it
Edit Reply Delete
  • bunker12222
  • Level 1
  • New Miner
  • October 6, 2011, 4:18 pm
-_- plz link it to me
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • October 6, 2011, 4:25 pm
http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u3-jdk-7-downloads-439818.html
Edit Reply Delete
  • bunker12222
  • Level 1
  • New Miner
  • October 6, 2011, 4:09 pm
umm when ever i try clean up it says i need java sdk whats that?
Edit Reply Delete
  • xMrSchmidtx
  • Level 44
  • Master Droid
  • October 7, 2011, 7:20 am
The SDK should be included if you download the JDK. Just download the JDK :P
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • October 6, 2011, 4:15 pm
it is java sdk
Edit Reply Delete
  • fanta0040
  • Level 48
  • Master Lava Rider
  • October 6, 2011, 11:24 am
if made piles of mods and i don't have notepad++ or eclipse
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 6, 2011, 12:36 pm
then you should get them. syntax highlighting helps allot
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 8, 2011, 4:18 am
I actually use Macromedia Flash 8... Because it has a javascript writer on it...

FLASH 8 HAS EVERYTHING!
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 8, 2011, 4:22 am
and so does dreamweaver but that dosent mean we wanna pay 100 bucks for a program like that
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 8, 2011, 4:32 am
U have to pay for Flash 8?
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 8, 2011, 4:34 am
you have to pay for everything adobe makes.the in browser flash dosent have an actuall program attached to it.
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 8, 2011, 10:40 am
It's made by macromedia... Not adobe.
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 8, 2011, 11:17 am
Adobe also has a version since they recently bought macromedia.
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 11, 2011, 10:14 pm
you can JScript with Notepad++! i script for my maps on AdventureCraft mod
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 12, 2011, 7:57 am
Java and java script are to VERY different things.
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 15, 2011, 11:52 pm
I mean Dalant177 he say macromedia flash 8 has jscript so i say so does notepad++ and editrocket and notetab.
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 6, 2011, 3:08 am
I need a Modloader Template for a food item. I want to add chicken nuggets in a mod but i need to know how. Can you just give me the template? Thanks!
Edit Reply Delete
  • fanta0040
  • Level 48
  • Master Lava Rider
  • October 6, 2011, 11:23 am
i can give u 1 if u really need it
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 6, 2011, 2:21 pm
Wait...

Artisan Lava Rider

?!? O_o
Edit Reply Delete
  • fanta0040
  • Level 48
  • Master Lava Rider
  • October 7, 2011, 9:10 am
yeah im cool like that
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 6, 2011, 2:21 pm
Yes please!

If you would be so kind...
Edit Reply Delete
  • fanta0040
  • Level 48
  • Master Lava Rider
  • October 7, 2011, 9:10 am
http://akahenry.com/?p=159 also watch henry the coder on youtube he's very helpful for first time modders
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 7, 2011, 4:32 pm
Thats who i tried and his tutorial failed me... Also, he doesnt show how to make his own food!
Edit Reply Delete
  • fanta0040
  • Level 48
  • Master Lava Rider
  • October 7, 2011, 11:01 pm
he has a video showing u how to make items/food/poison
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 8, 2011, 4:20 am
Well i used that video, wrote a couple scripts... So when i feel like hooking the monitor and computer back up and turning on that f***ing dinosaur... I will see if that tutorial worked!
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 8, 2011, 4:21 am
And yes, i have 2 computers. 1 for gaming and going on internet.

Other for making texture packs with photoshop and mods for minecraft...
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 15, 2011, 11:55 pm
Hey! In my household there are 8 PCs (3 PCs, 4 laptops and 1 server) (REAL PC SERVER NOT GAME SERVER) All have internet except server.
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • December 28, 2011, 4:28 pm
" [size=12px][color=rgb(37,37,37)]All have internet except server."[/color][/size]
[size=12px][color=rgb(37,37,37)]WTF?[/color][/size]
[size=12px]Hopefully you mean LAN server and not a web server or else that would make no sense :P[/size]
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • December 29, 2011, 8:30 pm
I didn't use the server and I didn't put internet on it. Make's sense now?
Edit Reply Delete
  • fanta0040
  • Level 48
  • Master Lava Rider
  • October 8, 2011, 5:15 am
kk i 5 so i can't say anything
Edit Reply Delete
  • killersolid98
  • Level 12
  • Journeyman Blacksmith
  • October 5, 2011, 11:39 pm
you should take us to the new level like making a new mob or something
Edit Reply Delete
  • xMrSchmidtx
  • Level 44
  • Master Droid
  • October 7, 2011, 7:24 am
Modeling Mobs Easiest program I find to model, I guess you can use Blender, but it would be a lot of work exporting and importing files.

I imagine this is what you meant. Modding the mobs INTO the game is a little different, but you can find a tutorial here.

Edit Reply Delete
  • killersolid98
  • Level 12
  • Journeyman Blacksmith
  • October 7, 2011, 8:43 pm
thanks man u rock
Edit Reply Delete
  • killersolid98
  • Level 12
  • Journeyman Blacksmith
  • October 5, 2011, 9:44 pm
er i cant download java sdk 7 cause im running windows xp and i need to use only 32-bit help? gimme a link

NVM i have installed
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 6, 2011, 12:35 pm
UNINSTALL IT AND GET 1.6! 1.7 is a beta and barely works
Edit Reply Delete
  • killersolid98
  • Level 12
  • Journeyman Blacksmith
  • October 5, 2011, 9:30 pm
can you make a video cause im confused
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 6, 2011, 12:34 pm
thats a good idea i had a hard time locating the piece of code you were refering to.
Edit Reply Delete
  • killersolid98
  • Level 12
  • Journeyman Blacksmith
  • October 5, 2011, 8:21 pm
wow its so complicated im dizzy reading all this COOL STUFF I RUVE YOU
Edit Reply Delete
  • phlip9
  • Level 49
  • Master Technomancer
  • October 5, 2011, 7:40 pm
For the love of god, why would you use Notepad++ when you can install something FAR superior, like eclipse.
Edit Reply Delete
  • Dalant117
  • Level 19
  • Journeyman Artist
  • October 6, 2011, 3:13 am
Notepad++ is the BEST THING EVAAA!!!!
Edit Reply Delete
  • Mark916
  • Level 27
  • Expert Mountaineer
  • October 5, 2011, 2:50 pm
Your avatar was mine before OH WELL!
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • October 5, 2011, 2:57 pm
lol, I am thinking of changing it anyways, but I just googled diamond gif.
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 5, 2011, 1:49 pm
i JUST downloaded java SDK and now its saying cant run on windows 7 64x when i downloaded windows 7 64x WTH
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • October 5, 2011, 1:55 pm
get the 32 bit one, It still works on 64 bit.
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 5, 2011, 2:00 pm
still, i got that like4 months ago *yawn* and still it didn't work
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 5, 2011, 3:35 pm
try getting an older version. some of the newerones are unstable. i use 1.6.0 update 25
Edit Reply Delete
  • jordz0005
  • Level 66
  • High Grandmaster Ghast Rider
  • October 5, 2011, 9:49 am
I approve of this tutorial!

It's quite good for people new to the modding scene.
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • October 5, 2011, 9:32 am
you need the java jdk... I had it since bafore the days I satrted moddin mc and just assumed that mcp had the needed binarys included. Y
Edit Reply Delete
  • tsnman
  • Level 31
  • Artisan Geek
  • October 5, 2011, 2:11 am
Just like a magician, a good modder doesnt give a way there secrets!
Edit Reply Delete
  • tsnman
  • Level 31
  • Artisan Geek
  • October 5, 2011, 2:08 am
NO use editrocket!
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 5, 2011, 1:40 pm
notepad++ works better and has more compatibility with windows 7 EDITROCKET SUCKS
Edit Reply Delete
  • tsnman
  • Level 31
  • Artisan Geek
  • October 6, 2011, 1:45 am
no way just becaise you cant afford it doesnt mean it sucks! jk but still editricket is the best you can get.
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 6, 2011, 1:59 am
um i have editrocket D: IT SUCKS MY FRIEND USE IT! IT SUCKS!
Edit Reply Delete
  • shadowbladeF22
  • Level 43
  • Master Technomancer
  • October 5, 2011, 3:34 pm
Sublime text is better than all above listed!
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 5, 2011, 1:39 am
dude, you also need Java SDK
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 5, 2011, 1:23 am
DO YOU REALLY REALLY REALLY NEED ECLIPSE TO MAKE A MOD???!!!???!!!

ITS 128MB FOR CRAP SAKE!
Edit Reply Delete
  • xMrSchmidtx
  • Level 44
  • Master Droid
  • October 7, 2011, 7:26 am
Lol is 128MB too long for you to wait? :P
Edit Reply Delete
  • [PROTOTYPE]
  • Level 51
  • Grandmaster Dragonborn
  • October 7, 2011, 3:27 pm
sometimes it takes 2 hours sometimes it takes 5 mins

it depends on the time of day and it was slow like shit when i posted that comment.
Edit Reply Delete
  • jordz0005
  • Level 66
  • High Grandmaster Ghast Rider
  • October 5, 2011, 9:50 am
i use notepad ++ which is a flexible text and code editor, it's open source and very compact.
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • October 5, 2011, 11:54 am
I waz here first, lol.
Edit Reply Delete
  • marcusant
  • Level 36
  • Artisan Narwhal
  • October 5, 2011, 1:28 am
You can use notepad++ in the src folder of MCP
Edit Reply Delete

1 - 50 of 82

Show Comments