KubeJS
by KubeJS
KubeJS lets scripts written in JavaScript change recipes, register new items and blocks, and react to world events on a Minecraft server or client.
What it does
KubeJS lets scripts in the JavaScript language manage a server, register custom blocks and items, edit recipes and tags, add handlers for quest mods and adjust world generation. Scripts live in a kubejs folder that is created the first time the game runs with the mod installed, and the folder comes with example scripts to start from.
Scripts fall into two groups. Startup scripts run once when the game loads and are used for registering items and setting up configuration. Server and data scripts load when a player joins a world and suit tasks such as clearing lag entities, showing custom login messages or handling player-related logic. The /reload command re-runs scripts, but some changes need a full game restart and some need a world reload.
Required dependencies are Architectury API, Better Advanced Tooltips, Fabric API and Rhino. Fabric, Forge, NeoForge and Quilt builds span eight release versions, 1.18.2 – 26.1.2. KubeJS is open source under the GNU Lesser General Public License v3.0 only, and works on either side, and neither needs it.
Key features
Custom items and blocks
Scripts can register new items and blocks at startup, along with their properties and textures.
Recipe and tag editing
Recipes can be added, removed or changed, and item tags can be edited from scripts without touching data packs.
Event scripts
Server and data scripts respond to world and player events when a world loads or a player joins.
Live reloading
The /reload command applies many script changes without restarting, though some changes still need a restart.
Example scripts
The generated kubejs folder includes example scripts, and the KubeJS wiki collects pre-made scripts for common tasks.
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 3
Required by 171 mods
Use cases
Server maintenance
Server owners can clear lag entities, send custom login messages and run player-related logic from data scripts.
Modpack tweaks
Pack authors can change recipes and tags across a modpack from one set of scripts instead of a data pack.
Who it’s for: Modpack authors and server owners who want to script changes in JavaScript. Players with no scripting experience can use the examples and pre-made scripts on the KubeJS wiki.
How it compares
Palladium is a Fabric, Forge, NeoForge and Quilt mod for 1.20.1 that runs client and server and is under All rights reserved, so it is not open source. RecipeDisabler is server-side only and open source under the MIT License, for 1.18.2 – 1.19 on Fabric and Quilt. CraftTweaker is open source under the MIT License, runs client and server, and covers 1.3.2 – 1.21.1 on Fabric, Forge and NeoForge.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| KubeJS | Fabric, Forge, NeoForge and Quilt | 1.18.2 – 26.1.2 | Client or server, optional | 2026-10-15 |
| Palladium | Fabric, Forge, NeoForge and Quilt | 1.20.1 | Client and server | 2026-08-23 |
| RecipeDisabler | Fabric and Quilt | 1.18.2 – 1.19 | Server-side only | 2022-09-13 |
| CraftTweaker | Fabric, Forge and NeoForge | 1.3.2 – 1.21.1 | Client and server | 2026-03-17 |
Questions
Does KubeJS need Fabric API on Forge?
Does a server need KubeJS installed?
Why does a script change not apply after /reload?
Where can the example scripts be found?
In the catalog
KubeJS is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,189 mods support Minecraft 26.1.2.
More from KubeJS
Similar mods
What the author says
This mod lets you create scripts in JavaScript language to manage your server, add new blocks and items, change recipes and tags, add custom handlers for quest mods, change worldgen and more! Run the game with mod installed once. It should generate kubejs folder in your minecraft directory with example scripts…
Official listing
- Modrinth page
- modrinth.com/mod/kubejs
- Owner
- KubeJS
- Published
- 2022-05-24
- Updated on Modrinth
- 2026-10-15
- Facts verified
- 2026-10-15
