30

How to Start Making Mods [TUTORIAL]

  • 8,505
    Views, 6 today
  • 82 Comments
  • 24 Favorites
  • Flag / Report

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

More Blogs by marcusantView All

Posted 2011-09-30 21:28:25
by marcusant

Comments : 82

Join us to post 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

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?

firecat77201
Level 2
Apprentice Miner
January 26, 2013, 3:24 pm

go here for eclipse download

vastscatman
Level 9
Apprentice Skinner
August 17, 2012, 9:24 am

hey eclipse's link not works

marcusant
Level 36
Artisan Narwhal
December 28, 2011, 4:33 pm

Ill update this to 1.0 soon.

MrNintendoMan
Level 1
New Explorer
December 13, 2011, 4:36 pm

So what's Notepad++ for?

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.

[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 ??????????????????????????????/

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]

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.

KingCraft
Level 7
Apprentice Dragonborn
October 6, 2011, 6:51 pm

OH THX MAN

bunker12222
Level 1
New Miner
October 6, 2011, 5:04 pm

ty ill look into it

bunker12222
Level 1
New Miner
October 6, 2011, 4:18 pm

-_- plz link it to me

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

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?

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

marcusant
Level 36
Artisan Narwhal
October 6, 2011, 4:15 pm

it is java sdk

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

shadowbladeF22
Level 43
Master Technomancer
October 6, 2011, 12:36 pm

then you should get them. syntax highlighting helps allot

Dalant117
Level 18
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!

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

Dalant117
Level 18
Journeyman Artist
October 8, 2011, 4:32 am

U have to pay for Flash 8?

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.

Dalant117
Level 18
Journeyman Artist
October 8, 2011, 10:40 am

It's made by macromedia... Not adobe.

shadowbladeF22
Level 43
Master Technomancer
October 8, 2011, 11:17 am

Adobe also has a version since they recently bought macromedia.

[PROTOTYPE]
Level 51
Grandmaster Dragonborn
October 11, 2011, 10:14 pm

you can JScript with Notepad++! i script for my maps on AdventureCraft mod

shadowbladeF22
Level 43
Master Technomancer
October 12, 2011, 7:57 am

Java and java script are to VERY different things.

[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.

Dalant117
Level 18
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!

fanta0040
Level 48
Master Lava Rider
October 6, 2011, 11:23 am

i can give u 1 if u really need it

Dalant117
Level 18
Journeyman Artist
October 6, 2011, 2:21 pm

Wait...

Artisan Lava Rider

?!? O_o

fanta0040
Level 48
Master Lava Rider
October 7, 2011, 9:10 am

yeah im cool like that

Dalant117
Level 18
Journeyman Artist
October 6, 2011, 2:21 pm

Yes please!

If you would be so kind...

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

Dalant117
Level 18
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!

fanta0040
Level 48
Master Lava Rider
October 7, 2011, 11:01 pm

he has a video showing u how to make items/food/poison

Dalant117
Level 18
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!

Dalant117
Level 18
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...

[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.

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]

[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?

fanta0040
Level 48
Master Lava Rider
October 8, 2011, 5:15 am

kk i 5 so i can't say anything

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

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.

killersolid98
Level 12
Journeyman Blacksmith
October 7, 2011, 8:43 pm

thanks man u rock

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

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

killersolid98
Level 12
Journeyman Blacksmith
October 5, 2011, 9:30 pm

can you make a video cause im confused

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.

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

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.

Dalant117
Level 18
Journeyman Artist
October 6, 2011, 3:13 am

Notepad++ is the BEST THING EVAAA!!!!

Mark916
Level 27
Expert Mountaineer
October 5, 2011, 2:50 pm

Your avatar was mine before OH WELL!

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.

[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

marcusant
Level 36
Artisan Narwhal
October 5, 2011, 1:55 pm

get the 32 bit one, It still works on 64 bit.

[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

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

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.

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

tsnman
Level 31
Artisan Geek
October 5, 2011, 2:11 am

Just like a magician, a good modder doesnt give a way there secrets!

tsnman
Level 31
Artisan Geek
October 5, 2011, 2:08 am

NO use editrocket!

[PROTOTYPE]
Level 51
Grandmaster Dragonborn
October 5, 2011, 1:40 pm

notepad++ works better and has more compatibility with windows 7 EDITROCKET SUCKS

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.

[PROTOTYPE]
Level 51
Grandmaster Dragonborn
October 6, 2011, 1:59 am

um i have editrocket D: IT SUCKS MY FRIEND USE IT! IT SUCKS!

shadowbladeF22
Level 43
Master Technomancer
October 5, 2011, 3:34 pm

Sublime text is better than all above listed!

[PROTOTYPE]
Level 51
Grandmaster Dragonborn
October 5, 2011, 1:39 am

dude, you also need Java SDK

[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!

xMrSchmidtx
Level 44
Master Droid
October 7, 2011, 7:26 am

Lol is 128MB too long for you to wait? :P

[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.

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.

marcusant
Level 36
Artisan Narwhal
October 5, 2011, 11:54 am

I waz here first, lol.

marcusant
Level 36
Artisan Narwhal
October 5, 2011, 1:28 am

You can use notepad++ in the src folder of MCP

1 - 50 of 82