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 Teamblocket, May 3, 2017.

  1. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    hey , is it possible to spawn in a double chest inventory then send the GUI to the player? if so how , thanks in advanced
     
  2. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
  3. Lowkey

    Lowkey Slime

    Messages:
    94
    You can use addWindow() to open a chest at certain coordinates if the chunk that the chest is in is loaded for the player. OR you can spawn the chest next to him.
     
  4. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    i want to spawn the chest next to the player , which i have the code for , but i want a double chest inventory
     
  5. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You can place two chests next to each other(I suggest with the same meta) and use the ChestTile->pairWith() method on each of them.
     
  6. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    after that i just get the tile and the inventory and add it to the player via addWindow() function right?
     
  7. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Can you show the code please? It's easiest to help when you share it..
     
  8. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
  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.