Minecraft Blogs

[OUT OF DATE!] [1.3.2] Modding For beginners! ( Crafting Recipe ) [WIndows]

  • 88
  • 46
  • 159
avatar XCRAFTERS
Level 32 : Artisan Creeper Hugger
46
This post is now out of date and I will not be updating it any time soon. Between school and work I do not get enough "free time" to do this. It was a fun time doing this in the past and thank you guys for ranking me up to level 25+ :)

-XCRAFTERS

P.S. There might be another mod that I am making coming out soon

Hello, my name is Sal, I will be teaching you how to make your very first minecraft mod for minecraft! Please have WINDOWS for this tut It is really easy, just follow these instructions below, and meet the following requirements:

REQUIREMENTS!
  • Basic Windows Knowledge
  • Java's eclipse [link below]
  • MCP [link below]

TUTORIAL:


Important: Run a clean fresh force update on your minecraft
& Make sure you are not using a modified client!
If you are a beginner at codding please follow all the steps, if you know what you are doing and you just want to learn the codes, please decompile your client and skip to step: 11

1) Download and install MCP, and java ECLIPSE [Links below]

2) Make 2 folders on your desktop, one called "ECLIPSE" and the other called "MCP"

3) Extract all the files from eclipse & MCP to the specified folders that you made

4) Go into the MCP folder and run Updatemcp.bat (what this does it it checks for updates, run this whenever making mods to have the latest version of the MCP)

5) Locate your minecraft bin/resources folder and copy and paste those into the "JARS" folder in your MCP folder

6) Now, run cleanup.bat, then decompile.bat this takes a while, so go make yourself a sandwitch...and what this does is that it creates the following folders:
  • bin
  • logs
  • reobf
  • src
  • temp

You will only get a few errors, because they wanted you to put in the minecraft_server.jar, but we arent making server mods, that really doesn't matter, just ignore it!
If none of these files are generated you failed to follow the steps before, run cleanup.bat and retry, if this doesn't work I recommend that there is an update for MCP and you didn't run updatemcp.bat


7) Time to get coding! Open up eclipse and set your work-space to the works-space folder (DEFAULT)

8) Click file, then open, then navigate to
MCPFolder/src/minecraft/net/minecraft/src

9) Get to CRAFTINGMANAGER.java and open it, here is all your crafting recipes for minecraft!

10) This gibrish is called java code, it is a VERY hard languege to learn, and you can make some money off learning it, now you want to make your own crafting recipe right?

Press LCTRL + F and search for "enchantmenttable" no caps


-----------Coding Section-----------



11) you will find a file in how the enchantmenttable is made, here is what you will find:


this.addRecipe(new ItemStack(Block.enchantmentTable, 1), new Object[] {" B ", "D#D", "###", '#', Block.obsidian, 'B', Item.book, 'D', Item.diamond});

(Execpt that all of this is on one line! It just wouldn't fit in this text box)

Now the green colored symbols & letters if how the crafting recipe is made up of, and the spaces mean air, nothing is there, So... it would be set up like this:
B

D#D

###

King of like in minecraft if you ever made one before And the blue colored symbols & text is what each symbol means, so they mean...
# = Obsidian (Block.obsidian)
B = Book (Item.book)
D = Diamond (Item.diamond)
According to the code line.

And where it says Block.enchantmenttable, 1
The Block.enchantmenttable is what you get when the recipe is made, and
the 1 is how many you recieve

So the question is how can I make a new one? You can make a new one by copying the code (Inside of Eclipse) click at the end of the code, and press space to go down a line, paste in the code again and edit it

Say you wish to make a crafting recipe to make grass like the picture below, so these are what the recipe is going to be like:
S

D

S = Seeds (Item.seeds)
D = Dirt (Block.dirt)

Now put the puzzle together, and you should come up with this:

this.addRecipe(new ItemStack(Block.grass, 1), new Object[] {" S ", " D ", 'S', Item.seeds, 'D', Block.dirt});

----End of coding Section---

12) Now that you are done coding you want to go back into the MCP folder and run recompile.bat

13) Now run reobfuscate.bat, what this does is that it generates a class file for you to drag and drop into your minecraft.jar, the file(s) appear in the reobf folder at the top part
It should say, that it found changes in your craftingmanager.bat
Errors? You failed to follow directions correctly, run cleanup.bat, and retry from top

