About KubeJS
KubeJS is a utility and library mod designed for Minecraft Java Edition that allows you to script custom game behavior using JavaScript. Instead of writing separate Java mods or dealing with rigid configuration files, you can place standard scripts directly into your instance directory. The mod generates a dedicated folder structure that splits your code into startup logic and runtime data handlers, keeping your adjustments neatly organized from your very first launch.
In practical gameplay, the mod gives you direct control over core mechanics and server management. You can register entirely new blocks and items, adjust crafting recipes, edit tags, and modify worldgen parameters. On multiplayer servers, scripts can broadcast custom login messages, manage player events, and clear lag automatically. You can also tie custom handlers into quest mods, shaping how players progress and interact with various objectives throughout their world.
This mod suits pack builders, server administrators, and curious players who want deep control over their game without compiling full mods. If you already understand basic JavaScript or are comfortable modifying sample files, you can quickly implement your own custom recipes and system messages. Even if you are completely new to scripting, the mod provides starter examples and community resources to help you learn how each event works.
Within a custom modpack, KubeJS acts as the primary connective tissue between disparate mods. It lets you unify conflicting recipes, balance progression lines, and ensure item tags match properly across your collection. Because it supports multiple mod loaders including Fabric, Forge, NeoForge, and Quilt, it integrates smoothly into modern modpacks, allowing creators to tailor world generation and player progression to match their exact design goals.
Features
- Write JavaScript code to modify recipes and alter item or block tags.
- Register new custom items and blocks directly into your game.
- Set up startup scripts that run once during game loading.
- Execute server and data scripts when connecting to a world.
- Create custom handlers designed to work alongside quest mods.
- Manage worldgen changes and schedule clearlag routines for servers.
- Reload eligible server and data scripts using the /reload command.
Tips
- Start by launching Minecraft once with the mod installed to generate the kubejs directory and example scripts.
- Place item registrations and configs in startup scripts, reserving server scripts for player messages and world tasks.
- Test data script changes quickly with /reload, but remember that registering new items requires restarting the game.
- Ensure required dependencies Rhino and Better Advanced Tooltips are installed before adding your scripts.
How to install
- Install Fabric / Forge / NeoForge / Quilt for your Minecraft version (use the official installer).
- Download the file that matches your Minecraft version and Fabric / Forge / NeoForge / Quilt.
- Also install: Better Advanced Tooltips, Rhino.
- Open the .minecraft folder and put the file into the "mods" folder (create it if missing).
- Launch Minecraft with the Fabric / Forge / NeoForge / Quilt profile.
FAQ
Which mod loaders and Minecraft versions are compatible with KubeJS?
KubeJS supports Fabric, Forge, NeoForge, and Quilt loaders across eight Minecraft versions ranging from 1.18.2 to 26.1.2. Compatible releases include 1.19.2, 1.20.1, 1.20.4, 1.21, 1.21.1, and 26.1.2.
Does KubeJS need to be installed on the client or the server?
Both client-side and server-side installations are optional depending on your needs. You can run it on a dedicated server for server management, on a client instance, or on both for custom content.
What dependencies are required to run KubeJS?
The mod requires both Rhino and Better Advanced Tooltips to function properly. Make sure these companion mods are present in your mods folder before launching your game.

