Aussieforks / australia

Updated fork of the original Australia mod for Minetest v5.7
Other
1 stars 3 forks source link

Move to modpack architecture #18

Open Montandalar opened 1 year ago

Montandalar commented 1 year ago

As detailed in my recent forum thread, I now think that most mods should move to a modpack architecture with their optional-depency content being a separate mod. I would like to make australia into a modpack and add farming, walls, bucket etc. support as separate mods in the pack.

In some cases this may mean we have to open more APIs up, like one for registering submarine loot, for the australia_farming mod. I think that is only really a good thing.

Let me know what you think.

Maverick2797 commented 1 year ago

Sounds like a good idea to me. Australia, much like it's namesake, is a fairly expansive mod. Breaking it down into sub-mods would make it easier for someone to contribute without having to chase functions and variables back through the source.

It's already a good way there after the refactor, being split into individual files instead of a massive init.lua.

I'd propose splitting mapgen.lua, crafting.lua and craftitems.lua (and possibly saplings.lua and related node registrations) to a separate mod that can easily soft depend on a lot of other mods for API access.

Montandalar commented 1 year ago

There was some discussion on-server today. The architecture should look something like this: