Today I am going to show you how to make minecraft get Crazy.
So, let's begin!
Open the ItemRedstone.java file in eclipse or Notepad++ (I use Notepad++).
You should see this:
package net.minecraft.src;
public class ItemRedstone extends Item
{
public ItemRedstone(int par1)
{
super(par1);
this.setCreativeTab(CreativeTabs.tabRedstone);
}
/**
* Callback for item usage. If the item does something special on right clicking, he will have one of those. Return
* True if something happen and false if it don't. This is for ITEMS, not BLOCKS
*/
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
{
if (par3World.getBlockId(par4, par5, par6) != Block.snow.blockID)
{
if (par7 == 0)
{
--par5;
}
if (par7 == 1)
{
++par5;
}
if (par7 == 2)
{
--par6;
}
if (par7 == 3)
{
++par6;
}
if (par7 == 4)
{
--par4;
}
if (par7 == 5)
{
++par4;
}
if (!par3World.isAirBlock(par4, par5, par6))
{
return false;
}
}
Hello everybody!
Today I am going to show you how to make minecraft get Crazy.
So, let's begin!
You should see this:
Now, replace the "this.setCreativeTab(CreativeTabs.tabRedstone);" with "this.setCreativeTab(CreativeTabs.tabFood);"
More Coming Soon!