KubeJS Generator
一个用于编写 KubeJS 脚本的可视化配方编辑器
这是一个开发工具,专为制作自定义配方的整合包作者和服务器管理员设计。它本身不会添加任何内容或游戏性变更。
支持的配方类型
| Mod |
配方类型 |
| Minecraft |
形状合成、无形状合成、熔炼、烧制、烟熏、营火烹饪、切石、锻造(转换/镶边)、药水酿造¹ |
| Create |
粉碎、研磨、混合、压缩、压制、切割、部署、填充、排空、泼洒、闹鬼、砂纸抛光、机械合成、序列组装 |
| Mekanism |
富集、粉碎、压缩、结合、纯化、锯切、熔炼、注入、氧化、溶解、结晶、化学灌注、冶金灌注、能量转换 |
¹ 需要 MoreJS 插件。
工作原理
- 在游戏中按
K 打开编辑器。
- 点击 + Add Recipe 选择配方类型
- 点击槽位搜索或输入 ID,设置标签/流体、数量、几率或数据组件。右键点击槽位可清空
- 在侧面板设置配方参数
- 点击 Export 查看生成的文件,然后将其写入
kubejs/server_scripts/。
添加自己的配方类型
第三方模组或数据包可以通过将 JSON 布局文件放入 assets/<namespace>/kjsgen_layouts/ 下(包含槽位位置、装饰以及带有 {slot:KEY} / {inputs} / {outputs} / {param:KEY} 占位符的模板字符串),或者通过向模组总线上的 RegisterRecipeTypesEvent 触发 Java 代码生成处理器来注册自己的配方类型。有关完整的插件 API 参考,请参阅项目 GitHub。
KubeJS Generator
A visual recipe editor that writes 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 |
Crushing, Milling, Mixing, Compacting, Pressing, Cutting, Deploying, Filling, Emptying, Splashing, Haunting, Sandpaper Polishing, Mechanical Crafting, Sequenced Assembly |
| Mekanism |
Enriching, Crushing, Compressing, Combining, Purifying, Sawing, Smelting, Injecting, Oxidizing, Dissolution, Crystallizing, Chemical Infusing, Metallurgic Infusing, Energy Conversion |
¹ Requires the MoreJS addon.
How it works
- Press
K in-game to open the editor.
- + Add Recipe to pick a recipe type
- 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
- Set recipe parameters on the side panel
- 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/<namespace>/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
评论 0
登录后参与评分
还没有评论,来抢沙发吧