Libraries
Libraries are the globals a script starts with. Most scripts call a library first, then follow the returned object into a class. Nested entries are supporting types, not additional globals.
- Chat — Provides client chat, server messaging, overlay display, and text-formatting functions to scripts as the Chat variable.
- Client — Miscellaneous functions for interacting with Minecraft, exposed to scripts as Client.
- Color — Creates and inspects the packed ARGB colors used by the render APIs.
- FS — File operations resolved against the running script's folder; the FS library is available to scripts as a global variable.
- GlobalVars — Stores named Java values shared by scripts in this JsMacros runtime.
- Hud — Screen, overlay, texture, and window-state APIs exposed to scripts as Hud.
- JavaUtils — Creates Java collections and provides array-string and raw-object helper conversions.
- JavaWrapper — Wraps script callbacks for use as Java MethodWrappers through the JavaWrapper library.
- JsMacros — Script library for event listeners, script execution, and profile services.
- EventAndContext — Pairs an event received by waitForEvent with its event container.
- ScriptEventListener — Listener implementation used for script event subscriptions, rather than a global library.
- KeyBind — Gets and changes key and keybind states through the script global KeyBind.
- KeyTracker — Tracks key names marked pressed by JsMacros key and keybind state calls; it does not query physical keyboard state.
- Player — Functions for getting and modifying the player's state.
- PositionCommon — Creates 2D and 3D positions and segments, plus block positions and look-direction vectors.
- Reflection — Loads classes and uses Java reflection through the script global Reflection.
- CombinedVariableClassLoader — Class loader that searches registered sibling class loaders for classes and resources.
- Request — Sends HTTP requests and creates WebSocket handlers through the Request script library.
- Time — Provides wall-clock time utilities to scripts as Time.
- Utils — Standalone utilities for hashing and Base64 conversion, guessing chat sender names, and rejecting null values.
- World — Functions for getting and using world data.