Custom Code Tutorial

Started by Wes on Thu, 01/15/2015 - 00:02

Topic category: Advanced modding

Last seen on 19:16, 21. Sep 2019
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
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 21:40, 3. Jan 2017
Joined Dec 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Hey...Can you please make a
Mon, 01/02/2017 - 19:43

Hey...Can you please make a tutorial about how to create material for a Technic mod for example: Cables, GUIs for machines, etc.

Last seen on 04:09, 21. Nov 2017
Joined May 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
On Mcreator i wan't to add a
Thu, 07/20/2017 - 06:51

On Mcreator i wan't to add a custom code to my new boots that spawns particles does anyone know the code?

Last seen on 19:00, 24. May 2018
Joined Aug 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Is there any way to make to
Fri, 08/11/2017 - 19:32

Is there any way to make to make a "Spider-Sense" for the player that detects Hostile mobs in First and Third person?

 

Last seen on 12:26, 14. Apr 2019
Joined Jul 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
public void addInformation…
Wed, 07/25/2018 - 21:33

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

 

 

I can not add it to a weapon or bow without making mistakes of not being able to find the symbols

Last seen on 21:41, 26. Feb 2019
Joined Feb 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Hi im very new to moding and…
Tue, 02/26/2019 - 20:41

Hi im very new to moding and dont understand code is it possible with custom code snippets i can make a player hopper what it does is take items from the players inventory and stores it inside itslef?

Last seen on 19:16, 21. Sep 2019
Joined Apr 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
This is outdata tutorial…
Tue, 02/26/2019 - 23:46

This is outdata tutorial which was for 1.7.2 i think or so
I suggest you look at MCreators wiki :)