Skip to content
LegacyScriptEngine

LeviMC · Docs

LegacyScriptEngine

A plugin engine for running LLSE plugins on LeviLamina

Four script engines Lua, QuickJS, Node.js and Python, each installed with lip as its own package variant.
Runs LLSE plugins Put LLSE plugins in plugins/ and start the server; they are migrated automatically and get a LeviLamina mod manifest.
The LLSE API Events, players, blocks, items, NBT, forms, files, network and more.

Installation

Warning

Before installing the Python engine, you need to install Python first. Here is a list of LSE versions and their required Python versions.

LSE VersionPython Version
>=0.16.23.12.10
>=0.9.0 <0.16.23.12.8
<0.9.03.10.11

Each engine is its own package variant. Version numbers can be found in releases; add @version to install a specific one.

In the server directory, install the engine you need with lip:

Bash
lip install github.com/LiteLDev/LegacyScriptEngine#lua
lip install github.com/LiteLDev/LegacyScriptEngine#quickjs
lip install github.com/LiteLDev/LegacyScriptEngine#nodejs
lip install github.com/LiteLDev/LegacyScriptEngine#python

For example, lip install github.com/LiteLDev/LegacyScriptEngine#lua@0.17.0-rc.2.

For versions older than 0.10.0, you can only download them from releases and decompress them in the plugins/ folder. The Node.js engine then also needs node-prebuilt.zip from LiteLDev/node, decompressed in plugins/legacy-script-engine-nodejs/. Installing through lip doesn't require these steps.

Usage

To access plugin development API hints and scaffolding toolkits, visit the legacy-script-engine-api repository.

  1. Put LLSE plugins directly in plugins/
  2. Run the server, then the plugins will be migrated automatically and get a LeviLamina mod manifest (manifest.json)
  3. To load them, you need to restart the server

Contributing

If you have any questions, please open an issue to discuss it
Help us improve translation here
PRs are welcome

License

GPL-3.0-or-later © LeviMC