1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Inventory

Discussion in 'Facepalm' started by LucGamesDE, May 28, 2017.

  1. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Is there a way to hide the inventory of a player if he openes a chest?
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    PHP:
    $player->getInventory()->clearAll();
     
  3. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Please read the question before answering...
     
  4. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    ?? i dont know what you mean by saying hide inventory ...
     
  5. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    Only show the inventory of the chest to the player
     
  6. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Nope, this isn't possible.
     
    corytortoise likes this.
  7. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    what about temporally faking packet to set their inv to nothing?
    but if you want to show only chest as gui usage i dont think that is possible too
     
  8. LucGamesDE

    LucGamesDE Baby Zombie

    Messages:
    170
    And how can I do this with the packet? Example?
     
  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.