getMinecraftInstallDir

Returns a path to the folder with Minecraft app. The value is cached after the first usage.

This function works only on Windows with installed Minecraft Bedrock.

This method is marked as unsafe. It can be disabled in certain environments.

Example

{
  "$template": {
    "$comment": "The field below will most likely be 'C:\Program Files\WindowsApps\Microsoft.MinecraftUWP_<Minecraft version>__8wekyb3d8bbwe'",
    "test": "{{getMinecraftInstallDir()}}"
  }
}