Hi I made a item that when right clicked on a certain block will give me a different item. It doesn't seem to work because when I right click on the block with it it does nothing.
public boolean onItemUse(World world, int x, int y, int z, EntityPlayer entityPlayer, int par6, float par7, float par8, float par9, Block var1)
{
if(!world.isRemote)
if(var1 == Paleocraft.nest)
{
ItemStack myItemStack = new ItemStack(Paleocraft.nestbaby, 1);
EntityItem entityitem = new EntityItem(world, x, y, z, myItemStack);
entityitem.delayBeforeCanPickup = 0;
world.spawnEntityInWorld(entityitem);
}
return false;
}
Item Right Click on certain block