14) Get the files from your reobf folder, and drag them into your minecraft.jar using winrar REMEMBER TO DELETE THE META-INF


15) YOUR DONE YAY! o §o o ¡o o ¦ Now open up minecraft, and you should get this:
ksGprjpg

Download Java's Eclipse Here (Use Eclipse Classic)

Download MCP (Minecraft Coder's Pack 1.3.2) Here

Help me out by:
Diamonding
Subscribing
Commenting



Click to reveal


Thanks for all the support guys, If you need help, or if you are having problems, comment your problem, and I will get back to you when I can!
------------------------------------------------------------------------
POSTING A CRAFTING RECIPE MOD ON PLANETMINECRAFT IS ILLEGEL!, DON'T DO IT OR IT WILL BE TAKEN DOWN, I ONLY MADE THIS POST TO TEACH THE BASICS!
Tags

9 Update Logs

Update #9 : 08/20/2012 3:01:54 pmAug 20th, 2012

updated full thread to 1.3.2 Enjoy!
LOAD MORE LOGS

1
11/19/2012 1:20 pm
Level 30 : Artisan Modder
AwSoMexD
How thit you make that crafting box.
1
10/27/2012 8:35 pm
Level 8 : Apprentice Architect
TeamPyro
Illegel? It's illegal.
1
11/02/2012 12:47 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
???
The Capitalized i looks like a lowercase L

Il ???
1
10/17/2012 2:24 pm
Level 21 : Expert Pony
CracklePopBoom
if want to upload my crafting manager as a mod how could i do that?
becuase mine is called easy dimaond and all you need is 2 obsidian and 1 lazuli block
1
09/25/2012 7:19 pm
Level 1 : New Explorer
FRISBO
when i open the src file its empty!
1
09/26/2012 7:47 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Run cleanup.bat
Then run decompile.bat

Then there will be
1
09/26/2012 6:35 pm
Level 1 : New Explorer
FRISBO
i did! Multiple times!
1
09/27/2012 6:17 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Remeber this is windows 7 tut make sure its that... run cleanup.bat then restart the tut from the top READING THE RED PRINT
1
09/27/2012 6:51 pm
Level 1 : New Explorer
FRISBO
yes im using windows 7 i ran cleanup.bat and i followed the instructions perfectly!
1
08/29/2012 6:28 am
Level 17 : Journeyman Modder
tjs234
Whats the code for sticks?
1
08/28/2012 6:32 am
Level 17 : Journeyman Modder
tjs234
I Hope when i make this it will work i thank you for posting this too!!
1
08/21/2012 1:46 pm
Level 7 : Apprentice Archer
MinersBase15
How Do we make Armour
1
08/22/2012 1:19 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
What are you talking about?
1
08/22/2012 2:19 pm
Level 7 : Apprentice Archer
MinersBase15
i mean i want to code a new type of armour and want to learn how
1
08/22/2012 8:32 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Can you be more specific? I need to know what type of armour?
1
08/22/2012 8:53 pm
Level 7 : Apprentice Archer
MinersBase15
helmet chestplate pants and boots. im making ruby/ onyx/ purple diamond armour(gems i created myslef)
1
08/24/2012 10:12 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Well I can't really help you with stuff that 'you' have created, you need to either provide all the data values/item ids
1
08/20/2012 4:04 pm
Level 7 : Apprentice Archer
MinersBase15
Hey why cant you post a crafting table recipe?
1
08/22/2012 1:19 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
What?
1
08/20/2012 3:57 pm
Level 29 : Expert Pixel Puncher
Haasman29
Holy crap that's a lot!
1
08/22/2012 1:19 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Well if your into coding its not really
1
08/16/2012 2:04 am
Level 1 : New Miner
GleeFreakManiac
You know, the MCP link is outdated.
You need to update it.
It currently gives the user a download for 1.2.5, not 1.3.1.
Please fix it so that others don't have to go through what I did.
1
08/06/2012 10:12 pm
Level 9 : Apprentice Engineer
meachie
You should make a few more of these, this is a pretty good tutorial and there aren't many out there, I would be making them but I only have experience in languages like C#, thinking about getting into java though. Have a diamond :)
1
08/06/2012 1:13 pm
Level 1 : New Miner
Yogurt Pants
Thanks this really helped me, but I can't figure out how to put in dyes for mods. I'm trying to make a mod for sponges, and the problem is i don't know what the name is for 'dandelion yellow'.
1
07/19/2012 1:50 pm
Level 34 : Artisan Pixel Painter
TheGemerboy
thank you!! please look at my mod and see how helpful you where! really thank you :D
1
07/18/2012 12:45 pm
Level 34 : Artisan Artist
Esti
Sweet. Now I can make mods! That's if I aint to lazy to download this stuff :/

Thankz
1
07/18/2012 12:17 pm
Level 28 : Expert Unicorn
cubby1165
Yay I will make one mod then 2 then idk fall asleep ...................................
1
07/18/2012 12:28 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
???
1
07/18/2012 12:55 pm
Level 28 : Expert Unicorn
cubby1165
Idk I meant I might get bored and it is hard but what eva I Idk, if you are making a mod I can help with the .pngs for the mods or bricks or any thing :)

