File Details
more_events_js-1.0.8-all.jar
- R
- Dec 6, 2025
- 4.67 MB
- 8
- 1.20.1
- Forge
File Name
more_events_js-1.0.8-all.jar
Supported Versions
- 1.20.1
Curse Maven Snippet
✨ New Features
Native Java Support
Now you can write pure Java files directly in KubeJS's startup, server, and client folders
Java files are automatically compiled and loaded to classpath during game startup
Supports full Java syntax and features
Automatic Classpath Management
Automatically scans all mods in the mods folder on startup
Automatically adds mod classes to compilation classpath
No manual classpath dependency configuration required
📝 Usage Instructions
1. Create Java Files
Create .java files in any of these folders:
kubejs/startup_scripts/
kubejs/server_scripts/
kubejs/client_scripts/
2. Write Initialization Method
Each Java class must include the following initialization method:
Item Registration Example:
public class MyItems {
public static void init() {
// Register items to event bus
ITEMS.register(eventBus);
}
}
Event Listening Example:
public class EventListeners {
public static void init() {
// Register to MinecraftForge event bus
MinecraftForge.EVENT_BUS.register(this);
}
}
⚙️ Technical Requirements
Java files must use UTF-8 encoding
Must contain public static void init() method
Supports standard Java package structure and import statements
🔄 Backward Compatibility
Fully compatible with existing JavaScript scripts
Java and JavaScript files can coexist and work together

