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

Double chest

Discussion in 'Development' started by TwistedAsylumMC, May 8, 2018.

  1. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    Hey people of the forums, how could i make a double chest inventory to send to a player? Like, they do /dc and it brings up a double chest. Ik it uses tiles but theres no double chest one. I dont want to use any other plugin so is there a way i can do this?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Double chests are tricky, do you know how to do it for single chests?
     
  3. Palente

    Palente Slime

    Messages:
    75
    GitHub:
    palente
    I think this topic is the same of
    https://forums.pmmp.io/threads/how-to-open-double-chest-on-command.5027/
    Exemple of double chest inventory
    https://github.com/Frago9876543210/Inv-Menu/blob/master/src/InventoryMenu/API.php#L98-L129
     
  4. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
  5. Palente

    Palente Slime

    Messages:
    75
    GitHub:
    palente
    Using packet like InventoryMenu
    PHP:
    $pk2 = new InventoryContentPacket;
            
    $pk2->windowId WindowTypes::MINECART_CHEST;
            
    $pk2->items $items;
            
    $player->dataPacket($pk2);
     
  6. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    ohh, is it an array or something?
     
  7. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    dw i found it
     
  8. TwistedAsylumMC

    TwistedAsylumMC Slime

    Messages:
    96
    GitHub:
    twistedasylummc
    reading the code confused the fuck out of me, what do i need from the code?
     
  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.