Wsamiaw Scripting
Java-based scripts compiled inside the client. Each script is a ClickGUI module under Scripts.
Requirements
- JDK recommended (runtime
javac; ECJ fallback in the mod jar). - Minecraft 26.2 + Fabric.
- Scripts are fully privileged — only run code you trust.
Script folder
.minecraft/config/Wsamiaw/scripts/YourScript.java
Compiled classes go to a temp folder; you only edit .java files.
Quick start
- Chat:
.script create PluginList - Open Script Writer (ClickGUI → Script or
.script writer) - Save (Ctrl+S) → Compile / Reload (Ctrl+R)
- 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)
host.log/host.notifyhost.player,host.world,host.moduleshost.settings— sliders, toggles, modes, keybinds in ClickGUIhost.packets— send / wrap movement, attack, chat, …host.render— 2D drawing helpers
Chat commands
.script load— compile all scripts.script create <name>— new template file.script enable|disable <name>.script writer— open Script Writer
Full reference
Extended documentation (packets, rendering, examples): scripting.md in this site folder.