• hi iv made a mod that teleports u like a enderpearl but i need to implement the class IElectricItem.java to make my item use eu everytime u right click.

    iv tested alot of things but evey thing i do dont work

    could someone tell me what code i would need to implement

    thanks :)

  • you have to implement IElectricItem.java, fill out all the abstract methods (mostly self explainatory)
    then, to discharge it, use

    ElectricItem.discharge(itemstack, amount, tier, ignoretransferlimit, simulate)

    itemstack, amount, and tier are self explainatory
    ignoretransferlimit is wether or not to ignore the max transfer limit of your item (probably true)
    simulate is wether to actually discharge the item (definitely false)