kinda funny, I came across this topic last night around 2 am and I got thinking it would be kind of cool to build my own mods, so i dl'ed the programs necessary to begin and got started, within an hour and a half I completed the programming of the MOD and tested it, IT WORKED, I suppose its not too hard to MOD i mean I only have basic programming skills using visual basics lol, never caught on to Java...well until now I suppose lol.
anyways to the dude who started this topic, Google is your friend for sure, I mean i didnt check the date of when you originally asked the question but if you havent figured it out yet, you will. like i said i had NO clue what i was doing and within an hour and 30 minutes I was done my first mod.
cheers
can you help me? i cant get in the .class files and im not sure how to read the code in said .class files in question!
Well, you are certainly not the kind of person I would talk to about anything... just saying, but you have a horrible attitude and "If you can't say something nice, don't say nothing at all"! (PS, for slow people, that means this idiot).
can i get a video showing how or something? please?
Yea there is a video for it. It's how I learned Java. It is a stanford class on teaching Java. If you would like to learn watch all the lectures. here's the link to the first video.
while your watching you'll see that he has assignments for the class. If you would like to learn Java you must do the assignments as the videos say to do it. If you don't there is really no way of practicing them and no point of watching. The website link is below.
It's better to read because you can make multiple mods faster and easier, and it increases your education so that's why i bought four books of Java each about 257-314 pages long. :smile.gif:
I highly recommend simo_415's tutorials. Just remember that before you can start coding, you need the Java SDK, Netbeans, and the Minecraft Coder Pack.
Make sure you read the readme for MCP. It's impossible to use the program without reading that. Also, make sure you have at least SOME understanding of programming. If you know Java, perfect. If you know C++, you can probably make do. If you haven't done any programming at all, work on your own for a while before trying to mod Minecraft.
Clicked on your Java link, and clicked to download Netbeans, and there are 4 things i can download on the screen. Which one do I download, or do I download them all?
I was also thinking about making a mod, but I have school, and sports. I agree that you shouldn't make mods if your not willing to put some time into it, so I think I'll save my ideas for later.
It's unfortunate, but what everybody has been saying is true. It's impossible to do a video tutorial on how to do Java. Even if there were a video tutorial, it would be several days of VERY in-depth material, and you would have to watch each 5-minute segment of that video 3-4 times to get each part. If you want tutorials on Java, there's some at http://download.oracle.com/javase/tutorial/
If you'd like a little taste of what Java is like, here's an example of the source code in Minecraft.
public class BlockWorkbench extends Block
{
protected BlockWorkbench(int i)
{
super(i, Material.wood);
blockIndexInTexture = 59;
}
public int getBlockTextureFromSide(int i)
{
if(i == 1)
{
return blockIndexInTexture - 16;
}
if(i == 0)
{
return Block.planks.getBlockTextureFromSide(0);
}
if(i == 2 || i == 4)
{
return blockIndexInTexture + 1;
} else
{
return blockIndexInTexture;
}
}
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
if(world.multiplayerWorld)
{
return true;
} else
{
entityplayer.displayWorkbenchGUI(i, j, k);
return true;
}
}
}
Those 39 lines of code describe how the workbench is displayed and operates... kinda. Up at the very top you'll see it says "extends Block." If you want the full details on how it works, you'll have to refer back to the file Block.java, which is over 700 lines of code. As well, the code displayed does NOT refer to how you craft items. All it says as far as crafting goes is that if the player activates the block, open up the workbench GUI. You'd have to refer to ANOTHER file for how that works.
Sorry if this is scaring you away from programming. There's a lot of money to be made in programming if you're good, and if that's the kind of career you want, go ahead and practice on Minecraft. But learn the basics first! Start out with hello world (basic starter program), move up to if and switch statements, and eventually learn object-oriented programming. Then you'll be ready to try modding Minecraft. Some schools (high school and college) offer programming classes, even for people who aren't majoring in it. You might try looking for one.
I know of a GREAT java coding tutorial series. I haven't had patience to actually watch it like you mentioned IT HAS TO BE EXTREMLEY LONG well it is. Search thenewboston on youtube and look for his java tutorials. :smile.gif:
for a money mod that you would like to make...
you need coding for these things:
-the sprites
-the crafting
-the function
-what you could buy/sell
+ many more things. correct me if im wrong.
and im looking for a way to make a mod too,
so im a newbie.
Clicked on your Java link, and clicked to download Netbeans, and there are 4 things i can download on the screen. Which one do I download, or do I download them all?
Reld the downloads themselfs. If you rn windows then click the one that has the word "windows" fn it. Usally it would say windows and lunax and mac in another place, but its not where it would be anymore. It also wouldn't say windows. It would say windows 64 and windows 32. Go to your control panel and click on the system icon 2 times then look at the thing that tells you what system you have. That is some how linked to you're windows to see if your 64 or 32, so go to google and look up how to know if youre a 32 or a 64 computer.
pfft this is a taster of what i do C++
#include<iostream>
#include<string>
#include <cstdlib>
#include<direct.h>
#include<fstream>
using namespace std;
string Commands;
int main()
{
cout << "What would you like to do?" << endl;
cout << "Enter a command" << endl;
cin >> Commands;
{
string WebAd;
cout << "What web address do you want to open?" << endl << "If you want to go to the default Adress (www.google.com) then just type DEF" << endl;
if (Commands == "CNF" || Commands == "cnf")
{
string FolderName;
string SaveLocation;
cout << "What do you want the folder to be called?" << endl;
cin >> FolderName;
cout << "Where do you want the folder to be created at?" << endl << endl;
cout << "Example C:\\users\\Jake\\Newfile, You must have // insted of /" << endl;
cin >> SaveLocation;
int _mkdir(
const char *SaveLocation
cout << "Sorry but that is not a reconised command" << endl << endl;
cout << "Type 'Help' for command assistance" << endl;
cin >> Commands;
if (Commands == "Help" || Commands == "help")
{
cout << "Commands" << endl;
cout << "Help" << endl << "Minecraft" << endl << "Internet" << endl;
Commands = "";
cin >> Commands;
}
system("pause");
}
Personally, i think that C++ is easyier than java. But i am also 13. I really want to know how to program but my father doesn't have enough time for me :'(
I have een trying to learn so i will have something in common with him, and so while i'm in school finished with all my work i can think about what i can start to do to help me understand codeing
I highly recommend simo_415's tutorials. Just remember that before you can start coding, you need the Java SDK, Netbeans, and the Minecraft Coder Pack.
Make sure you read the readme for MCP. It's impossible to use the program without reading that. Also, make sure you have at least SOME understanding of programming. If you know Java, perfect. If you know C++, you can probably make do. If you haven't done any programming at all, work on your own for a while before trying to mod Minecraft.
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
if(world.multiplayerWorld)
{
return true;
} else
{
entityplayer.displayWorkbenchGUI(i, j, k);
return true;
}
}
}
For the first time ever, that was intelligible. I recently started c++, and due to being good with logic, I can at least interpret most programming languages. This will be easier than I thought.
If you want to start learning how to write Java then I suggest looking at thenewbostons tutorials. He goes through it step by step, teaching you everything you need to know and how to improve ^^
This is the first of 87 tutorials he has of basic Java programming, with hundreds more for gaming design ect
Screw that, the only thing you are going to learn from a video about scripting is how to hit the replay button, and how to get frusturated.
can you help me? i cant get in the .class files and im not sure how to read the code in said .class files in question!
Well, you are certainly not the kind of person I would talk to about anything... just saying, but you have a horrible attitude and "If you can't say something nice, don't say nothing at all"! (PS, for slow people, that means this idiot).
Yea there is a video for it. It's how I learned Java. It is a stanford class on teaching Java. If you would like to learn watch all the lectures. here's the link to the first video.
while your watching you'll see that he has assignments for the class. If you would like to learn Java you must do the assignments as the videos say to do it. If you don't there is really no way of practicing them and no point of watching. The website link is below.
http://www.stanford.edu/class/cs106a/cgi-bin/
the assignments and handouts are there just look for them.
I watch these ones. They are very well done.
Clicked on your Java link, and clicked to download Netbeans, and there are 4 things i can download on the screen. Which one do I download, or do I download them all?
click here if you want to be nice and help me out
I know of a GREAT java coding tutorial series. I haven't had patience to actually watch it like you mentioned IT HAS TO BE EXTREMLEY LONG well it is. Search thenewboston on youtube and look for his java tutorials. :smile.gif:
you need coding for these things:
-the sprites
-the crafting
-the function
-what you could buy/sell
+ many more things. correct me if im wrong.
and im looking for a way to make a mod too,
so im a newbie.
OMG SOMEONE DID!.. [Amazing, right?] Just look up how to make a mod in minecraft on youtube.com and click away at any of the tuts you want
Reld the downloads themselfs. If you rn windows then click the one that has the word "windows" fn it. Usally it would say windows and lunax and mac in another place, but its not where it would be anymore. It also wouldn't say windows. It would say windows 64 and windows 32. Go to your control panel and click on the system icon 2 times then look at the thing that tells you what system you have. That is some how linked to you're windows to see if your 64 or 32, so go to google and look up how to know if youre a 32 or a 64 computer.
Personally, i think that C++ is easyier than java. But i am also 13. I really want to know how to program but my father doesn't have enough time for me :'(
I have een trying to learn so i will have something in common with him, and so while i'm in school finished with all my work i can think about what i can start to do to help me understand codeing
where is the readme file i cant find it
{
protected BlockWorkbench(int i)
{
super(i, Material.wood);
blockIndexInTexture = 59;
}
public int getBlockTextureFromSide(int i)
{
if(i == 1)
{
return blockIndexInTexture - 16;
}
if(i == 0)
{
return Block.planks.getBlockTextureFromSide(0);
}
if(i == 2 || i == 4)
{
return blockIndexInTexture + 1;
} else
{
return blockIndexInTexture;
}
}
public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer)
{
if(world.multiplayerWorld)
{
return true;
} else
{
entityplayer.displayWorkbenchGUI(i, j, k);
return true;
}
}
}
For the first time ever, that was intelligible. I recently started c++, and due to being good with logic, I can at least interpret most programming languages. This will be easier than I thought.
Screw that, the only thing you are going to learn from a video about scripting is how to hit the replay button, and how to get frusturated.