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
08-22-2011, 02:27 PM #11
Sharpie
Being awesome since 2009
Originally posted by Merkii View Post
override gui/items.png /pick.png :L


I think you just place it inside the minecraft.jar then, along with all the class files. If that doesn't work then try putting it inside the GUI folder.
08-22-2011, 02:28 PM #12
Laney
Ex-Staff
nice tut mate, im gonna get into MC i think
08-29-2011, 07:57 PM #13
jkry_2_1_
Call Me The CodFather
Originally posted by Merkii View Post
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


mine gets stuck Applying Retro Guard to client.
08-30-2011, 04:13 PM #14
Merkii
Former Staff
Originally posted by jkry
mine gets stuck Applying Retro Guard to client.


wow D= try running update names/clients and al those update bat's, If that doesn't work try google. Sorry I can't help you much more, it's never been a problem to me
08-30-2011, 09:52 PM #15
jkry_2_1_
Call Me The CodFather
Originally posted by Merkii View Post
wow D= try running update names/clients and al those update bat's, If that doesn't work try google. Sorry I can't help you much more, it's never been a problem to me


nvm i let it run for awhile and it finished took along time tho.
09-03-2011, 03:00 PM #16
Originally posted by Merkii View Post
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



Well, I always wanted to make a corner stairs block. For pyramids and etc. Just so it looks neater :p Do you know how to make a block? This is my first attempt :p
09-03-2011, 03:13 PM #17
Merkii
Former Staff
Originally posted by Ninja View Post
Well, I always wanted to make a corner stairs block. For pyramids and etc. Just so it looks neater :p Do you know how to make a block? This is my first attempt :p


may as well make a tut :p Might be up tonight

The following user thanked Merkii for this useful post:

Ninja
09-03-2011, 05:46 PM #18
Sharpie
Being awesome since 2009
Originally posted by merkii View Post
may as well copy and paste a tut :p might be up tonight


merkii is so bau5 i love him plz make this leech1337
09-03-2011, 06:04 PM #19
Merkii
Former Staff
Originally posted by Sharpie View Post
:carling: .


I see what you fecking did there :FU:
Now look at your post

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo