Post: How to make a Single Player MOD on Minecraft! [1.7.3]
08-16-2011, 11:09 PM #1
Merkii
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({}); Well I'm surprised no ones made one :O So I decided to make one because this section is really lacking it Happy

So there's a few things you'll need to go ahead and download first,
Minecraft Coders Pack, The latest version,

You must login or register to view this content.

A text editor, I will use Eclipse but any is fine :P

And Java SDK installed

Link: You must login or register to view this content.
Only install your systems version Happy

NOTE: Backup your .Minecraft folder, then delete it, and redownload the clean version!!!!!

Ok now we are ready to start!
[multipage=Step 1: Decompiling]
NOTE: Backup your .Minecraft folder, then delete it, and redownload the clean version!!!!!
NOTE: Backup your .Minecraft folder, then delete it, and redownload the clean version!!!!!
NOTE: Backup your .Minecraft folder, then delete it, and redownload the clean version!!!!!




Ok So the first thing we need to do is decompile minecraft so we can edit it, This is simply done.

1.) Go ahead and open your .minecraft folder
(Type %appdata% in RUN, Open the .minecraft folder )

2.) Open up your extracted MCP folder, Then open up the JARS folder.

3.) Go ahead and COPY+PASTE the bin folder and Resources from .minecraft into the Jars folder Smile (C&P THEM)

4.) Then OPEN the Bin directory in .minecraft and COPY AND PASTE the Minecraft.jar into your jars folder Winky Winky.

End result should be You must login or register to view this content.

5.) Now go to the main directory in MCP and run Decompile.bat

Now go to SRC<MINECRAFT<NET<MINECRAFT<SRC< There should be 100s of Java files Winky Winky This is good! Now we can go onto editing them Smile

[multipage=Step 2: Editing the Java's]
For this I will use Eclipse, Skip to the page "How to setup eclipse with MCP" to find out how Happy.


Now I will be showing you how to edit the max meat stack size Smile.

1.) Locate the file called ItemFood.java
2.) Double click it, You will get a small code
3.) locate
            maxStackSize = 1;
and change the one to whatever you like, as long as it is under 64!
I will use 16,

4.) Go ahead and just press CTRL+S to save it, Now you can close eclipse.
Editing is now done!!

[multipage=Step 3: Recompiling]
Go to the main directory again,

1.) Run recompile.bat
Wait for it to finish, there should be NO ERRORS.
2.) Then run Reobfuscate.bat and wait until it's done you should get something like
You must login or register to view this content.

3.) Navigate to MCP<REOBF<MINECRAFT< There will be one class there, that is your edited mod Claps

Now just open Minecraft.jar with your favorite program (7zip Winzip etc etc) now copy and paste the class in, delete META-INF and start minecraft.
kill a few pigs and you should notice you can stack to 16 now!!

[multipage=How to setup eclipse with MCP]

To use eclipse with MCP, just do the following steps:
- Decompile the Minecraft sources
- Open Eclipse
- Select the "eclipse" folder in MCP as workspace
- Create a mod
- You can test the modified client and server in Eclipse, debug
settings are already prepared to start the game in the IDE
- Recompile and reobfuscate as usual

[Multipage=Thanks for reading!]
Hopefully you enjoyed this tutorial, It was very basic of course and I will soon make more on more advanced stuff Winky Winky Until then enjoy life and minecraft :P
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to Merkii for this useful post:

I.Am.Swift, jkry_2_1_, JordyPordy, xd366
09-03-2011, 06:11 PM #20
Default Avatar
Brad
Guest
Originally posted by Merkii View Post
I see what you fecking did there :FU:
Now look at your post


lol. i thought his post look weird Happy

also i will probably use that model thing to :y:
09-03-2011, 06:27 PM #21
Merkii
Former Staff
Yeah it's gonna be a lil longer, I'm gonna make a block tut first, then get into the business of making blocks with multiple textures on each side,
09-03-2011, 07:56 PM #22
Sharpie
Being awesome since 2009
Originally posted by Merkii View Post
Yeah it's gonna be a lil longer, I'm gonna make a block tut first, then get into the business of making blocks with multiple textures on each side,


TEEHEE just thought you might want to know that making a block like stairs is a whole different ball game to normal blocks so be careful with that Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo