Get the directory where the Minecraft files are stored.
npm install minecraft-path
const minecraftPath = require("minecraft-path");
minecraftPath();
//=> "C:\\Users\\richi\\AppData\\Roaming\\.minecraft"
minecraftPath.win10();
//=> "C:\\Users\\richi\\AppData\\Local\\Packages\\Microsoft.MinecraftUWP_8wekyb3d8bbwe\\LocalState\\games\\com.mojang"
Get the directory where the Minecraft Java Edition files are stored.
Get the directory where the Minecraft Windows 10 Edition files are stored.