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

See what items have a chest

Discussion in 'Development' started by bpsys, Apr 7, 2019.

  1. bpsys

    bpsys Spider

    Messages:
    7
    GitHub:
    bptube
    Hello, I explain, I need a way to see what items are in a chest, ie for example if I put a chest and place an apple and a stone sword if I then place the command "/ chest" tell me "there is a apple and a stone sword "
     
  2. Emirhan Akpınar

    Emirhan Akpınar Slime

    Messages:
    90
    Check nearby tiles if chest when you use /chest command. And show player to item names with
    PHP:
    Chest->getInventory()->getContents()
    this is for get items.
     
    bpsys likes this.
  3. bpsys

    bpsys Spider

    Messages:
    7
    GitHub:
    bptube
    There is the proof
     
  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.