I'm trying to figure out the name of the format used in .cfg files for Minecraft Forge 1.12.2 mods. I believe newer versions of Forge mods use JSON, but I'm not sure what the name of the format is for 1.12.2 configs. They use the .cfg file extension, which is very ambiguous.

For some context, I'm writing a server wrapper and want to implement a tool to configure mods with a nice UI. This means I need to properly parse the file, so I ideally want to learn about the format rather than write a library solely based on the mods I have (despite the format seeming fairly straight forward).

# Configuration file

debug {
    # Enables more printouts to the chat. WARNING: Will spam the log file. Good for bug reports. Not recommended for regular play.

general {
    # If true, your air tank will drain while in use.

    # If true, will draw the remaining air amount on screen when applicable.

minutesofair {
    # Minutes of air in each tank [range: 1 ~ 10, default: 2]

  • Have you tried looking at the Forge 1.12.2 source code? – kutschkem May 20 at 12:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.