Minecraft Blogs / Tutorial

Modding Tutorial episode 2 - Basic Items

  • 166 views, 1 today
  • 2
  • 0
gabe4356's Avatar gabe4356
Level 52 : Grandmaster Blob
205
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
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome