Registering a module is done as follows: script. The mandatory information consists of a name, a description and a category under which the module should be displayed in the client's ClickGUI / TabGUI.Ī list of all information that can be specified can be found here. When registering a new module, certain information has to be specified, which is then shown in LiquidBounce's GUIs. The following information has to be specified: The name of the script, the current version of the script, and an array of people who contributed to the script, the authors. In the following the script is registered with the client. New projects should always use the latest API version. If this comment is missing, the script is executed with support for the first API version. In the first line of the main file of each project the targeted API version has to be specified. In the following we will write a simple script that will display a message in the chat every time it is enabled. Thus, it is also possible to access Minecraft classes, methods and fields very easily, which is why the API should immediately look familiar to anyone who has ever worked with MCP.įirst create a file for your script with the extension. The outstanding feature of this engine is that (almost) all Java features can be accessed directly. Nashorn compiles JavaScript to regular Java bytecode and subsequently loads it dynamically into the Java runtime. LiquidBounce's script API is based on Nashorn, an ECMAScript (in the following referred to as JavaScript) engine written entirely in Java. The latter is especially convenient if the project consists of multiple files. ![]() The import button can import single JavaScript files as well as zip archives. Collection station for self-made scripts and LiquidBounce community scripts (including those modified by myself) If you download, use and modify, please mark the address of the collection station and the original author of this script with comments None of the scripts in this script collection station are confused by closed source encryption. ![]() Additionally, it allows the user to import additional scripts and to delete already installed ones. The ScriptManager serves as an overview of all currently installed scripts, their authors and installed version. However, if you need the old documentation, you can still find it in this GitHub repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |