How to get Id of the block in hand

Discussion in 'Plugin Help' started by tybikman, Apr 27, 2020.

  1. tybikman

    tybikman Silverfish

    Messages:
    22
    I need to take id of the block that in his hand(translated with google)
    Sorry for mistakes
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,397
    GitHub:
    HimbeersaftLP
    PHP:
    $player->getInventory()->getItemInHand()->getId();
     
  3. tybikman

    tybikman Silverfish

    Messages:
    22
    [QUOTE = "HimbeersaftLP, сообщение: 71100, член: 50"]
    PHP:
     player-> getInventory () -> getItemInHand () -> getId (); [/ php] [/ QUOTE]
    Спасибо
     

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.