Custom Code Tutorial

44 posts / 0 new
Last post
Wes
Wes's picture
Offline
Last seen: 6 months 4 weeks ago
Joined: 04/26/2014 - 16:35
Gems: 3
Custom Code Tutorial

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 02/17/2015 - 00:08


xXMCXx's picture
Offline
Last seen: 2 days 3 hours ago
Joined: 12/27/2013 - 21:01
Gems: 382
This is a great tutorial,

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

Moderator

Wes
Wes's picture
Offline
Last seen: 6 months 4 weeks ago
Joined: 04/26/2014 - 16:35
Gems: 3
RE:This is a great tutorial,

@xXMCXx 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

 

Eye for secrets

xXMCXx's picture
Offline
Last seen: 2 days 3 hours ago
Joined: 12/27/2013 - 21:01
Gems: 382
RE:RE:This is a great tutorial,

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

Moderator

Offline
Last seen: 2 years 5 months ago
Joined: 02/10/2015 - 21:16
Gems: 0
Disculpa hablas español?

Disculpa hablas español?

xXMCXx's picture
Offline
Last seen: 2 days 3 hours ago
Joined: 12/27/2013 - 21:01
Gems: 382
RE:Disculpa hablas español?

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

Moderator

TheFallenEmpire's picture
Offline
Last seen: 3 days 20 hours ago
Joined: 11/21/2014 - 01:39
Gems: -1
Great Code and Greatly

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

Offline
Last seen: 2 years 5 months ago
Joined: 02/10/2015 - 21:16
Gems: 0
Yes speak engish, but very

Yes speak engish, but very bad, sorry Moderator

Offline
Last seen: 1 year 9 months ago
Joined: 09/12/2014 - 15:41
Gems: 0
Does this work on armor? If

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

Wes
Wes's picture
Offline
Last seen: 6 months 4 weeks ago
Joined: 04/26/2014 - 16:35
Gems: 3
RE:Does this work on armor? If

@cislabh I dont think so i will chceck this soon 

 

Eye for secrets

Offline
Last seen: 2 years 4 months ago
Joined: 03/10/2015 - 14:24
Gems: 0
I am running into a problem

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?

Pages