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

Block Data Settings

Discussion in 'Development' started by jasonwynn10, Nov 25, 2016.

  1. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    What is the data tag put on a chest that sets the direction it faces and what's in it?
    PHP:
    $chunk->setBlockId($X+1,$groundHeight+1,$Z,Block::CHEST);
    $chunk->setBlockData($X+1,$groundHeight+1,$Z,[
      
    //what goes here?
    ]);
     
    Last edited: Nov 26, 2016
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
  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.