
Description
KubeJS Lab turns KubeJS into something you can click through. Type /kjslab in game, open the link in chat, and your browser shows an editor for your pack: recipes, items, blocks, loot tables, tags and rules, all as forms with item pickers and icons.
Say you want iron nuggets to come out of gravel in a furnace. You pick "New recipe", choose Smelting, put gravel in the input and nuggets in the output, and press save. The editor shows you the file it is about to write, writes it to kubejs/, and reloads. That's it.
What it writes is ordinary KubeJS. The files sit in your kubejs/ folder like any hand-written script, so you can open them elsewhere, ship them with your pack, and remove KubeJS Lab later without anything breaking.
This is a beta. It works, but it's new. Keep a backup of your kubejs/ folder and report what goes wrong on the issue tracker. The source is on GitHub.
It knows your pack
The editor reads recipe types, events, registries and methods from the game that is running. A recipe type from some addon gets a form even though nobody wrote one for it, and every picker lists the items, blocks, fluids and tags that are actually in your pack.
What you can make
- Recipes of every type in the pack, addons included. A recipe browser lists every loaded recipe, so you can also change, remove, replace or copy existing ones.
- Items, blocks and fluids of your own, with names, tooltips, properties and a PNG texture you upload. Tool tiers and creative tabs too.
- Loot tables with pools, functions and conditions. A simulator rolls a table many times and tells you how often each drop shows up. Block drops, mob drops and global loot modifiers are covered.
- Tags, with icons for everything in them.
- Rules written as sentences: "when a player breaks this block, give them that item", "every 30 seconds, run this command".
- Spawn rules, custom commands, hiding things in JEI / EMI / REI, translations, key bindings.
- Data files such as biome changes, ores, enchantments, advancements, damage types, trims, paintings and sounds.
A "My pack" page collects everything your pack changes as cards, and clicking one opens the form it came from.
For people who do write code
There is a full code editor (Monaco, the one from VS Code) with completion and types generated from your own pack, and a block editor based on Blockly that converts code to blocks and back. Scripts get a syntax check before saving, and KubeJS errors after a reload point to file and line.
A built-in wiki covers every event, recipe type, method and registry of the running pack, with real examples from your recipes.
Mistakes are cheap
Each save keeps the previous version, so you can compare and go back. Deleted files land in a trash outside kubejs/. If a file changes on disk while you have it open, you get a diff instead of an overwrite.
On a server
/kjslab works on dedicated servers. The editor opens on your own machine and sends changes to the server through the normal game connection, so there's no FTP and no extra port. By default it needs op level 2; with a permission mod like LuckPerms you can give out reading, writing per script folder and reloading separately. Every change is written to an audit log.
The editor's web server only listens on 127.0.0.1, and each link carries a token that is valid for your session only.
Requirements
- Minecraft 1.21.1 with NeoForge 21.1
- KubeJS 7 (2101.7)
- Any current browser. Nothing is loaded from the internet.
Questions
Do I need to know JavaScript? No. The forms cover the common things. The code editor is there for when you want it.
Do players need it? Only whoever edits the pack needs it on their client; players without it can still join the server. And because the scripts are plain KubeJS, a finished pack can drop KubeJS Lab entirely.
Will it mess up my existing scripts? It only changes files you save from it, always shows you the result first, and keeps the old version. Code it can't show as a form or as blocks stays as it is.
Is this an official KubeJS project? No, it's an independent mod by a different author. Questions about your own scripts are best asked on the KubeJS Discord; problems with the editor go to the issue tracker.
Which languages? English and German for now. Translations are welcome on GitHub.














