Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

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 Version HistoryDownloads.

Step 2 - Include it

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

Code Block
themeRDark
languagejavascript
linenumberstrue
include("path/to/util_0.6.js");

That's it!

What Next?

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

Div
classnotice box ping

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

Div
classbox

JS API docs:

  • include() – include an external script file

Util API docs:

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