Installation

Util.js can be included in your mod with a single line of Javascript...

 

Step 1 - Download it

Download the latest version from the home page and store it alongside the other .js files in your mod.

See also: Util API Downloads.

Step 2 - Include it

In the script where you want to use Util.js, include it in your script:

include("path/to/util_0.6.js");

That's it!

What Next?

After including the file, you can start using the Util API features.

Remember to change the filename in the include() statement.

JS API docs:

  • include() – include an external script file

Util API docs:

  • Util API – full documentation of all Util.js features