Created
December 16, 2025 18:03
-
-
Save hexakon/0741aa53f58a881420fc95f141a5f2e1 to your computer and use it in GitHub Desktop.
How to use allowed_symlinks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # it's kinda dumb that there's almost no documentation of allowed_symlinks.txt besides | |
| # https://minecraft.wiki/w/Java_Edition_1.20_Pre-release_7 | |
| # so here's an example of what that might look like. | |
| # THIS FILE IS PLACED AT THE ROOT .minecraft FOLDER! YOU SHOULD SEE options.txt IN THE SAME FOLDER! | |
| # on linux, this instruction allows symlinks from ANYWHERE inside your "~/worlds" folder | |
| [prefix]/home/yourname/worlds/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for documenting this. I agree, it's strange there's almost no documentation on this anywhere. Even on Minecraft.wiki, it's mostly in patch notes!
For anyone else stumbling onto this page, here's some info I've gathered about this feature from testing. I am using Linux, so I can't confirm on Windows, but as far as I can tell, these applie to both.
allowed_symlinks.txtrefer to the destination the symlink points to, not the location of the symlink./mnt/other_drive/Games/PrismLauncher.allowed_symlinks.txt, for example if there's invalid syntax, all symlinks are disabled.server-resource-packs, but I assume so.The naïve thing to do is write a rule like
[regex].+,C:/, or/, to allow all symlinks. But that defeats the purpose of this feature. It was added for security reasons, so I think it's wiser to whitelist individual paths instead, like/mnt/other_drive/Games/PrismLauncherin my case.