Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void removeBed(Location location) {
- int radius = 20;
- List<Block> blocks = new ArrayList<Block>();
- for(int x = location.getBlockX() - radius; x <= location.getBlockX() + radius; x++) {
- for(int y = location.getBlockY() - radius; y <= location.getBlockY() + radius; y++) {
- for(int z = location.getBlockZ() - radius; z <= location.getBlockZ() + radius; z++) {
- if (location.getWorld().getBlockAt(x, y, z).getType().toString().contains("WOOL")){
- System.out.println("xDiff: "+(location.getWorld().getBlockAt(x, y, z).getLocation().getX()-location.getX())+"--"+"yDiff: "+(location.getWorld().getBlockAt(x, y, z).getLocation().getY()-location.getY())+"--"+"zDiff: "+(location.getWorld().getBlockAt(x, y, z).getLocation().getZ()-location.getZ()));
- System.out.println("------");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement