This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
ScriptCraft/docs/MODULE_RESOLUTION.md
TheBrokenRail 37f11a92f0
All checks were successful
ScriptCraft/pipeline/head This commit looks good
Add Documentation
2020-05-24 14:09:25 -04:00

584 B

Module Resolution

All ScriptCraft mods have a folder called scriptcraft in the root of their JAR file, when ScriptCraft is loaded all of these are combined to form a single "virtual" root. It is recommended to use namespaces to avoid conflicts with other mods.

Supported File Types

  • .js
  • .json

Extra Details

  • If the import path is a folder, ScriptCraft will load the index file with one of the supported file types.
  • If an extension does not exist in the import path it will look for a file with the same name and one of the supported extensions.