I'm creating a mod that allows a mod pack author to create a book in minecraft. The book can contain images which are specified by the mod pack author via a configuration file.
The configuration has a list of pages, each page has an image file name and information like margin size and other layout properties. My problem is the standard forge configuration format doesn't seem to support arrays in this way.
I realize you can still have nested configuration like:
page.page1
page.page2
page.page3
But I would prefer a style of:
pages
{
{ [properties for page 1] }
{ [properties for page 2] }
etc.
}
Where the user doesn't need to name each section explicitly using 'page1', 'page2' etc.. Just because it adds a burden to the user when they want to shift pages around.
So i've implemented it in Json instead but I would prefer to use normal forge config files for 2 reasons:
1. Forge configuration style is standard across nearly all mods.
2. Json doesn't allow comments, incredibly.
Let me know if that was too vague.