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

Spawned chest is invisible

Discussion in 'Development' started by kaliiks, Feb 18, 2017.

  1. kaliiks

    kaliiks Zombie

    Messages:
    250
    PHP:
    $level->setBlock(new Vector3(7468, -1205), Block::get(Block::CHEST));
    it spawn chest but is invisible
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Because to spawn a working chest, you need to spawn a tile with it.
     
  3. kaliiks

    kaliiks Zombie

    Messages:
    250
    Can u give me example?
     
  4. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Source code. Keep in mind that you must define the nbt as shown above the highlighted line.
     
  5. kaliiks

    kaliiks Zombie

    Messages:
    250
    Thank you! Problem solved
     
  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.