Scripting

write java snippets. the client compiles them at runtime and turns each file into a scripts clickgui module — with toggles settings cloud and local sync and hooks like ontick and onupdate

trust boundary scripts are not sandboxed only run code you wrote or fully trust

Folder & Cloud / Local

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

in game cloud tab then scripts has cloud and local toggles

loading from cloud also saves a local .java copy so it appears under local and scripts clickgui

Quick start

  1. .script create hello creates a template in the scripts folder
  2. edit the file (or paste code via cloud + add + clipboard)
  3. .script load recompile everything
  4. clickgui then scripts then enable hello
void onEnable() {
    host.log("&aScript enabled");
}

void onDisable() {
    host.log("&cScript disabled");
}

void onTick() {
}

Snippet format

if the file does not declare a full public class … extends script the engine wraps your methods in a generated class with host injected. prefer this mode

Lifecycle hooks

MethodWhen
onEnable() / onDisable()Module toggle
onTick() / onTick(TickEvent)Client tick
onUpdate(UpdateEvent e)PRE update — use e.setRotation(yaw, pitch, prio) for silent aim
onPostUpdate(UpdateEvent e)POST update
getCategory()Optional; default Scripts

Hooks only run while the script module is enabled.

ClickGUI settings

Declare property fields at the top of the snippet — they show under the script module in ClickGUI:

wsamiaw.property.properties.ModeProperty mode =
    new wsamiaw.property.properties.ModeProperty("mode", 0, new String[]{"SILENT", "LOCK"});
wsamiaw.property.properties.FloatProperty speed =
    new wsamiaw.property.properties.FloatProperty("rotation-speed", 45f, 1f, 180f);
wsamiaw.property.properties.BooleanProperty teams =
    new wsamiaw.property.properties.BooleanProperty("teams", true);

void onEnable() {
    host.log("&7mode=" + mode.getModeString());
}

Supported types: BooleanProperty, FloatProperty, IntProperty, ModeProperty, PercentProperty, …

Commands

CommandDescription
.script create <name>New template file
.script loadReload / recompile all
.script load <name>Reload one file
.script listLoaded scripts + ON/OFF
.script folderOpen scripts directory

Bundled: BowAimbot

on startup the client installs bowaimbot.java into your scripts folder enable it under scripts draw a bow and aim players

If Apply fails with a compile error, run .script load after updating the client so the bundled file refreshes.

Compile tips

Full offline notes: scripting-reference.html