Posted September 11, 20205 yr Hey! I use `ForgeConfigSpec`to configure my mod. I expected it to automatically generate the config screen (which is shown when clicking the "config" button of the mod), but it turns out that the developers are supposed to set up that screen. That's how it works at least for 1.12.x and older versions. However, I did not find any resources on how to do it for forge 1.13+. I looked at the documentation, public repos, forge forums but I could not find anything. So my question is: How am I supposed to make that "config" button work? Because at the moment, the users of my mod need to manually edit their config file. Thank you for your help!
September 11, 20205 yr Author That's what I thought, but some mods like Xaero's World Map, Better PVP mod (by Xaero), Inventory HUD+ have that config screen. Sadly, their sources are private
September 22, 20205 yr Author Found a solution thanks to "Curle" on the forge discord. ModLoadingContext.get().registerExtensionPoint(ExtensionPoint.CONFIGGUIFACTORY, () -> (mc, screen) -> { return new CustomOptionsGUI(screen); }); Then you need to create your own config screen (since it is not yet implemented in the forge api)
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.