KubeJS

KubeJS

Edit recipes, add new custom items, script world events, all in JavaScript!

by
16.1M Downloads
fabricforgeneoforgequiltlibraryutility
Rent Server with this Mod

About this Mod

KubeJS


What does this mod do?

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!

How to use it?

Run the game with mod installed once. It should generate kubejs folder in your minecraft directory with example scripts. startup scripts only get run once when the game loads. Those are for registering items, setting up configs etc. Server/data scripts are loaded when you join a world, those are better for things like clearlag, displaying custom login messages and world/player related things in general.

Video tutorial for 1.19.2

Can I reload scripts?

Yes, use /reload. Note: Not everything is reloadable. Some things require you to restart game, some only world, some work on fly.

I don't know JavaScript / I need help with this mod!

There's examples and pre-made scripts on KubeJS Wiki.

I have a question / suggestion / bug report!

If wiki didn't have the answer for what you were looking for, you can ask questions, make feature suggestions and report bugs here: KubeJS Support

Available Versions

KubeJS NeoForge 2101.7.2-build.368release
MC 1.21, 1.21.1neoforge
May 13, 2026
KubeJS Forge 2001.6.5-build.26release
MC 1.20.1forge
May 1, 2026
KubeJS Fabric 2001.6.5-build.26release
MC 1.20.1fabric, quilt
May 1, 2026
KubeJS NeoForge 2101.7.2-build.363release
MC 1.21.1neoforge
April 29, 2026
KubeJS NeoForge 2101.7.2-build.361release
MC 1.21, 1.21.1neoforge
April 29, 2026

How to Install KubeJS on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).

3

Install Mod

Open the mod browser in the dashboard and search for "KubeJS". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforgequilt

Minecraft Versions

26.1.2, 1.21.1, 1.21 (+5 more)

Server-side

~ Optional

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

KubeJS server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.

Is KubeJS compatible with fabric and forge and neoforge and quilt?

KubeJS officially supports fabric, forge, neoforge, quilt for Minecraft 26.1.2, 1.21.1, 1.21. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with KubeJS – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if KubeJS consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install KubeJS with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Optional

Supported Versions

26.1.21.21.11.211.20.41.20.11.19.21.191.18.2