How to make an electric pickaxe? [FIXED!]

  • i want to make an electric pickaxe (like mining drill) but in game it's like a normal pickaxe (gets damage by using and after that it gets destroyed)
    Please can some very kind guy tell me what's wrong in the code:


    Base mod class


    ItemMetaDrillE (the electric pickaxe)



    I also don't know what to put in getChargedItemId and getEmptyItemId if it's now metadata :/
    What should i put here, and if i did something wrong, what should i fix?
    Thanks.

    • Official Post

    Here is the Source of my Rock Cutter minus the complicated SilkTouch-III-Part, now it works like a normal but slow Mining Drill: