ScriptAPI

Getting Started

ScriptManager The ScriptManager serves as an overview of all installed scripts, their author and current version. It also allows importing additional scripts and deleting already installed ones. The Import button allows you to import single script files as well as compressed zip packages cotaining m...

Setting up Babel

Setting up Babel When writing scripts for LiquidBounce's ScriptAPI, you are restricted by the fact that Nashorn, the script engine used, only supports JavaScript up to version ES5. In other words, many features that were introduced in newer revisions of the language are not natively supported by th...

Managers

Description Each module, command or inventory tab has to be registered in the script's body otherwise it will not be available in the client. The script API offers different managers for inventory tabs, modules and commands. They can also be used to retreive modules or commands from the client. Regi...

Creating Modules

Creating Commands

Example function ExampleCommand() { /* 'getName()' returns the the name of the command. In this example, '.exampleCommand' will run the command. */ this.getName = function() { return "exampleCommand"; }; /* 'getAliases()' can be used to define alias names for a command...

Creating Inventory Tabs

Example function ExampleTab() { // 'getLabel()' returns the name of inventory tab. this.getLabel = function () { return "ExampleTab"; }; // 'getTabIconItem()' returns the item icon which should be used for the tab. this.getTabIconItem = function () { return Java...