if (block.getTypeId() == 516 ){
           
        int y = block.getY();
        int x = block.getX();
        int z = block.getZ();
        World world = block.getWorld();
        boolean check = false;
        if(main.getF(player)==1 || main.getF(player)==-3){ //Facing West
            Block c6 = world.getBlockAt(x, y, z);
            Block c1 = world.getBlockAt(x - 11, y, z);
            Block c2 = world.getBlockAt(x, y, z + 5);
            Block c3 = world.getBlockAt(x, y, z - 5);
            Block c4 = world.getBlockAt(x - 11, y, z + 5);
            Block c5 = world.getBlockAt(x - 11, y, z - 5);
           
            if (!checkBlock(player,c1)){check = true;}
            if (!checkBlock(player,c2)){check = true;}
            if (!checkBlock(player,c3)){check = true;}
            if (!checkBlock(player,c4)){check = true;}
            if (!checkBlock(player,c5)){check = true;}
            if (!checkBlock(player,c6)){check = true;}   
           
           
        }else if(main.getF(player)==2 || main.getF(player)==-2){ //Facing North
            Block c6 = world.getBlockAt(x, y, z);
            Block c1 = world.getBlockAt(x + 5, y, z);
            Block c2 = world.getBlockAt(x - 5, y, z);
            Block c3 = world.getBlockAt(x, y, z - 11);
            Block c4 = world.getBlockAt(x + 5, y, z - 11);
            Block c5 = world.getBlockAt(x - 5, y, z - 11);
       
            if (!checkBlock(player,c1)){check = true;}
            if (!checkBlock(player,c2)){check = true;}
            if (!checkBlock(player,c3)){check = true;}
            if (!checkBlock(player,c4)){check = true;}
            if (!checkBlock(player,c5)){check = true;}
            if (!checkBlock(player,c6)){check = true;}   
           
           
        }else if(main.getF(player)==3 || main.getF(player)==-1){ //Facing East
          Block c6 = world.getBlockAt(x, y, z);
          Block c1 = world.getBlockAt(x + 11, y, z);
          Block c2 = world.getBlockAt(x, y, z + 5);
          Block c3 = world.getBlockAt(x, y, z - 5);
          Block c4 = world.getBlockAt(x + 11, y, z + 5);
          Block c5 = world.getBlockAt(x + 11, y, z - 5);
   
          if (!checkBlock(player,c1)){check = true;}
          if (!checkBlock(player,c2)){check = true;}
          if (!checkBlock(player,c3)){check = true;}
          if (!checkBlock(player,c4)){check = true;}
          if (!checkBlock(player,c5)){check = true;}
          if (!checkBlock(player,c6)){check = true;}
           
           
        }else if(main.getF(player)==4 || main.getF(player)==0 || main.getF(player)==-4){
            Block c6 = world.getBlockAt(x, y, z);
            Block c1 = world.getBlockAt(x + 5, y, z);
            Block c2 = world.getBlockAt(x - 5, y, z);
            Block c3 = world.getBlockAt(x, y, z + 11);
            Block c4 = world.getBlockAt(x + 5, y, z + 11);
            Block c5 = world.getBlockAt(x - 5, y, z + 11);
       
            if (!checkBlock(player,c1)){check = true;}
            if (!checkBlock(player,c2)){check = true;}
            if (!checkBlock(player,c3)){check = true;}
            if (!checkBlock(player,c4)){check = true;}
            if (!checkBlock(player,c5)){check = true;}
            if (!checkBlock(player,c6)){check = true;}       
           
        }
       
        if (check) {
           
            event.setCancelled(true);
            String player2 = event.getPlayer().getName();
            player.sendMessage(ChatColor.GOLD + "[BedcraftGP] " + ChatColor.RED + "Your Quarry would break blocks in a claim!");
        }
        }
        }