Skip to main content

One File, One Module

Each .lua file in the scripts folder becomes one toggle module. Metadata controls the module name and description:
Scripts are loaded during Wynn startup and on ;scripts reload. Syntax errors prevent that file from registering; runtime errors disable only the owning script module.

Globals

The runtime exposes these globals:

Return Values

Game-state APIs return nil when Minecraft state is unavailable:
Most structured return values are script-accessible tables with fields, functions, or both. Raw Minecraft objects are available through selected raw() methods or Java.mc() when direct interop is needed.