How could I msg you with out everyone seeing?
1
07/18/2012 1:09 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Compose a PM here
1
07/19/2012 12:01 pm
Level 28 : Expert Unicorn
cubby1165
PM?
1
07/17/2012 6:20 pm
Level 40 : Master Robot
BetaEdit
Just saying that if you are gonna create a good mod, you should learn some java too :p
1
07/18/2012 12:29 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Is the a negative or a positive?
1
07/18/2012 12:58 pm
Level 40 : Master Robot
BetaEdit
Im just saying it to people who wants to make mods :P
1
07/16/2012 11:48 am
Level 22 : Expert Toast
LAUAR
You do not need to place server's jar in jars folder... It will just give an error, and I think that you do not need skip it...
1
07/16/2012 12:33 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
yes you don't but I like to do it anyways to avoid some errors that I do not understand
1
07/07/2012 8:43 pm
Level 46 : Master Creeper Hugger
dodpoo6
is there any way to do this without downloading eclipse honestly it would take my computer a day or more to load it onto my crappy computer and bad internet.
1
07/16/2012 11:13 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Sorry, I'm afraid not Eclipse is a Java Coding Reader/editor, without this there is no other thing that would read it :/
1
07/16/2012 11:51 am
Level 22 : Expert Toast
LAUAR
There is Notepad++... You can also open it in Notepad, but Notepad++ is better.
1
07/18/2012 12:30 pm
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Yes, that is possible, But it would not make sence for you guys, because I know nothing but Java Eclipse... You can try that yourself
1
07/19/2012 11:47 am
Level 22 : Expert Toast
LAUAR
It is harder that Eclipse, because it is a text editor...
1
06/26/2012 9:56 am
Level 12 : Journeyman Spelunker
Mister_Iliya
I'm cofused :P
1
07/01/2012 9:20 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Please specify your problem, and I'll try to help...
1
07/09/2012 1:40 pm
Level 12 : Journeyman Spelunker
Mister_Iliya
Well It's very complecated! :P
1
07/10/2012 10:56 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS
Uhm, I can help you if you tell me what your having trouble with
1
06/22/2012 10:40 pm
Level 3 : Apprentice Crafter
Beeding
I took the file from my reobf/minecraft and put it in my .jar in my minecraft directory, yet it doesnt work. I get a black screen when I log in minecraft. Anything I did wrong?

edit: i fixed it forgot meta-inf
1
06/23/2012 9:12 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS
:) I forgot the first time too
1
06/23/2012 11:49 am
Level 3 : Apprentice Crafter
Beeding
Woops sry. I did delete the meta-inf. But still black screen. Was I supposed to leave eclipse open when I ran recompile.bat and reobfuscate.bat?
1
07/01/2012 9:19 am
Level 32 : Artisan Creeper Hugger
XCRAFTERS
No, you were supposed to save it, in eclipse, then run it
1
06/02/2012 4:46 am
Level 14 : Journeyman Archer
_Pickles_
when i click on something in mcp it says Java JDK is not installed can someone pls leave a like to it that would be great cause i cant find it.
Planet Minecraft Logo

Website

© 2010 - 2020
www.planetminecraft.com

Welcome