Droped item with itemdrop() dont keep his place ...

Discussion in 'Plugin Development' started by max16150, Jan 30, 2019.

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

    max16150

    Hi, i have an issue ...
    I want to drop an item on a chest with the dropitem(location, itemstack) method.
    All works, the item spawn at the right location but he bounce on my chest and most of time he fall next to my chest ...

    I have fixed the issue by using setVelocity() to my item.

    Item item = location.getWorld().dropItem(itemloc.add(0.5,0.5,0.5), itemstack);
    Vector vec = new Vector(0,0,0);
    item.setVelocity(vec);

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

Share This Page