[Solved] How do you define a new Location with a set X, Y and Z?

Discussion in 'Plugin Development' started by macwinexpert, Jun 10, 2012.

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

    macwinexpert

    No, it didn't spawn there but it spawned at Z -117 instead of Z -118, and then fell down! (I didn't word the sentance very well!)

    Another weird thing that is happening is that cube2 is spawning one Z- from its set location as well :/ Tempted just to adjust the locations by +1, even though it's not strictly true :/

    I have also checked the rest of the code, I don't use the variables cube1&2 outside that block of code!
     
  2. macwinexpert Note that the coordinates you see at minecrafts client are at your legs, not at your head, then (that's why there is player.getLocation() and player.getEyeLocation() in bukkit). ;)
     
  3. Offline

    macwinexpert

    But that will only affect the Y axis, not the X and Z surely?

    Tempted just to change the coordinates defined in the plugin to be +1 on the Z axis even though that's not really where it is supposed to be :p

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

Share This Page