Changes

Jump to navigation Jump to search
some additions and tips
Line 20: Line 20:     
Content packs are listed in load order, so they're already sorted for dependencies. For example, if content pack B requires A, they'll be listed in the order A → B.
 
Content packs are listed in load order, so they're already sorted for dependencies. For example, if content pack B requires A, they'll be listed in the order A → B.
 +
 +
As a note, this can be done as early as ModEntry, although mods often choose to perform this step in the GameLoad or SaveLoaded event.
    
===Check if a file exists===
 
===Check if a file exists===
Line 30: Line 32:  
}
 
}
 
</source>
 
</source>
 +
 +
It is often a good idea to alert the player (and modders who may be using your mod) if the file is missing on deployment.
    
===Read a JSON file===
 
===Read a JSON file===
78

edits

Navigation menu