Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double x = s.getLocation().getX() + -5 + (int) (Math.random() * 5);
- double y = s.getLocation().getY() - item_spawn;
- double z = s.getLocation().getZ() + 5 + (int) (Math.random() * -5);
- // some code here
- Location location = new Location(world, x, y, z);
- world.dropItem(location, itemStack);
Advertisement
Add Comment
Please, Sign In to add comment