Compatibility
Minecraft: Java Edition
1.21.4
Platforms
Links
Creators
Details
Licensed MIT
Published 3 weeks ago
Updated 4 weeks ago
MicroClass adds in-game commands for compiling and loading java class on fly.
/microclazz load <filePath>
- Load a class from a .class or .java file.
Tip: There are example Java scripts you can try yourself to see how it works!
/microclazz unload <filePath>
- Unload a previously loaded class.
/microclazz invoke <filePath> <method>
- Invoke a method from a loaded class.
/microclazz list
- List all currently loaded classes.
There's examples java you can try yourself.
Script Lifecycle
onScriptLoad()– Called when a script is successfully loadedonScriptUnLoad()– Called when a script is unloaded
These hooks let scripts initialize or clean up resources dynamically.



