跳到正文

KubeJs Addition

作者:edgemq

KJSAddition is a small client-side helper for Forge 1.20.1 modpacks(Extended Crafting,Botania altar crafts)

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

KJSAddition is a small client-side helper for Forge 1.20.1 modpacks. It looks at a real crafting table in the world, reads the items you placed there, and turns them into a KubeJS recipe snippet.

The goal is simple: instead of manually rewriting a 9×9 or 11×11 grid into JavaScript, you build the recipe in-game, scan it, and get ready-to-edit KubeJS code in your clipboard and in a generated file.

Features

  • Generates Extended Crafting recipes:
    • shaped_table
    • shapeless_table
    • regular 3×3, 5×5, 7×7, 9×9, and 11×11 tables
    • auto table variants when the block exposes a compatible inventory
  • Detects the recipe tier from the filled grid size.
  • Trims empty borders so shaped recipes stay compact.
  • Lets you choose the output item by holding it in your main hand after scanning.
  • Falls back to a minecraft:barrier TODO output if no result is selected within 10 seconds.
  • Copies the generated recipe to your clipboard.
  • Appends recipes to a KubeJS file without duplicating existing entries.
  • Preserves NBT on outputs and ingredients with Item.of(...).
  • Handles extendedcrafting:singularity with its Id NBT.
  • Generates item IDs by default, not forge tags. Tags can still be enabled manually.

    Commands

    /recipemaker scan
     

    Starts a 10-second scan window. For Extended Crafting, open the table and look at it. For Botania, sneak and right-click a Runic Altar.

    /recipemaker cancel
     

    Cancels the active scan.

    /recipemaker status
     

    Shows the current recipe mode and tag setting.

    /recipemaker mode shaped
    /recipemaker mode shapeless
     

    Switches between shaped and shapeless recipe output.

    /recipemaker tags on
    /recipemaker tags off
     

    Enables or disables tag-based ingredients. The default is off, so generated recipes are direct and predictable.

    Output Files

    Extended Crafting:

    kubejs/kjsadditions/generated_recipes.js
    
     

    Botania:

    kubejs/kjsadditions/generated_botania_recipes.js

常见问题

KubeJs Addition 支持哪些 Minecraft 版本?

KubeJs Addition 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

KubeJs Addition 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

edgemq 的其他作品

查看全部 →