Blogs Tutorial

Coding Help

  • 266 views 1 today
  • 1
  • 0
  • 3
CreeperTheCoder
Lvl 11Journeyman Network
2
A New Item

public class mod_example extends ModLoader {

public static final Item Example;

static {

Example = new Item(245).setUnlocalizedName("example").setCreativeTab(CreativeTabs.tabMaterials);

}

public void load() {

ModLoader.addName(Example, "Example Item");

A New Block

public class Example extends ModLoader {

public static final Block Example;

static {

Example = new Block(245).setUnlocalizedName("Example").setHardness(3.5F).setLightValue(2.5F).setCreativeTab(CreativeTabs.tabBlock);

public void load() {

ModLoader.registerBlock(Example);
ModLoader.addName(Example, "Example Block");

  Have something to say?

SnowyOxygen
07/03/2013 6:13 am
Level 34 : Artisan Lego Builder
Sorry to say but this is just a copy paste bin, you don't show anyone what the code means, or how to change it to our liking. It's not really a tutorial at all.
1
CreeperTheCoder
07/03/2013 6:23 am
Level 11 : Journeyman Network
Thank you for the positive comment, i enjoy people feedback and i will try and change the tutorial to what you have wanted it to be and see how people like it!

Cheers,
~Creeper
1
SnowyOxygen
07/04/2013 10:21 am
Level 34 : Artisan Lego Builder
No problem, glad to see the will to improve :)
1

Welcome