1.8.8 Spawn an Item exact.

Discussion in 'Spigot Plugin Development' started by OnheKnock, Mar 29, 2020.

Thread Status:
Not open for further replies.
  1. Hey, i want an Item to spawn exact, but if i use World#dropItem ord World#dropItemNaturally i spawns and but than lands on a block next to it

    Thanks
     
  2. Just remove the velocity after it's been spawned
     
  3. And how do i do that? ^^
     
  4. #4 View, Mar 29, 2020
    Last edited: Mar 29, 2020
  5. Yeah, i got it:
    Vector v = e.getVelocity();
    v.setX(0);
    v.setY(0);
    v.setZ(0);
    e.setVelocity(v);
     
Thread Status:
Not open for further replies.