Guest User

Untitled

a guest
May 20th, 2023
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. double x = s.getLocation().getX() + -5 + (int) (Math.random() * 5);
  2. double y = s.getLocation().getY() - item_spawn;
  3. double z = s.getLocation().getZ() + 5 + (int) (Math.random() * -5);
  4. // some code here
  5. Location location = new Location(world, x, y, z);
  6. world.dropItem(location, itemStack);
  7.  
Advertisement
Add Comment
Please, Sign In to add comment