User Tools

Site Tools


dependencies

Dependencies

If your mod uses features/content created in another mod, you can declare this other mod as a dependency of yours. Doing so will warn players if they try to use your mod without its dependencies.

To declare dependencies for your mod, add a “Dependencies” table in your mod.json. Each entry in this table requires the name of the dependency mod (“Name”), and its ID (“Id”, you can find it in the dependency's generated_ids.lua file).

mod.json
  1. {
  2. "Name": "Mod Name",
  3. "Author": "Author of the mod",
  4. "Description": "Description of the mod",
  5. "Version": "1.0.0",
  6.  
  7. "Dependencies": [
  8. {
  9. "Id": "81f7891c-d992-4b27-beff-617a276bab4c",
  10. "Name": "First dependency mod"
  11. },
  12. {
  13. "Id": "28eac88d-a14a-45fa-842f-710839386b77",
  14. "Name": "Second dependency mod"
  15. },
  16. ...
  17. ]
  18. }
dependencies.txt · Last modified: 2019/05/30 10:34 (external edit)