Spawn ItemFrames on other sides of block

Discussion in 'Plugin Development' started by augustt198, Jul 5, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    augustt198

    I'm currently only able to spawn ItemFrames on the East side of a block.
    This screenshot shows the result of trying to place ItemFrames on the North, East, South, and West sides of the block in the foreground: http://i.imgur.com/QDrsxb7.png

    The block in the background shows what I'm trying to achieve, spawning an ItemFrame on each side of the block.

    Thanks in advance.
     
  2. Offline

    Zwander

    I would also like to know the answer to this question. Could you post your code though?

    Ahah! I have worked it out!
    You must teleport the itemframe to the desired location, then use
    Code:
    itemFrame.setFacingDirection(facing,true);
    facing being whatever direction you want it to face.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page