Solved Spawn Falling Block above Location?

Discussion in 'Plugin Development' started by TheCodingDave, Jun 20, 2015.

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


    Hey all,

    I am trying to spawn a falling block above a certain location. I'm having trouble getting the Y value of the location and spawning it at that location.

    How would I go about spawning a falling block(or any other entity) above a location?

    Thanks for all help!
  2. Offline


    If you have a Location, you can just use getY and setY to increase the height by a few blocks.
  3. Offline


    How would I do this?

    I tried creating a double which held the location's getY() and adding to it in the spawnFallingBlock, but eclipse wouldn't accept it, suggesting that I change the double to a Location, which didn't work.

    Could you please give me an example?
  4. Offline


    Post the code that you've attempted and then maybe we can help you understand/improve your non-working code.
  5. Offline


    Oops, never mind, I did something dumb, but I figured it out! Thanks for your help!
  6. @TheCodingDave Please set this thread to solved by going to Thread Tools > Edit Title > Prefix > Solved.
Thread Status:
Not open for further replies.

Share This Page