Solved How To Detect Item In Hand

Discussion in 'Development' started by Mespeczek, Jun 25, 2018.

  1. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
    I create a plugin in which the player after clicking the object on the wall with saved coordinates in Config file. After clicking, the wall should be reset to white wool.
    The plugin has a similar scheme to "Draw My Thing"

    Item id is 318
     
  2. Nawaf1b

    Nawaf1b Silverfish

    Messages:
    17
    Code:
    $inventory->getItemInHand();
     
  3. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
    How to check check item ID?
     
  4. Nawaf1b

    Nawaf1b Silverfish

    Messages:
    17
    Code:
    $inventory->getItemInHand()->getId();
     
  5. Mespeczek

    Mespeczek Silverfish

    Messages:
    16
    GitHub:
    Igomisz123
    Thanks
     
    DerCooleVonDem likes this.
  6. DerCooleVonDem

    DerCooleVonDem Spider

    Messages:
    10
    GitHub:
    Soon
    Thx for the Thread
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.