Custom Code Tutorial

Started by Wes on Thu, 01/15/2015 - 00:02
Last seen on 21:14, 22. Feb 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Custom Code Tutorial
Mon, 02/16/2015 - 23:08 (edited)

Hi All xD

Im Writing This to People Who Dont Know how to Code in Java Or Don't Know how to Write this :D
So Today I Will Show you 2 Simple Codes that can Help you :D
Let's start from the Most Easiest thing Called Infinite Durability :)
To Make Infinite Durability Simply Change Your Durability to 0
of E.x :  Gun/Tool/Armor Durability is 500 Replace 500 with 0

 

Second Code tutorial

Tool / Item / Block Description

this is a bit Complicated but Still Easy

Simply write these Lines:

public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par2List, boolean par4)
{
par2List.add("\u00a7a" + "Describe Me NOW !");
}

Thats How to Make Description But 2 Rules :
Too Long of a Description Can Be Cut, So use this.


public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par2List, boolean par4)
{
par2List.add("\u00a7a" + "Description 1");

par2List.add("\u00a7a" + "Description 2");

}

Second You may Think What is That \u00a7a
Its Colour Default is green if you want different color, change last letter "a" To B or C ("Colours stops on E !! " )
also you Can Change First (U) Letter to K and ending on O

 


 


 

Edited by xXMCXx on Mon, 02/16/2015 - 23:08
Last seen on 06:07, 21. Feb 2018
Joined Dec 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
This is a great tutorial,
Thu, 01/15/2015 - 00:48

This is a great tutorial, Keep it up. Also if you wright more I may turn it into official wiki page.

Last seen on 21:14, 22. Feb 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:This is a great tutorial,
Thu, 01/15/2015 - 19:02

@#1 Thanks :)
But There Is A Problem That MCreator Write His Own Code so I Cant Like add Flying to Chestplate Or Enchantements to Tools :z

But I Will Do My Best

Last seen on 23:27, 2. Apr 2015
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Disculpa hablas español?
Mon, 02/16/2015 - 21:37

Disculpa hablas español?

Last seen on 06:07, 21. Feb 2018
Joined Dec 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
RE:Disculpa hablas español?
Mon, 02/16/2015 - 22:04

@#2 Si usted no puede hablar Inglés utilización de un traductor.

Last seen on 21:04, 22. Feb 2018
Joined Nov 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Great Code and Greatly
Mon, 02/16/2015 - 22:15

Great Code and Greatly Described! It's ok if you'r english is Bad... You still describe it good! Nice Job!

Last seen on 23:27, 2. Apr 2015
Joined Feb 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Yes speak engish, but very
Mon, 02/16/2015 - 22:15

Yes speak engish, but very bad, sorry Moderator

Last seen on 06:07, 21. Feb 2018
Joined Dec 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
RE:RE:This is a great tutorial,
Mon, 02/16/2015 - 23:09

@#1.1 I will clean up your tutorials, edit some of the wording and such.

Last seen on 14:12, 17. Dec 2015
Joined Sep 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Does this work on armor? If
Fri, 03/13/2015 - 15:17

Does this work on armor? If so how does that work?

Last seen on 21:14, 22. Feb 2018
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Does this work on armor? If
Fri, 03/13/2015 - 18:20

@#5 I dont think so i will chceck this soon 

Last seen on 15:45, 7. May 2015
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I am running into a problem
Sat, 03/14/2015 - 22:13

I am running into a problem that it recompiled fine but the messages don't show up in the game. Any idea of what i am doing wrong?