EventJS
by ZZZank
EventJS replaces the native event listening method in KubeJS so that event listeners can be reloaded without restarting the game, and it is built for Forge.
What it does
Normally a KubeJS script that listens to a Forge event stays registered until the whole game restarts. EventJS adds a reloadable native events layer: a listener can be added, changed or removed while the game runs, and a reload applies the change. The layer is exposed as NativeEvents and is available in three script types, client, server and startup, so a listener can be limited to the side where it has to run. A client-only listener in a client script never fires on the server.
The mod requires KubeJS, and it is published only for Forge, across two release versions: 1.16.5 and 1.20.1. The latest file is 1.4.0 for 1.20.1, released on 2025-05-27. Installation covers the server and each player's game. The code is open source under the GNU General Public License v3.0 or later, and the source code and issue tracker are public.
Key features
Reloadable native events
Forge event listeners set up in scripts can be reloaded without relaunching the game.
NativeEvents in three script types
The NativeEvents API works in client, server and startup scripts, so each listener runs where it is declared.
Sided event listening
A listener written in a client script only fires on the client, and one in a server script only fires on the server.
No new scripting to learn
Existing KubeJS scripts keep their event syntax, and the reloadable layer is used by installing the mod.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Who it’s for: Pack developers and server owners who use KubeJS scripts for Forge events on Minecraft 1.16.5 or 1.20.1 and want to avoid full restarts while editing listeners.
Questions
Does EventJS need KubeJS to run?
Does EventJS have to be installed on both sides?
Which game versions does EventJS cover?
In the catalog
EventJS is one of 36,990 Utility mods on ModsFinder, and one of 14,575 Utility mods for Forge. 34,764 mods support Minecraft 1.20.1.
More from ZZZank
Similar mods
What the author says
is a KubeJS addon that adds reloadable native events for KubeJS. By default, EventJS will replace the original native event listening method to make it reloadable. So you actually don't need to learn anything new in order to use EventJS, just install it and you Forge event listening is reloadable now.
Official listing
- Modrinth page
- modrinth.com/mod/eventjs
- Owner
- ZZZank
- Published
- 2025-05-27
- Updated on Modrinth
- 2025-05-27
- Facts verified
- 2026-10-15
