Page 1 of 1

How to code

Posted: 27 May 2012, 19:49
by Mattybcd
Hi, I was wondering of someone could help me learn to code? I don't mean sitting at the. Imputed for hours trying to teach, like links and stuff. I have been interested I learning to code for a a while now and can't figure it out. So I was wondering of someone. Luke give some basic tips on how to code? :D

Re: How to code

Posted: 28 May 2012, 02:40
by Milo_Windby
Learn how to code.

Being serious though... google...
Being Extra Serious (we must go deeper...) I did take a look at the google for "Learn how to code"
Now I don't know how to code... but the first page I saw was "Learn to code | Codecademy" and google says "Codecademy is the easiest way to learn how to code. It's interactive, fun, and you can do it with your friends."
so I clicked it and the site looks good.
http://www.codecademy.com/#!/exercises/0
And as a side note I know that the coders we have on staff will tell you to read read and read, they might have a wiki or something you can use perhaps... but they will tell you to do as much reading as you can.

Re: How to code

Posted: 29 May 2012, 07:05
by Furdabip
You said you wanted to learn how to code plugins for Minecraft. This requires Java knowledge. Knowing that, I'm sure you can google "how to learn Java" now and be all set. :-)

Re: How to code

Posted: 14 Jul 2012, 19:43
by smeelo
Something easier to do, for getting familiar with Minecraft in general, find a tutorial on
making a Minecraft mod. If should have instructions on installing Java JDK, Eclipse, and MCP.

MCP = Minecraft coder pack.

Once you have MC decompiled you can explore its source. :O
Then, when you see all of the classes inside of eclipse, GuiIngame, EntityClientPlayerMP, Entity, EntityPlayer, Block, PlayerControllerMP, and all of the Packet classes will probably be the most interesting/easiest to understand/look at.

Unless you're making a super-in-depth Mod, general programming/java syntax is about all required.

Take a look at my signature, all it's doing is saying if the players username is not equal to the string smeelo, it shuts down Minecraft.

Re: How to code

Posted: 21 Jul 2012, 08:59
by welwyn
Do you know simple scripting languages? Something like HTML and then javascript are easy to start with.

Your also a donator, so you have access to tekkit, and as such LUA ingame coding, which is pretty easy.

HTML = http://www.w3schools.com/html/default.asp

Javascript = http://www.w3schools.com/js/default.asp

LUA = http://www.phailed.me/2011/02/learn-lua-the-hard-way-1/

These should give you something relatively easy to take a look at, others may want to add their own links to sites for these or other languages.

Re: How to code

Posted: 18 Aug 2012, 14:21
by davejavu
Honestly, it depends what you want to code in the end. I code general java and bukkit plugins, to do that I read/watched some tutorials all over the net, and here I am. But the most important tip is don't give up; when it seems you can't code something, leave it for half an hour, then try again. Also, a great way to learn is from example - reading other peoples' code; however the problem with that - if you don't understand the code then there's not much point in it.

Re: How to code

Posted: 23 Aug 2012, 10:09
by Maykxor
http://lmgtfy.com/?q=How+to+code

Tells you everything you need....