Placing blocks relative to the Player's Point of View

Discussion in 'Plugin Development' started by HoloDoc, Jan 27, 2011.

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

    HoloDoc

    I'm pretty sure that this can't be too hard, but I'm stuck:

    Whenever a player puts down a block, I want the same kind of block to be spawned left to the first block. How do I find out which of the four cardinal directions corresponds to "left" with regard to the player's point of view?

    Is there an easier way than first comparing the player's position to the block's position along both axis and then figuring out the right direction?
     
  2. Offline

    Afforess

  3. Offline

    HoloDoc

    Thanks!
    That's what I was looking for!
     
Thread Status:
Not open for further replies.

Share This Page