Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Location getLocationBetween(Location min, Location max) {
- int mid_x = (max.getBlockX() + max.getBlockX()) / 2;
- int mid_y = (max.getBlockY() + max.getBlockY()) / 2;
- int mid_z = (max.getBlockZ() + max.getBlockZ()) / 2;
- Location inbetween = new Location(min.getWorld(), mid_x, mid_y, mid_z);
- return inbetween;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement