[HELP] Get block in front of Player's face

Discussion in 'Plugin Development' started by mrZcr4fter, Mar 8, 2014.

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

    mrZcr4fter

    I need to spawn a WitherSkull and make it move in the direction a Zombie is looking, but it keeps hitting its head, and I can't seem to figure out a way to get the location of the block in front of the zombie to spawn it there.. Help? Thanks.
     
  2. Offline

    Elimnator

    before I did:
    Code:
    Vector vel = ar.getVelocity();
    fb.setVelocity(vel);
    ar.remove();
    Then set a timer to set the skulls velocity to vel every tick until the skull dies.
     
Thread Status:
Not open for further replies.

Share This Page