Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Invisible Tile Help

Comments in 'Plugin Development' started by ImagicalGamer, May 4, 2016.

  1. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    I'm trying to spawn a skull (I have the block spawned and stuff) but I need to spawn a tile so the skull isn't invisible. I tried using NBT tags but they aren't making much sense to me. Any help is appreciated.
  2. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    How do you spawn it? I believe that would affect why.
  3. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    PHP:
    $level->setBlock(new Vector3($x,$y,$z), Block::get(144));
    //$level is properly defined
  4. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    That's why. You need to create a tile. Level::addTile and Tile::createTile();
    ImagicalGamer and HotFireyDeath like this.

Share This Page

Advertisement