promotional bannermobile promotional banner

MoreEventsJS

It adds more events for kubejs

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

Forge

implementation fg.deobf("curse.maven:moreeventsjs-1388507:7299437")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

✨ 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