KubeJS

KubeJS

Mod

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

Client or server LibraryUtility

215.6k downloads
125 followers
Created2 years ago
Updated8 days ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

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.

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.

How does this mod work?

It uses Rhino, a JavaScript engine originally by Mozilla.

Ok, but what if it.. doesn't work?

You can report issues on Here.

I have more questions/suggestions!

If wiki didn't have the answer for what you were looking for, you can join the Discord server and ask for help in one of the #support channels!

External resources



Project members

KubeJS

KubeJS

Organization


Technical information

License
LGPL-3.0-only
Client side
optional
Server side
optional
Project ID