Posted October 10, 20222 yr Hi, I need to get the Path of the config folder location inside the code of my mod(no, I'm not looking into using forge's config, it's for another thing), and I can't find a way to get it. I will also mention that I am quite new to forge modding. So well, that's kind of it! Thanks in advance for the help! Oh, I'm using version 1.19.2 btw Edited October 10, 20222 yr by Emafire003 forgot to add the mc version
October 10, 20222 yr Author Nevermind, found it myself, it's FMLPaths.CONFIGDIR.get() FMLPaths.CONFIGDIR.get() then you can use .resolve(MOD_ID) for creating a dir for all your files and stuff
October 10, 20222 yr Why don't you want to use the forge config system? What are you trying to achieve? Any configuration should either be in datapacks or in forge configs, for maximum compatibility and ease of users changing things.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.