Folder Structure
There is no correct way to structure your mod folder, but there are a few common setups you will see on ModHub.
TODO: Provide 1-3 folder structures.
TODO: Explain how the paths work from other files. (relative/absolute)
Highly opinionated folder structure. I prefer to put everything in folders and subfolders whenever I have many files.
FS22_ModYourFarm/
├─ i3d/
│ ├─ Model.i3d
│ ├─ Model.i3d.shapes
├─ localization/
│ ├─ l10n_de.xml
│ ├─ l10n_en.xml
├─ src/
│ ├─ main.lua
│ ├─ Specialization.lua
├─ textures/
│ ├─ material_diffuse.dds
│ ├─ material_normal.dds
├─ xml/
│ ├─ storeItem.xml
├─ icon_ModYourFarm.dds
├─ modDesc.xml
For example, if I have a mod that adds bales and pallets, I would add the following structure inside /xml:
xml/
├─ bales/
│ ├─ cottonModules/
│ ├─ roundbales/
│ ├─ squarebales/
├─ pallets/