Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

Q and A how to make minecraft mods


  • Please log in to reply
91 replies to this topic

#1

Sporegrox12

Posted 23 March 2011 - 09:28 PM

i have some ideas for mods but i dont know how to make mods.... can someone please send a link to youtube or something that shows how to make a minecraft mod? i rate myself not knowing how to make mods.  :Notch:  :bookshelf:  :Skeleton:  :Furnace:  :Diamond:
Posted Image Posted Image Posted Image Posted Image

Register or log in to remove.

#2

Chronosmith
  • Location: Not Telling

Posted 23 March 2011 - 09:55 PM

viewtopic.php?f=25&t=44768

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.

Java and Netbeans (http://www.oracle.co... ... index.html)
MCP (http://mcp.ocean-lab...x.php/Main_Page)

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.
Check out my advanced tutorials --> HERE

#3

Sporegrox12

Posted 24 March 2011 - 06:57 PM

Chronosmith said:

http://www.minecraft...hp?f=25&t=44768

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.

Java and Netbeans (http://www.oracle.co... ... index.html)
MCP (http://mcp.ocean-lab...x.php/Main_Page)

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.

can i get a video showing how or something? please?
Posted Image Posted Image Posted Image Posted Image

#4

birjolaxew
    birjolaxew

    Forum/Wiki Sponsor

  • Members
  • 1583 posts

Posted 24 March 2011 - 06:59 PM

... So, you ask us to use several months of our lifes, tutoring you in Java, because you can't read a tutorial? I highly doubt anyone will do that.

Posted Image


Posted Image


Posted Image


Mega Bear said:

Not really a game... just a mass suicide you're inviting people to take part in.

What is this, I don't even

Posted Image

#5

Bencb
    Bencb

    Coal Miner

  • Members
  • 101 posts

Posted 24 March 2011 - 07:00 PM

If your not willing to read, then I would move on from this.
"Pain is temporary. It may last a minute, or an hour, or a day, or a year, but eventually it will subside and something else will take its place. If I quit, however, it lasts forever"

Lance Armstrong

#6

Kazeto
    Kazeto

    Lapis Lazuli Collector

  • Members
  • 1108 posts
  • Location: somewhere in Europe

Posted 24 March 2011 - 07:20 PM

Sporegrox12 said:

can i get a video showing how or something? please?
If you want to be capable of programming, read.
Creating a program, or editing anything through the use of any programming language, requires creativity and patience, as well as theoretical knowledge. None of these can be gained from a mere video tutorial, so if you are determined to create anything, read. And read a lot, on top of practising with the programming language you have chosen daily.

And besides that, nobody would want to use anything created by a person who doesn't know what he is doing and relied on luck to get things done.
If anyone of you got hurt by a stray brick from one of my walls of text, please accept my honest apologies.

#7

Chronosmith
  • Location: Not Telling

Posted 24 March 2011 - 08:09 PM

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.orac...avase/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.
Check out my advanced tutorials --> HERE

#8

Dalik17
    Dalik17

    Zombie Killer

  • Members
  • 156 posts
  • Location: UK
  • Minecraft: Dalik17

Posted 24 March 2011 - 08:40 PM

It's not a tutorial on minecraft modding, but it is a java tutorial.

Check out NewBoston's java tutorial episodes here: http://www.youtube.c... ... 9D83EE3E28
My Youtube: http://youtube.com/AshenfallTF2
My Twitter: @AshenfallTF2

#9

bobsimpleton69

Posted 10 June 2011 - 09:24 PM

View PostChronosmith, on 24 March 2011 - 08:09 PM, said:

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
<!-- m -->http://download.orac...avase/tutorial/<!-- m -->
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.


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;

if (Commands == "Help" || Commands == "help")
{
cout << "Commands" << endl;
cout << "Help" << endl << "Minecraft" << endl << "Internet" << endl;
Commands = "";
cin >> Commands;
}

if (Commands == "Minecraft" || Commands == "minecraft")
fstream FileCheck;
fstream filestr = ("C:\\Users\\jake\\appdata\\Roaming\\.minecraft\\Minecraft.exe")
  if (filestr.is_open())

{
system("C:\\Users\\jake\\appdata\\Roaming\\.minecraft\\Minecraft.exe");
cout << "Now opening Minecraft.exe" << endl;
Commands = "";
system("pause");
cin >> Commands;
}
if (Commands == "Internet" || Commands == "internet")

{
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;

system("C:\\progra~1\\intern~1\\iexplore.exe \"www.google.com\"");
cout << "Now opening the internet" << endl;
Commands = "";
system("pause");
cin >> Commands;
}
if (Commands == "Exit" || Commands == "exit"|| Commands == "Quit" || Commands == "quit")
{
exit(1);
}

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

);
//system("md"SaveLoactionFolderName);
Commands = "";
system("pause");
cin >> Commands;

}


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");
}

#10

bobsimpleton69

Posted 10 June 2011 - 09:25 PM

and thats only half of what i have to do, i got error checking and everything now to do :P

#11

im3733
    im3733

    Tree Puncher

  • Members
  • 35 posts
  • Location: MI, USA
  • Minecraft: im3733

Posted 05 July 2011 - 01:28 PM

View Postbobsimpleton69, on 10 June 2011 - 09:24 PM, said:

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;

if (Commands == "Help" || Commands == "help")
{
cout << "Commands" << endl;
cout << "Help" << endl << "Minecraft" << endl << "Internet" << endl;
Commands = "";
cin >> Commands;
}

if (Commands == "Minecraft" || Commands == "minecraft")
fstream FileCheck;
fstream filestr = ("C:\\Users\\jake\\appdata\\Roaming\\.minecraft\\Minecraft.exe")
  if (filestr.is_open())

{
system("C:\\Users\\jake\\appdata\\Roaming\\.minecraft\\Minecraft.exe");
cout << "Now opening Minecraft.exe" << endl;
Commands = "";
system("pause");
cin >> Commands;
}
if (Commands == "Internet" || Commands == "internet")

{
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;

system("C:\\progra~1\\intern~1\\iexplore.exe \"www.google.com\"");
cout << "Now opening the internet" << endl;
Commands = "";
system("pause");
cin >> Commands;
}
if (Commands == "Exit" || Commands == "exit"|| Commands == "Quit" || Commands == "quit")
{
exit(1);
}

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

);
//system("md"SaveLoactionFolderName);
Commands = "";
system("pause");
cin >> Commands;

}


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");
}
Nice little script, however, you don't give the user the opportunity to type in the address they want, even though you reference that they can. (Just helping emphasize how difficult coding can be, even for something this simple.)

