This README is machine-translated. For any issues or suggestions, please feel free to open an issue or submit a PR to improve it.
A modular framework based on Kotlin script (kts)
- Powerful: Based on Kotlin, it can access all Java interfaces (what plugins can do, scripts can do)
- Efficient: After script loading, converted to JVM bytecode, with no performance gap compared to Java plugins
- Flexible: Modules and scripts have complete life cycles, supporting hot loading and hot reloading
- Quick Development: Provides a wealth of practical auxiliary functions, no compilation needed, quick deployment to the server
- Intelligent: Supports intelligent completion in IDEA or Android Studio during development
- Customizable: Apart from the core part, plugin functions are implemented via scripts, modifiable as per requirements, and module definition scripts can also expand DSL for scripts
The loader (jar) itself has no specific functionality, it is only responsible for the loading and management of scripts, with all functions implemented by scripts.
This is the implementation of the framework for Mindustry, comprising a loader and a series of functional scripts, specifically divided into the following 6 modules:
- coreLib (coreLibrary): The standard library of the framework
- core (coreMindustry): The specific implementation for Mindustry
- main module: Used for storing simple scripts
- wayzer module: A complete set of Mindustry server basic plugins (By: WayZer)
- Discussion: QQ group 1033116078 or discuss directly in Discussions
- Plugin test server: cn.mindustry.top
- mapScript: Special scripts designed for MDT, with life cycles bound to a single game session, loaded only when needed
mirai module: Script wrapper for the QQ bot library mirai(Due to uncontrollable factors from upstream, planned to be removed)
The allInOne version integrates pre-compiled scripts into the loader:
- Download the
xxx.allinone.jar
file from the Release page and place it in theconfig/mods
directory - Start the server (the first start will download dependencies from the network, which will take a long time)
- Download the pre-compiled jar and script package zip from the Release page
- Place the jar file in the
config/mods
folder, and extract the script package to theconfig/scripts
folder (needs to be created by yourself) - Start the server (the first start will download dependencies from the network, which will take a long time)
- Wait for the plugin to load (the first run of the script will compile, which is time-consuming, and the cache will be saved after compilation)
Please refer to the Wiki for specific functions and development-related content.
- Loader: Free for use; no reproduction or other-purpose use without permission.
- Scripts in this repository:
- Free for private modification and use. Public use requires indicating the source (fork or reference this repository). Do not modify the original author's copyright information.
- The
mirai
module and all dependent code follow theAGPLv3
license.
- Other scripts: Owned by their respective authors, who can declare their own open-source licenses. They are unaffected by the loader's copyright.