        /*Path filePath = FabricLoader.getInstance().getConfigDir().resolve("configurabledatafixers.json5");

        try {
            // Lire le contenu du fichier
            String content = new String(Files.readAllBytes(filePath));

            // Supprimer les commentaires JSON5 pour faciliter le parsing
            String cleanedContent = content.replaceAll("/\\*.*?\\*/", "");

            // Parser le JSON
            JsonObject root = JsonParser.parseString(cleanedContent).getAsJsonObject();

            // Récupérer les schemas
            JsonArray schemas = root.getAsJsonArray("schemas");
            if (schemas == null) {
                System.err.println("Schemas not found in the configuration file.");
                return;
            }

            for (JsonElement schemaElement : schemas) {
                JsonObject schema = schemaElement.getAsJsonObject();
                JsonArray dataFixes = schema.getAsJsonArray("data_fixes");

                for (JsonElement dataFixElement : dataFixes) {
                    JsonObject dataFix = dataFixElement.getAsJsonObject();
                    String type = dataFix.get("type").getAsString();

                    if ("block".equals(type) || "item".equals(type)) {
                        JsonArray fixers = dataFix.getAsJsonArray("fixers");

                        String oldId = oldModid + ":" + oldName;
                        String newId = newModid + ":" + newName;

                        // Vérifier si l'élément est déjà présent
                        boolean exists = false;
                        for (JsonElement fixerElement : fixers) {
                            JsonObject fixer = fixerElement.getAsJsonObject();
                            if (oldId.equals(fixer.get("old_id").getAsString()) && newId.equals(fixer.get("new_id").getAsString())) {
                                exists = true;
                                break;
                            }
                        }

                        // Ajouter l'élément s'il n'existe pas
                        if (!exists) {
                            JsonObject newFixer = new JsonObject();
                            newFixer.addProperty("old_id", oldId);
                            newFixer.addProperty("new_id", newId);
                            fixers.add(newFixer);
                        }
                    }
                }
            }

            // Écrire le fichier mis à jour dans le même dossier
            try (Writer writer = Files.newBufferedWriter(filePath)) {
                Gson gson = new GsonBuilder().setPrettyPrinting().create();
                gson.toJson(root, writer);
            }
        } catch (IOException e) {
            System.err.println("Error reading or writing the configuration file: " + e.getMessage());
        } catch (JsonSyntaxException e) {
            System.err.println("Error parsing the JSON structure: " + e.getMessage());
        } catch (Exception e) {
            System.err.println("Unexpected error: " + e.getMessage());
        }*/
