How to code

Need help or advice on things not related to Minecraft? Ask away here!
Post Reply
User avatar
Mattybcd
Posts: 556
Joined: 17 Nov 2011, 20:00
Location: Baltimore

How to code

Post by Mattybcd » 27 May 2012, 19:49

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
Video editor. GFX artist. Intro designer. *Pic coming soon* Also follow me on twitter- @Delux_kingzz

User avatar
Milo_Windby
Retired
Posts: 2274
Joined: 06 Nov 2010, 15:18
Location: Canada, British Columbia

Re: How to code

Post by Milo_Windby » 28 May 2012, 02:40

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.
Ferengi Rules of Acquisition wrote:#40. If you see profit on a journey, take it
Image
<3Milo's Catnip Fund<3

User avatar
Furdabip
Poop
Posts: 982
Joined: 06 Jan 2011, 01:04
Location: Canadialand.
Contact:

Re: How to code

Post by Furdabip » 29 May 2012, 07:05

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. :-)

User avatar
smeelo
Posts: 34
Joined: 31 Mar 2011, 17:27

Re: How to code

Post by smeelo » 14 Jul 2012, 19:43

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.
Image

User avatar
welwyn
Posts: 483
Joined: 03 Feb 2011, 04:38

Re: How to code

Post by welwyn » 21 Jul 2012, 08:59

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.

User avatar
davejavu
Rodney
Posts: 445
Joined: 12 Jan 2011, 10:06

Re: How to code

Post by davejavu » 18 Aug 2012, 14:21

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.

User avatar
Maykxor
Site Contributor
Posts: 266
Joined: 29 Nov 2011, 04:32

Re: How to code

Post by Maykxor » 23 Aug 2012, 10:09

http://lmgtfy.com/?q=How+to+code

Tells you everything you need....
Some people think in pictures, others think in words. I think in pictures with subtitles.
Image
Quotes from cool people I've met over the years:
sobamushi "Maykxor your avatar makes me wanna dance ._.! "
MissKatieKillU: "WHAT THE F***ING F*** IS GOING ON IN MY F***ING ROLEPLAY?"
"I think you may have problems, my friend."
Sole ScuroThis: "This is the part where you scream sexual slurs in my face and I belt you."

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests