Community listing page, reviews may not be monitored by the author.
Alloy Smelter Js
No reviews yet
An add-on for Alloy Smelter that provides KubeJS registration entry points for custom alloy furnaces.
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Alloy Smelter Js
An add-on for Alloy Smelter that provides KubeJS registration entry points for custom alloy furnaces.must be installed on both client and server.
Core Features
- Custom alloy furnaces: Register furnaces of any tier via
StartupEvents.registry("alloy_smelter", ...), supportingtier,recipeType,brickTag,coreBlock,normalFuel, and more. Higher tiers automatically inherit the original recipes from every lower tier, matching the original mod's tier lookup. - Custom controller blocks: A
forge_controllerblock type with independently configurable front/top/side/lit textures, and.fluidCapacity(mB)to override the default fluid capacity. - Data-driven recipes: The
alloy_smelter_js:smeltingrecipe type;requiredTierandrecipeTypematch by OR;otherRecipeTypereuses vanilla cooking recipes. - Dedicated JEI category: Each custom controller gets its own JEI category page listing all recipes it accepts (add-on recipes + inherited original recipes +
otherRecipeTypecooking recipes).
New in 1.1
AlloySmelterEvent.workingTick: A server-side event fired once per game tick while the controller islit=true(including when lit with no active recipe). Upgrade acceleration does not multiply the event frequency. Exposes facing, tier, progress, recipe time, remaining fuel, speed/fuel multipliers, stored fluid, and more.- Four player-only upgrade slots: Located to the right of the main GUI, one item per slot. Matched by item tag (NBT is not checked).
fuel_upgrade_tier1~5adds +50% burn duration per level;effect_upgrade_tier1~5adds +50% processing speed per level; all four slots stack additively. Speed is implemented via extra block-entity ticks, so 1.5× manifests as alternating bonus ticks. Automation (pipes, hoppers) cannot access upgrade slots, and breaking the controller drops the upgrade items. - Fluid fuels: Register generic fuels with
$AlloySmelterApi.fluidFuel(fluid, ticksPer100mB), or per-machine fuels with.specialFluidFuel(...)(takes priority over generic and bypassesnormalFuel). Only fluids recognized as fuels may enter the tank, and fluids cannot be mixed; the Forge fluid capability is exposed only on the four horizontal sides, not top/bottom. The fuel slot auto-drains Forge fluid containers (buckets require at least 1000 mB of space); below 100 mB the fluid is kept and solid fuel is attempted instead.
Fixes for the Original Alloy Smelter
- Quantity-matching Mixin: The original recipe requires every occupied input slot to meet its required count before smelting can start or continue, with consumption order matching quantity matching (this bug was fixed in the 1.21.1 upstream mod, so this feature is absent on 1.21.1); all alternatives of a tag ingredient carry the same count in the JEI pages and recipe sync; required counts are kept separate from Forge's ingredient cache so they are not reset when tags are invalidated.
- Capability initialization fix: The original Forge controller would NPE and crash the server if a Refined Storage importer queried its output handler before
onLoad. The add-on initializes all four original item capabilities at construction, retains them acrossonLoad, and handles invalidation/revival. The original top/bottom/side inventory rules are preserved.
Alloy Smelter Js
请到具体的版本分支中查看模组代码、依赖模组
Alloy Smelter 的附属模组,为 KubeJS 提供自定义合金炉的注册入口。客户端与服务端都需安装。
核心能力
- 自定义合金炉:通过
StartupEvents.registry("alloy_smelter", ...)注册任意层级的炉子,支持tier、recipeType、brickTag、coreBlock、normalFuel等配置。高 tier 自动继承低 tier 的原版配方,与原版层级查找一致。 - 自定义控制器方块:
forge_controller方块类型,可独立设置四面/顶部/侧面/点亮态纹理,并可用.fluidCapacity(mB)覆盖默认流体容量。 - 数据驱动配方:
alloy_smelter_js:smelting配方类型,requiredTier与recipeType按 OR 匹配,otherRecipeType可复用原版烹饪配方。 - 独立 JEI 类别:每个自定义控制器在 JEI 中有独立分类页,包含该炉可接受的全部配方(附属配方 + 继承的原版配方 +
otherRecipeType烹饪配方)。
1.1 新增
AlloySmelterEvent.workingTick:服务端事件,控制器lit=true时每 tick 触发一次(含"已点亮但无活跃配方"),升级加速不会重复触发。可读取朝向、tier、进度、配方时长、燃料余量、速度/燃料倍率、储存流体等。- 四个玩家专属强化槽:位于主界面右侧,每槽单物品。按 item tag 匹配(不查 NBT),
fuel_upgrade_tier1~5每级 +50% 燃烧时长,effect_upgrade_tier1~5每级 +50% 处理速度,四槽加算。速度采用"额外方块实体 tick"实现,1.5× 表现为交替补 tick。自动化(管道/漏斗)无法访问强化槽,拆除控制器会掉落强化物品。 - 流体燃料:
$AlloySmelterApi.fluidFuel(fluid, ticksPer100mB)注册通用燃料,或.specialFluidFuel(...)注册单机专属燃料(优先于通用、绕过normalFuel)。只有被识别为燃料的流体可入罐,不能混装;Forge 流体能力只暴露在四个水平面,上下不暴露。燃料槽可自动倒入 Forge 流体容器(桶需至少 1000 mB 空间),不足 100 mB 时保留并转而尝试固体燃料。
对原版 Alloy Smelter 的修复
- 数量匹配 Mixin:原版配方要求每个占用输入槽达到所需数量才能开始/继续,消耗顺序与数量匹配一致(此bug在1.21.1被模组本体修复,固1.21.1本模组没有这项功能);tag 所有备选项在 JEI 页面与配方同步中携带相同数量;所需数量与 Forge ingredient 缓存分离,避免 tag 失效时被重置。
- Capability 初始化修复:原版 Forge 控制器在收到
onLoad前被 Refined Storage 导入器查询输出能力时会 NPE 崩服。附属模组改为在构造期初始化四个原版物品能力,跨onLoad保留并处理失效/复活,原版顶/底/侧库存规则不变。
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources