Get the location 2 blocks forward of an entity

Discussion in 'Plugin Development' started by thebigdolphin1, Dec 14, 2013.

Thread Status:
Not open for further replies.
  1. I have a projectile, and I need to get the location of it 2 blocks infront (using its facing angle and whatever), like so:
    [​IMG]

    I have tried using a BlockIterator, getting 2 blocks infront and then using the center of the block, however, that isnt accurate enough for what I'm needing this for.
     
  2. Offline

    clienthax

  3. Offline

    Conarnar

    Location loc = entity.getLocation()
    loc.add(loc.getDirection().normalize().multiply());
     
Thread Status:
Not open for further replies.

Share This Page