KubeX
by wheedo07
KubeX is a NeoForge library for building KubeJS scripts in a dedicated workspace, with source-level debugging and typings for scripts written in JavaScript or TypeScript.
What it does
The mod provides a development toolkit for KubeJS. It sets up a workspace under kubejs/ where scripts are kept as source, built with esbuild, and converted to the output that Rhino runs, then synchronized into the final game files. Rhino compatibility is handled in a post-processing step, so scripts written in TypeScript behave the way they do in the game.
During development, source maps link runtime errors back to the original lines, and a debug mode reports errors raised inside callbacks. A kubex doctor command checks the workspace, and the rebuild sync can run when the game server starts. ProbeJS, an optional dependency, supplies typings and editor metadata, and KubeX copies the .probe files, .vscode settings and jsconfig.json into the workspace so the editor can use them. Exported JAR files include the processed scripts, assets and data, and a small plugin loads them. Such a JAR requires both KubeJS and KubeX.
Key features
JavaScript and TypeScript workspace
Scripts can be written in JavaScript or TypeScript and built into the form that KubeJS loads.
Source map support
Errors point back to the original source lines instead of the compiled output, which makes script problems easier to trace.
Debug mode for callbacks
A debug mode reports errors raised inside callbacks, so failures in event handlers are visible during development.
Editor typings
With ProbeJS installed, the workspace receives typings, editor metadata and a jsconfig.json file for autocomplete.
Exportable script packs
Processed scripts, assets and data can be packed into a JAR that a small plugin loads at startup.
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.
How it compares
Box3JS is an open source NeoForge library for 1.21.1, licensed under the Apache License 2.0, and it works on the client or the server, with either side optional. NeoGeckoJS is a NeoForge library for 1.21.1 under a custom license that is not open source, and it must be installed on both the client and the server. KubeX is open source under the MIT License, supports NeoForge 1.21.1 only, and the client requires it while the server may skip it.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| KubeX | NeoForge | 1.21.1 | Client required, server optional | 2026-10-09 |
| Box3JS | NeoForge | 1.21.1 | Client or server, optional | 2026-05-22 |
| NeoGeckoJS | NeoForge | 1.21.1 | Client and server | 2026-06-15 |
Questions
Does KubeX need KubeJS?
Does the server need KubeX installed?
What does ProbeJS add?
Which game versions does KubeX support?
In the catalog
KubeX is one of 3,514 Library mods on ModsFinder, and one of 1,449 Library mods for NeoForge. 32,366 mods support Minecraft 1.21.1.
Similar mods
What the author says
KubeX is a development workspace for KubeJS. It keeps your source code in kubex/, builds it with esbuild, converts the output for Rhino/KubeJS, and synchronizes the final files into kubejs/.
Official listing
- Modrinth page
- modrinth.com/mod/kubex
- Owner
- wheedo07
- Published
- 2026-07-23
- Updated on Modrinth
- 2026-10-09
- Facts verified
- 2026-10-15
