Описание
# KubeJS Generator
**A visual recipe editor that writes [KubeJS](https://modrinth.com/mod/kubejs) scripts**
This is a development tool, intended for modpack authors and
server operators building custom recipes. It does not add any content or
gameplay changes on its own.
## Supported recipe types
| Mod | Recipe types |
|---|---|
| Minecraft | Shaped Crafting, Shapeless Crafting, Smelting, Blasting, Smoking, Campfire Cooking, Stonecutting, Smithing (Transform/Trim), Potion Brewing¹ |
| [Create](https://modrinth.com/mod/create) | Crushing, Milling, Mixing, Compacting, Pressing, Cutting, Deploying, Filling, Emptying, Splashing, Haunting, Sandpaper Polishing, Mechanical Crafting, Sequenced Assembly |
| [Mekanism](https://modrinth.com/mod/mekanism) | Enriching, Crushing, Compressing, Combining, Purifying, Sawing, Smelting, Injecting, Oxidizing, Dissolution, Crystallizing, Chemical Infusing, Metallurgic Infusing, Energy Conversion |
¹ Requires the [MoreJS](https://kubejs.com/wiki/addons/morejs) addon.
## How it works
1. Press `K` in-game to open the editor.
2. **+ Add Recipe** to pick a recipe type
3. Click a slot to search or type an id, set a tag/fluid, count, chance, or
data components. Right-click a slot to clear it
4. Set recipe parameters on the side panel
5. Hit **Export** and review the generated files, then write them to
`kubejs/server_scripts/`.
## Adding your own recipe types
Third-party mods or datapacks can register their own recipe types by dropping a JSON layout file under
`assets//kjsgen_layouts/` (slot positions, decorations, and a
template string with `{slot:KEY}` / `{inputs}` / `{outputs}` / `{param:KEY}`
placeholders), or by firing a Java codegen handler off
`RegisterRecipeTypesEvent` on the mod bus. See the project GitHub for the
full addon API reference