I personally prefer coding in Java, though I'm fairly proficient in C++ also. I once had to write a program for C++ (no gui, thank God) that would play the game "War"... 1000+ lines of code. half a dozen arrays, and about the same number of lists (variable length arrays). Pain. In. The. Butt. But it worked, LOTS of debugging, had to rewrite the whole thing once because I missed a semicolon and couldn't find it. Not Happy.

#12

AbrarSyed
  • Location: IL, USA
  • Minecraft: AbrarSyed

Posted 05 July 2011 - 02:31 PM

View PostSporegrox12, on 24 March 2011 - 06:57 PM, said:

can i get a video showing how or something? please?

My Video Tut series.... on Minecraft Modding.

http://www.youtube.c...6E9C233C6440BB6
Posted Image

#13

BazCraft9

Posted 18 July 2011 - 08:02 AM

I just want to make a simple 'Money' mod. All it needs to have is a sprite and the crafting recipe... Can someone either suggest a mod for me, or give me a list of things I need to do/have to make it? Thanks.  :Coal:

#14

cheechako
    cheechako

    Lapis Lazuli Collector

  • Members
  • 1163 posts

Posted 18 July 2011 - 09:03 AM

View Postjohn111898, on 10 June 2011 - 09:43 PM, said:

You don't need to know Java to make simple mods.

And that's why we have dozens of Emerald Ore and Insta-Mine mods done by people who can't tell the difference between a property and a method.


View PostBazCraft9, on 18 July 2011 - 08:02 AM, said:

I just want to make a simple 'Money' mod. All it needs to have is a sprite and the crafting recipe... Can someone either suggest a mod for me, or give me a list of things I need to do/have to make it? Thanks.  :Coal:

Did you even read any of the posts in this thread? If so, and you still have no idea what you need, maybe this would more your speed.

#15

chrisryan131
  • Location: London
  • Minecraft: Bjimmmy

Posted 23 July 2011 - 01:43 AM

View Postcheechako, on 18 July 2011 - 09:03 AM, said:

And that's why we have dozens of Emerald Ore and Insta-Mine mods done by people who can't tell the difference between a property and a method.




Did you even read any of the posts in this thread? If so, and you still have no idea what you need, maybe this would more your speed.

Dbag^

#16

A Tactical Waffle
  • Location: Ohio

Posted 23 July 2011 - 03:33 AM

As one who is pretty good at C#, Java doesn't look that bad. I thank god that they all work kinda the same at the basic level. I should get to getting a book or something in Java.
"Only two things are infinite, the universe and human stupidity, and I'm not sure about the universe."
-Albert Einstein

#17

Chanceandben

Posted 29 July 2011 - 03:26 PM

Anyone know how I would send people my mod after coding it?
www.youtube.com/user/HDGamersPC

#18

MickiA
    MickiA

    Out of the Water

  • Members
  • 2 posts

Posted 29 July 2011 - 04:17 PM

View PostChanceandben, on 29 July 2011 - 03:26 PM, said:

Anyone know how I would send people my mod after coding it?

If you don't even know how to send a file online, i don't think you should begin modding..

#19

Khayman:Minecrafter
  • Location: Oregon, Wisconsin
  • Minecraft: KhaymanHale

Posted 29 July 2011 - 04:33 PM

Hi like him I am looking to start modding but I am willing to take my time and what I would like to know is what java coding stuff I would need to know because I am looking for a book to read to help me learn. So could someone help me please. :D
Posted Image [SSSS]

#20

lewiswatt1997
  • Location: Scotland
  • Minecraft: lewiswatt1997

Posted 31 July 2011 - 02:08 AM

View PostKhayman:Minecrafter, on 29 July 2011 - 04:33 PM, said:

Hi like him I am looking to start modding but I am willing to take my time and what I would like to know is what java coding stuff I would need to know because I am looking for a book to read to help me learn. So could someone help me please. :D

I can't program Java or anything but I am thinking about learning in the near future, and I'm pretty sure just a quick Google search will help you find a guide. An earlier post recommended a guide.
Posted Image [SSSS]