MoreEventsJS

It adds more events for kubejs
Back to Files

more_events_js-1.0.8-all.jar

File namemore_events_js-1.0.8-all.jar
Uploader
RainMelodyRainMelody
Uploaded
Dec 6, 2025
Downloads
11
Size
4.7 MB
Mod Loaders
Forge
File ID
7299437
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:moreeventsjs-1388507:7299437")

Learn more about Curse Maven

What's new

✨ 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

This mod has no additional files