Drop Item Precisely

Discussion in 'Plugin Development' started by funkystudios, Dec 6, 2012.

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

    funkystudios

    I am looking for a way to drop an item in a world exactly and precisely at a location. I am trying to drop an item on top of a single fence piece which is almost impossible when using world.dropItem() because of its random "pop" or movement.

    Is there a way to do this?
     
  2. Offline

    fireblast709

    Code:java
    1. Item i = world.dropItem(...);
    2. i.setVelocity(new Vector(0,0,0));
     
  3. Offline

    funkystudios

    Works like a charm, thanks a lot!
     
Thread Status:
Not open for further replies.

Share This Page