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

adding items to chest

Discussion in 'Facepalm' started by Teamblocket, Jun 11, 2017.

  1. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    hey , how can i add items into a chest? do i need to spawn a tile?
     
  2. Marabou

    Marabou Baby Zombie

    Messages:
    137
    GitHub:
    wiligangster
    $chest = getTile(Vector 3(X,y,Z))
    if(chest instanceof Chest){
    $chest->getInventory ()->addItem(item)
    }
    As i'm lazy i make you code.
     
    jasonwynn10 likes this.
  3. Teamblocket

    Teamblocket Zombie

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