Need PLugin Help, Right click disable

Discussion in 'Plugin Development' started by footy, Mar 8, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    footy

    Trying to create a plugin for Feed the beast unleashed.

    i want this plugin to detect a player righting clicking with a certain item and disable that items right click event.

    I did

    if ( player.getItemInHand().equals(matrial ==)

    but cant seem to find the FTB item.

    Any suggections ?
     
  2. Offline

    Wolfey

    What item are you looking for?
     
  3. Offline

    footy

    Wands
     
  4. Offline

    ItsOneAndTwo

    Code:java
    1. if(player.getItemInHand().getTypeId() == itemId) {
    2. //continue with your code.
    3. }
     
  5. Offline

    footy

    well item is called wand of fire not a stick
     
  6. Offline

    ItsOneAndTwo

    You can press F3+H in minecraft, and hover over the item, and you'll see the ID of it.
     
  7. Offline

    footy


    Oh i see thank you
     
Thread Status:
Not open for further replies.

Share This Page