Attaching playerhead to block

Discussion in 'Plugin Development' started by Signatured, May 4, 2015.

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

    Signatured

    I'm trying to set a head on a 'wall' of blocks, however when the head is set and updated, they're floating in the middle of the block instead of attached to the blocks surface.
    [​IMG]

    I have the block I need to attach it to (by getting the surrounding blocks and checking if it's a block), but how would I attach the head itself?
     
  2. Offline

    RawCode

    place block manually in proper direction
    request complete block state, dump it or show in chat\log
    do same to blocks placed from code
    ???
    profit
     
  3. Offline

    Zombie_Striker

    Try something like this
    Code:
    public static final int setHeadDirection(player p);{
      if(p.getlocation.getdirection == North) return 2;
      if(p.getlocation.getdirection == South) return 1;
    return 0;
    }
     
Thread Status:
Not open for further replies.

Share This Page