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

DoubleChestInventory

Discussion in 'Facepalm' started by RoyalMCPE, Jun 24, 2017.

  1. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    How would I be able to send a DoubleChestInventory to a player?
     
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    spawn 2 chest tiles next to eachother and use Player::addWindow() to send the inventory to the player
     
  3. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    Could you please give an example.
     
  4. moska

    moska Baby Zombie

    Messages:
    105
    GitHub:
    supermaxalex
    spawn two times the tile and the block (x - 1 for the second), do checkPair two times too (not sure about this) and then, do addWindow
     
  5. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    When Chest ::getInventory is called, the tile automatically checks if there is a pair for it and links to that chest.
     
  6. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  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.