Wsamiaw Scripting

Java-based scripts compiled inside the client. Each script is a ClickGUI module under Scripts.

Requirements

Script folder

.minecraft/config/Wsamiaw/scripts/YourScript.java

Compiled classes go to a temp folder; you only edit .java files.

Quick start

  1. Chat: .script create PluginList
  2. Open Script Writer (ClickGUI → Script or .script writer)
  3. Save (Ctrl+S) → Compile / Reload (Ctrl+R)
  4. ClickGUI → Scripts → enable your module
void onEnable() {
    host.log("&aScript enabled");
}

void onUpdate(UpdateEvent e) {
    // your logic
}

Snippet vs full class

Without extends ScriptBase, the engine wraps your file automatically (sc_name_hash). With extends ScriptBase, you compile a full class and manage imports yourself.

Common hooks

onLoad, onEnable, onDisable, onUpdate, onPacket, onRender2D, onKey, onAttack, onWorldLoad, …

Hooks run only while the script module is enabled.

host API (overview)

Chat commands

Full reference

Extended documentation (packets, rendering, examples): scripting.md in this site folder.