Coding

Coding

Postby Breakdown901 » 03 Jun 2013, 16:25

Hey, I'd like to code my own commands but I don't have C#. Is it possible to follow the guide you get when you use /cmdcreate? I'm not entirely sure what I'd make, but I'd certainly like to try :)

Thanks
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: Coding

Postby ismellike » 03 Jun 2013, 16:52

Of course you can, visual studio c# is only to make things easier.

You can follow the guides that are posted, do reverse engineering of commands, or just plain out ask.
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: Coding

Postby Conor » 03 Jun 2013, 16:56

Breakdown901 wrote:Hey, I'd like to code my own commands but I don't have C#. Is it possible to follow the guide you get when you use /cmdcreate? I'm not entirely sure what I'd make, but I'd certainly like to try :)

Thanks


I think I might make a lengthy video tutorial soon of the basics of C# and the relationship with minecraft classic coding for MCDzienny, and then code a custom command and explain a few things to help new coders. Do you think this would help and would be worthwhile? Not guaranteeing the quality though, I'm not a good teacher but I could try lol.
Conor (Conanza121)
User avatar
Conor
Coder
 
Posts: 390
Joined: 10 Oct 2012, 21:36
Location: @21Conor

Re: Coding

Postby Breakdown901 » 03 Jun 2013, 17:18

If I'm making a command by the basic tutorial given when using /cmdcreate, would I only be able to have a message sent to an individual player? Or would I need C# to make a method to for example, kill someone?
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: Coding

Postby ismellike » 03 Jun 2013, 17:23

If the /cmdcreate example is all you're following, then I think so.

To kill yourself use this

Code: Select all
Command.all.Find("kill").Use(p,p.name);


if you want to kill someone else,

Code: Select all
Player who = Player.Find(message);
Command.all.Find("kill").Use(p,who.name);


It looks for someone that has the same name as your message (/testkill [message])
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: Coding

Postby Breakdown901 » 03 Jun 2013, 17:29

Thanks, just a shame I can't get C#. I had a demo version of it before and it looks great.
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: Coding

Postby Breakdown901 » 03 Jun 2013, 17:31

Is C# free? If so I might try it.
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: Coding

Postby ismellike » 03 Jun 2013, 17:42

If you have the express version it's a trial for 30 days.

After those 30 days, you have to make a microsoft account to get a free key to have continued access.
What a beast...
User avatar
ismellike
Coder
 
Posts: 731
Joined: 31 Oct 2012, 04:04
Location: Kansas

Re: Coding

Postby Breakdown901 » 03 Jun 2013, 18:15

Just tried it, don't have a clue how to do anything cause I don't know how to code yet. Once I learn to code in school then I might try again, but for now I have uninstalled.
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54


Return to Help in Coding

Who is online

Users browsing this forum: No registered users and 6 guests

cron