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

How To Add Chest Window

Discussion in 'Development' started by byyEmirhanWSD, Feb 25, 2018.

  1. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    50
    GitHub:
    EmirhanWSD
    Hey guys. I maked test plugin. I make nbt tag, tile etc. It dont send error. It worked. It only make chest sound but dont send chest window. Please help me.
     
  2. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    https://github.com/karanpatel567/addWindow
     
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    That's outdated :p

    Use the https://github.com/Muqsit/InvMenu virion. It makes creating and managing fake inventories very simple.

    PHP:
    $menu InvMenu::create(InvMenu::TYPE_CHEST);
    $menu->getInventory()->setContents([
        
    Item::get(Item::DIAMOND_SWORD),
        
    Item::get(Item::DIAMOND_PICKAXE)
    ]);

    /** @var Player $player */
    $menu->send($player);
     
  4. armagadon159753

    armagadon159753 Zombie

    Messages:
    217
    GitHub:
    armagadon159753
    Oups.
    But its simple update the tile
     
    xXNiceAssassinlo YT likes this.
  5. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    50
    GitHub:
    EmirhanWSD
    Your plugin dont work. Its send error. And what is the virion.yml ?
     
  6. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    xXNiceAssassinlo YT likes this.
  7. Think of a viron like a book store, you get the books you need and only the books you need not the whole book store.
     
  8. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    that's not a good analogy for virons.
    I recommend reading this: https://github.com/poggit/support/blob/master/virion.md
     
  9. @robske_110 (Tim) That is my analogy of what I have on it, although the resource you provided is good.
     
  10. byyEmirhanWSD

    byyEmirhanWSD Witch

    Messages:
    50
    GitHub:
    EmirhanWSD
  11. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    EdwardHamHam likes this.
  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.