Blogs Tutorial

Modding Tutorial episode 2 - Basic Items

  • 211 views 0 today
  • 2
  • 0
gabe4356
Lvl 53Grandmaster Blob
204
Ok guys! im back with another modding tutorial! sorry its been so long, I've just been working really hard on my solar system mod, but last night i just got back from this major event, and i slept till like 12:00 PM so today i think im just going to sit on the couch and do modding tutorials!

Item Code
put this at the top of your mod right below the extends base mod bla blabla, put this code the variables section wich is two lines below that.

public static final Item Test = new Item(5001).setCreativeTab(CreativeTabs.tabMaterials).setUnlocalizedName("test.png");

put this in your load method:

ModLoader.addName(test, "test");

You've just created your item!


Video Tutorial

More like this

  Have something to say?

Welcome