Launch a player up in a desired number of blocks

Discussion in 'Plugin Development' started by NonameSL, Jan 18, 2015.

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

    NonameSL

    How can I launch up a player a deserired number of blocks? I have basic knowledge of Vectors but other than that I lack the knowledge of launching a player up n blocks.

    Is there a method for this in the bukkit API or is it hacky? I don't really care if it's NMS, I just want it to work.

    Thanks in advance! ;)
     
  2. Offline

    Zombie_Striker

    If you want to launch up a player, use .setVelocity(new Vector (x,y,z)). If you want to launch the player up n blocks, you would need to do some testing to figure out which number to use (Vectors can take doubles).
     
Thread Status:
Not open for further replies.

Share This Page