b480922b15
- Added functions watchDir/unwatchDir which is responsible for watching all files and subdirectories changes - Callback is called once for each detected change - Changed classroom to check for the last "refresh" made to avoid multiple refreshes without changes - Changed refresh time to 3s because it is much more comfortable - I don't think this would be an issue because checking for lastModifiedTime should be very fast, perhaps even 3s is too much time - Tested in Windows |
||
---|---|---|
.. | ||
lib | ||
modules | ||
plugins | ||
readme.md |
scriptcraft root directory
This directory contains the following subdirectories...
- lib - contains core scriptcraft modules and code.
- modules - contains modules for use by others
- plugins - contains plugins (modules which are automatically loaded and globally-namespaced at startup)
If you are a minecraft modder who wants to develop simple mods then the plugins
location is where you should probably place your .js files.
If you are a minecraft modder who wants to develop more complex mods or provide an API for other modders, then modules intended for use by plugins (your own or others) should probably be placed in the modules
directory.
The lib
directory is reserved for use by ScriptCraft. If a module is considered essential for all, or adds significantly useful new functionality to ScriptCraft then it should be placed in the lib
directory.