Added Ores module

This commit is contained in:
XtremeHacker
2017-02-26 09:12:52 -08:00
parent 9cb4790f40
commit 169ea1ce76
5 changed files with 43 additions and 2 deletions

View File

@ -2,7 +2,7 @@
Non-API portions of MicroExpansion are loaded as modules to allow them to be easily enabled or disabled. Modules can be manually loaded or required from the API or from another module. Specific modules can be disabled using `modules.conf`, as documented below.
## Managing Modules
Modules listed in the configuration file are automatically loaded at startup unless specifically disabled. For the purpose of listing and/or disabling mods, we've introduced the `modules.conf` file.
Modules listed in the configuration file are automatically loaded at startup unless specifically disabled. For the purpose of listing and/or disabling mods, we've introduced the `modules.conf` file.
Each module is listed on a new line, as if setting a variable. A module can be disabled or enabled by setting this variable to `true` or `false`. If a module is not listed here, or is set to `false` (disabled), it will not be automatically loaded.
@ -32,4 +32,4 @@ Attempts to load a module. If the module path is `nil`, `nil` is returned to ind
#### `require_module(name)`
__Usage:__ `microexpansion.require_module(<module name (string)>)`
Passes name to `load_module` if the mod was not disabled in `modules.conf`. For further documentation, see `load_module`.
Passes name to `load_module` if the mod was not disabled in `modules.conf`. For further documentation, see `load_module`.