Skip to content

[SI] SingularityIteration-0.1.7.15-beta

Pre-release
Pre-release

Choose a tag to compare

@2132937983 2132937983 released this 30 Sep 18:19
· 4 commits to 0.1.7.15-beta since this release

更新日志 v0.1.7.15

杂交农业对齐 IC2 Experimental

  • 按本地 IC2 2.8.221-ex112 复原 52 种对应作物的等级、五属性、阶段、环境要求与收成;保留钛、铀等项目扩展。
  • 恢复 256 tick 作物周期、环境供需及低环境死亡、四亲本加权杂交、遗传变异、单株扩散、杂草侵占和 Weed-EX 防护。
  • 补全双架杂交、右键收获、左键取种、深层矿物根系、手动补水/施肥/除草剂;修复地狱疣积累进度却不长阶段。基础花卉和蘑菇每次消耗 4 个种植物。
  • 修正高斯收成及逐份副产物,移除空袋复制活株、种植返袋、重复增产和树苗额外掉原木;恢复红麦信号/发光、毒花、食人花、疣类转化等行为。
  • 补齐小堆钻石粉、末影珍珠粉、牛奶疣、油莓、Bob 浆果和关联粉末资源。
  • 对齐分析仪逐级收费和输出等待,并支持附属种子接口;对齐管理器/收割机逐点扫描、耗能、补给、水箱、升级槽和界面。
  • 保留旧注册 ID 和种子属性;旧格式 IC2 作物首次加载仅清零采用旧单位的阶段进度。作物架现在要求耕地,旧矿物直种布局需调整。
  • 新增 15 项农业服务端回归测试;完整范围、迁移规则与验证边界见 实施记录。

地热发电机对齐核查(2026-09-30)

本节为核查结论,本轮未改动地热发电机代码。

  • 对齐基准为 IC2 1.12.2 TileEntityGeoGenerator + TileEntityBaseGenerator,以及重构前 source/用作修复2/.../mio_icif_geo_generator.java。
  • 性质参数已对齐:发电 20 EU/t(原版 super(20.0D, ...) 对应 ENERGY_GENERATION_RATE = 20L)、储能 2400、LV 电压与 32 EU/packet 输出包、岩浆罐 8000 mB、只接受岩浆、10 EU/mB 消耗比(原版 drainInternal(2)/tick × 20 EU 等价)、每桶总发电 10000 EU、以及输入(27,21)/输出(27,54)/电池(117,49) 的槽位坐标。
  • 未对齐项:balance/energyfix/generator/geothermal 配置乘数缺失(现为硬编码 20)、Generators/GeothermalLoop.ogg 运行音效未实现、破坏时 1000 mB 岩浆泄漏(FluidSpilledEvent)未实现。
  • 未接管路径存在燃料丢失:现为「先预扣整桶、再倒计时」模型,储能满时 generateEnergy() 不执行但 burnTime 仍递减,归零后直接清除未发电余量;中途出现满仓 tick 会导致每批数百 mB 岩浆凭空消失且不产 EU。原版以 needsFuel() / isConverting() 保证满仓时一滴都不抽。该缺陷与 用作修复2 一致,属历史遗留而非本轮重构引入。
  • 接管路径新增 checkNearbyLavaBlocks() 邻接熔岩发电(1 EU/t/面),与 source/用作修复/SCEX-R28.md:11「开启接管时相邻世界熔岩不发电」的已验收契约冲突;邻接熔岩发电属 SI 自有扩展,IC2 原版无此机制,未接管路径保留该扩展属既定设计。此项需确认是回归还是有意的契约升级。
  • 其他:mio_icif_Block_Geo_Generator.java:28 注释「每桶岩浆发电量 40,000FE」有误,实际常量为 ENERGY_PER_BUCKET = 10000;父类改为 AbstractGeneratorBlockEntity 后对外供电改由 EnergyCompatibility.findEuStorage / pushDirect 接管。文件当前编译无错误。

热核取热链路梳理(2026-09-30)

本节为梳理与命名澄清,本轮未改动相关代码。

热交换器与热传导器

  • 澄清命名:反应堆内组件「热交换器」为 item_reactor_heat_switch,热交换机槽位用品「热传导器」为 item_heatconductor,两者是不同物品。热交换机源码注释把该槽位称作「热交换器槽」属措辞不准,实际 canPlaceItem 校验的是 mio_icif_resources.HEATCONDUCTOR,热交换器放不进去。
  • 反应堆内热交换器为堆内热量搬运组件:ReactorComponentType.HEAT_EXCHANGER,从燃料棒吸热后沿相邻元件链传递至元件散热片排热,自身储热超限会熔毁。四个型号参数为——基础热交换器 2500 储热、向相邻传 12、向堆体传 4;元件热交换器 5000、向相邻传 36、不向堆体传;反应堆热交换器 5000、不向相邻传、向堆体传 72;高级热交换器 10000、向相邻传 24、向堆体传 8。
  • 「向相邻传递」用于构造燃料棒—热交换器链—元件散热片的导热桥;「向反应堆传递」用于把热灌入堆体,是取热发电布局的关键件。另外 mio_icif_heat_exchanger 虽类名为 heat_exchanger,实为单/三/六联冷却单元,属另一类组件。
  • 热交换机(block_heat_source_fluid)负责把热冷却剂转为冷却剂并输出 HU:每装 1 个热传导器提供 10 HU/t,10 个槽装满封顶 100 HU/t,空机不产热。热冷却剂按 20 HU/mB 折算(FluidReactorCycle 常量与热交换机 HU_PER_MB 一致)。

取热发电效率对照

  • 每 HU 产电:进阶斯特林发电机 0.85;斯特林动能发生机 + 基础动能发电机 0.75(4 HU + 1 mB 水 → 12 KU,基础动能发电机 4 KU = 1 EU);斯特林发电机 0.5;蒸汽发生器 → 汽轮机 → 基础动能发电机约 0.499;配涡轮或双涡轮仅 0.085 / 0.12,因 isNaturalKineticSource() 只认水力与风力,这里的 KU 被判为人工动能而遭 10% 惩罚。
  • 不使用进阶斯特林发电机时的推荐链路为热交换机 → 斯特林动能发生机 → 基础动能发电机。单组上限 250 EU/t:KU 仅从正面输出,且基础动能发电机 KineticReceiverStorage(10000, 1000) 每 tick 最多接收 1000 KU;对应消耗 333 HU/t 与 83 mB 水/t,产出的等量热水必须持续排走,否则液热槽占满即停机。
  • 若斯特林动能发生机也不用,则斯特林发电机(0.5)与蒸汽链(0.499)基本持平,选斯特林发电机可免去供水、冷凝机、蒸馏水槽堵塞与超压爆炸风险。
  • 公共瓶颈仍在热交换机:单台 100 HU/t 且只从正面输出热,与所选发电方案无关。
  • 验证边界:以上效率为按代码换算推导,目前实机验证只覆盖到反应堆加九台换热机与蒸汽发生器(见 用户九机回流修复),热交换机之后的各条发电链路尚无 GameTest 背书,建议小规模试跑一组再扩容。

建筑泡沫 / 脚手架 / CF 喷枪对齐 IC2 1.12.2(2026-09-30)

本轮以本地 source/IC2Code 1.12.2(industrialcraft-2-2.8.221-ex112)为基准,重构泡沫、脚手架与 CF 喷枪。

建筑泡沫 mio_icif_block_foam

  • 硬化改为对齐 IC2 BlockFoam.updateTick 的随机刻公式:chance = 1/(hardenTime*(16-light)*20) * 4096/randomTickSpeed,hardenTime 普通 300、强化 600;光照取方块自身与相邻方块(方块光)最大值,黑暗下极慢但非绝对不硬化(与源码一致)。
  • 方块属性对齐:硬度 0.01、爆炸抗性 10、羊毛音效;未硬化前无碰撞箱、实体可穿过(对齐 getCollisionBoundingBox 返回 null)。
  • 手持沙子右键立即硬化并消耗 1 个沙子(对齐 onBlockActivated)。
  • 掉落与产物对齐 FoamType:普通泡沫硬化成 CF 墙、破坏不掉落;强化泡沫硬化成强化石(防爆石)、破坏掉落 1 个铁脚手架。

新增方块:CF 墙 build/block_cf_wall

  • 注册 CONSTRUCTION_FOAM_WALL(mio_icif_blocks),作为普通泡沫的硬化产物。
  • 补齐资源:方块状态、方块模型(复用 block_foam 贴图)、物品模型、掉落表、中英文名(建筑泡沫墙 / CF Wall)、mineable/pickaxe 与 needs_stone_tool 标签。

脚手架 mio_icif_block_scaffold

  • 悬空强度对齐 IC2 ScaffoldType:木 2 / 铁 5;项目附加档沿用为钢 8 / 碳纤维 12(对应 IC2 加固木 5、加固铁 12 的延伸区间)。
  • 新增 reinforced 方块状态与右键加固:木质脚手架 +2 根木棍 → 加固(强度 5);铁质脚手架 +1 个铁栅栏 → 加固(强度 12);需位于与地面相连的立柱上,钢/碳纤维档不可加固(对齐 onBlockActivated + isPillar)。
  • 掉落对齐:加固脚手架被破坏时额外返还加固材料(木脚手架 +2 木棍 / 铁脚手架 +1 铁栅栏)。
  • 攀爬对齐 BlockScaffold:改用 entityInside(重置摔落距离、水平限速 ±0.15、潜行 0.08(水中 0.02)、贴墙 0.2、否则 ≥ -0.07)配合 isLadder 实现,并移除旧的 EntityTickEvent 反射式攀爬事件;随机刻改为 1/8 概率兜底检查支撑,放置检查沿用 IC2 的木质强度判定。
  • 同步更新 5 个脚手架方块状态文件(木/铁/钢/碳/钛),加入 reinforced 变体。

CF 喷枪 CFSprayerItem

  • 改为对齐 IC2 ItemSprayer 的流体模型:容量 8000 mB、每方块消耗 100 mB 建筑泡沫流体;在 mio_icif_capacities 注册 Capabilities.FluidHandler.ITEM。
  • 仅保留 IC2 的两种模式:普通(BFS 泛洪最多 10 格)与单格(1 格),Shift+右键切换。
  • 目标识别与放置对齐 sprayFoam:优先识别 脚手架 / 线缆,否则在点击面相邻位置喷洒;铁类脚手架 → 强化泡沫并掉落铁栅栏,木质脚手架 → 普通泡沫;线缆以泡沫封装。
  • 耐久条、悬停提示与创造标签满装载态改按流体量显示。
  • 灌装机(mio_icif_canner_elc)补充喷枪的逻辑改用喷枪流体接口(每次最多注入 1000 mB 建筑泡沫流体)。

迁移与验证

  • 迁移提示:喷枪储量由旧的「耐久度 256 点」改为流体 NBT(FluidId / FluidAmount),旧存档中的喷枪泡沫数值不会迁移,需在灌装机中重新补液;脚手架新增 reinforced 状态,旧存档脚手架默认保持未加固。
  • 本轮改动已逐行复核;Gradle 仅编译 src/main/java(+ core),不含任何历史快照目录。
  • 备注:若 IDE 报出「fillFluid / 四参构造 未定义」之类错误,多为 backup/、source/ 中同包同名的旧类副本被 Java 语言服务器索引所致,已在 .vscode/settings.json 的 java.import.exclusions 中排除这些目录;重启语言服务器后即消失,与源码无关。

Tick 性能与稳定性重构(2026-09-30)

本轮合并 source/修复代码 分支(基准 0.1.7.14-beta,2 个提交、36 个文件)。合并方式为逐处对比搬运,未整文件覆盖:src 侧另有大量本地修改,整文件覆盖会丢失这些改动,因此只搬运本次涉及的调用点,其余一律保留 src 现状。

性能优化

  • 配方查询缓存化:新增 core/runtime/processing/RecipeLookupCache。输入槽的物品、组件与数量与上次相同时直接返回上次结果,跳过 getRecipeFor 的全量遍历;命中结果用 RecipeManager#byKey 做一次哈希校验,/reload 后不会返回失效配方;负结果缓存 NEGATIVE_TTL_TICKS = 20 tick(1 秒),闲置或卡料机器的查询开销降为 1/20;未命中时先试上一次匹配的配方再回退全量检索。
  • 覆盖范围:14 个机器文件、每个调用点独立缓存实例(避免同机器内不同操作互相淘汰)——压缩机、打粉机、提取机、电炉、感应炉、洗矿机、热力离心机、方块切割机、金属成型机(3 种模式)、分子机、高炉(普通 / 高级)、工业工作台、批量合成器。mio_icif_batch_crafter 中一处静态方法调用因无实例保持原样。灌装机的 CannerRecipeCache 属既有实现,不在本轮范围。
  • 机器基类削减每 tick 开销(AbstractProcessingMachineBlockEntity):未安装任何抽入/弹出升级插件时 hasAutomationUpgrade() 直接提前返回,省去方块注册表查找、槽位遍历与相邻方块查询;能量 Profile 结果按实例记忆化一次(standardProcessor,方块类型不会中途改变)。
  • 相邻方块 Capability 查找接入缓存:6 个朝向各建一个 NeoForge BlockCapabilityCache(物品 / 流体各一组),相邻方块变动由引擎侧自动失效刷新;保留「仅当相邻存在 BlockEntity 时才操作」的原有契约,非相邻 6 面的特殊位置与客户端调用仍走原路径。
  • 储罐客户端同步节流:新增 core/runtime/sync/ClientSyncThrottle(MIN_INTERVAL_TICKS = 5)。静止后首次变化立即发送,之后 5 tick 内的连续变化合并为 1 次、在 ServerTickEvent.Post 统一补发,保证最终状态必定送达,HUD 液量最大延迟 5 tick;非主线程调用即时原样发送,已移除的方块自动清理。

缺陷修复与防崩溃

  • 喷气背包多线程并发:JetpackFlightController 移除冗余的 flyingPlayers(该 WeakHashMap 在单人模式被客户端/服务端双线程并发写入,且写入的值在同一次调用中读回、恒等于局部变量);记录飞行 tick 的 ACTIVE_TICKS 拆分为 SERVER_ACTIVE_TICKS / CLIENT_ACTIVE_TICKS 两张 ConcurrentHashMap,修复单人模式下同一 UUID 两端互相覆盖导致的 isFlying() 状态闪烁。
  • 高级量子胸甲:删除只 remove() 从未读取的静态 flyingPlayers 及无用 import。
  • 多方块结构注册表线程安全化:ActiveMultiblocks 的 register / unregister / getStructureAt / getStructureByController / getAllStructures / isControllerAt 全部加 synchronized;getAllStructures 返回 List.copyOf 快照而非实时视图,避免外部遍历时结构变动抛并发修改异常。

注释乱码修复

  • 修复 14 个文件中的 GBK/UTF-8 错乱注释,还原为原始中文/日文;仅处理注释,未触碰代码逻辑与字符串字面量。
  • 交叉校验:转换结果若含乱序字符集则放弃,避免误伤原本正常的中文。个别乱码阶段已丢失字节的字符未做推测(如「完全依靠能工作」漏字),mio_icif_solar_distiller.java 中无法确认还原的 34 处保持原样。

未改动与验证边界

  • 能源网络保持原样:IndependentSiEnergy 等原有逻辑已具备 per-tick 计算上限控制,为避免无实机测试时引发断电或计算异常,本轮未做侵入性改动。
  • 未执行构建:上述结论来自逐文件对照与 IDE 诊断(0 error),非实测结果。上游云端构建虽报 BUILD SUCCESSFUL,但其 Linux 端 lwjgl/netty 为空 JAR 占位,未真正运行客户端。
  • 待实机验证:加工机器连续加工、储罐管道注入与多段组合注入、喷气背包飞行与落地切换、多方块结构成形与拆除。
  • 遗留:乱码注释按日志应为 17 个文件 57 行,本次按乱码特征词定位到 14 个,剩余 3 个未定位(纯注释,不影响运行)。

批量工作台对齐 IC2 1.12.2(2026-09-30)

对齐基准为本地 source/IC2Code 1.12.2(industrialcraft-2-2.8.221-ex112)的 TileEntityBatchCrafter / ContainerBatchCrafter / GuiBatchCrafter / InvSlotUpgrade;对照文件为 mio_icif_batch_crafter、BatchCrafterMenu、mio_icif_gui_batch_crafter、mio_icif_block_batch_crafter、JEIPlugin。

已对齐核查项(本轮结论为一致,未改动)

  • 性质参数:储能 20000 EU、tier 1(= MV)、能耗 2 EU/t、基础周期 40 tick、4 个升级槽、升级属性 Processing / Transformer / EnergyStorage / ItemConsuming / ItemProducing。
  • 槽位结构与坐标:影格 3×3(30+x·18, 17+y·18)、产物槽(124,35)、原料行 9 槽(8+i·18, 84)、容器返还 9 槽(8+i·18, 102)、升级 4 槽(152, 8+i·18)、电池槽(8,62)、GUI 高度 206、进度条(90,35)、产物预览(94,14)。
  • 合成配方 " I "/ACA/HWH(工业工作台 + 高级电路 + 高级机壳 + 锤 + 扳手)、方块硬度 2.0 / 抗性 10.0 / 需正确工具、中英文名(批量工作台 / Batch Crafter)。

执行模型还原

  • 超频模型:改用 StandardProcessingTiming(ops = ceil(1/duration)、ticks = round(duration·ops)),与 IC2 getOpsPerTick / getOperationLength / getEnergyDemand 逐值等价。修复前为「每 tick 加 ceil(1/mult) 点进度、周期恒 40、每次只产 1 件」,1 超频实测口径为 20 tick / 60 EU·件⁻¹,而 IC2 为 28 tick / 84 EU·件⁻¹。容量同步改走 IC2 公式 20000 + 周期×能耗 + 10000/储能升级,并移除 IC2 不存在的 OVERCLOCKER_ENERGY_BONUS;周期长度写入存档(scex_operation_ticks),读档按比例还原进度,超频数变动不会丢进度或溢出。
  • 每 tick 时序:自实现 tickProduction(),还原 IC2 updateEntityServer 顺序——每 tick 只付一次电费、++progress 到达 operationLength 当 tick 即产出、并在周期内执行 operations() 次合成。修复前在到达后的下一 tick 才产出(实际 41 tick/件)且单周期只产出一件。
  • 进度清零条件:仅「影格无配方」清零,输出满 / 缺电 / 原料暂时不足都保留进度;并覆写 checkInputChanged() 为空实现,取消原先「原料槽物品变化即清零」的行为。
  • 容器返还槽:还原 IC2 InvSlot.InvSide.NOTSIDE,不再对侧面开放抽取,也不作为自动输出槽参与 ejector。
  • 产物门禁:产物只写入 CRAFTING_OUTPUT_SLOT,移除原「溢出到 9 个容器槽」的逻辑,恢复 IC2 craftingOutput.canAdd() 的闸门。
  • 原料均摊:balanceIngredients() 改为 StackUtil.balanceStacks 等价实现(组内总量平均分配、跳过持异物槽、写回经 setStackInSlot + setChanged);触发点为每 tick(onTick)、影格变更(matrixChange)、原料行内容变更(新增 createItemHandler 覆写)。修复前为两两 diff/2 的启发式,且唯一触发源 ingredientChanged() 无调用者。
  • 菜单 shift-click:新增 moveIngredientsBalanced(),逐层轮询均摊到所有可接受槽,对应 IC2 ContainerBatchCrafter.handlePlayerSlotShiftClick,替代原先的顺序填槽。
  • 比较器输出:新增 getComparatorLevel() = progress * 15 / 周期,方块侧接 hasAnalogOutputSignal / getAnalogOutputSignal,对齐 IC2 comparator.setUpdate。

每 tick 查询优化

  • canCraft() 增加原料行快照(9 槽的物品、组件与数量),仅在影格变更 / 行内容变更 / 完成一次合成 / 读档后重算,等价于 IC2 的 newChange 语义;稳态时的单 tick 开销由「构造合成容器 + 线性扫描配方表」降为 9 次引用比较。
  • 新增 gridMatches() 静态校验接口,供 JEI 转移使用。

JEI 配方转移

  • 新增 BatchCrafterTransferHandler(对应 IC2 TransferHandlerBatchCrafter):JEI「+」把配方布局写入 3×3 影格模板,经 setCraftingGridStack() 更新,不消耗玩家背包物品(内置 addRecipeTransferHandler 的上槽式实现会搬物品,且被 PhantomSlot.mayPlace 挡住,故改用自定义 handler)。
  • 布局还原较 IC2 更稳:先按 JEI 输入槽顺序铺排并用 gridMatches() 校验;不匹配时对 ShapedRecipe 枚举 3×3 内的全部合法偏移,取第一个真正匹配者;代表物品优先取玩家背包中已有的同类物品。
  • 注册于 JEIPlugin.registerRecipeTransferHandlers:addRecipeTransferHandler(new BatchCrafterTransferHandler(), RecipeTypes.CRAFTING)。

迁移与验证边界

  • 存档兼容:影子格、进度、周期长度均已持久化;周期长度随超频数变化按比例缩放。若原有布局依赖「漏斗抽走容器返还物」或「产物溢出到容器槽」,需改为仅从产物槽取货、容器返还物手动取出。
  • 已验证:gradlew compileJava BUILD SUCCESSFUL;改动均基于源码逐处替换,未整文件覆盖。
  • 待实机冒烟:① 无超频 40 tick/件、80 EU/件;② 2 个超频 → 20 tick/件、约 100 EU/件且一次周期连产;③ 漏斗抽不到容器返还物、产物不流入容器槽;④ shift-click 与管道输入后 9 槽均匀;⑤ JEI「+」写入影格且不扣背包物品。
  • 保留现状:未新增 GameTest;/reload 后同一原料行命中不同配方的边界仍由 RecipeLookupCache 的 20 tick 负缓存与 byKey 校验兜底,行为与 IC2 一致。

作物采集机 / 监护机改对齐 IC2 1.7.10(2026-09-30)

对齐基准由 source/IC2Code 1.12.2(2.8.221-ex112)改换为 source/IC2CodeNew(industrialcraft-2-2.2.828-experimental,1.7.10)。对照文件为 TileEntityCropHavester / TileEntityCropmatron / ContainerCropHavester / ContainerCropmatron 与 TileEntityCrop.harvest_automated / applyFertilizer / applyHydration / applyWeedEx。上一版基于 1.12.2 的参数本次全部按 1.7.10 改写。

采集机 mio_icif_harvest_elc

  • 扫描范围 9×3×9(243)→ 11×3×11(363):水平 ±5、垂直 -1..1,逐格推进顺序与原版 scanX/scanY/scanZ 完全一致。
  • 节奏与耗能:由「每 10 tick 扫描、门槛 21 EU」改为 「每 tick 扫描、门槛 201 EU」;收获耗能 20 → 100 EU/掉落物,装载作物分析仪时每个掉落物再额外 100 EU。
  • 收获判定改为对齐 1.7.10 harvest_automated(boolean optimal):无分析仪时仅需 canBeHarvested() 即收割;装分析仪时进入 optimal 模式,额外要求 growthStage == getOptimalHarvestStage()。(此前 1.12.2 口径为 size == optimal || size == max。)
  • 恢复作物分析仪槽(1 格,仅顶面自动化输入,对齐 InvSlotConsumableId 的 InvSide.TOP);升级槽 4 → 1 格。
  • 升级属性由 Transformer / EnergyStorage / ItemProducing 收窄为仅 ITEM_PRODUCING。
  • 槽位构成为:0–14 收获存储(InvSlot.Access.IO,可插可抽)、15 作物分析仪、16 电池(扩展)、17 升级,共 18 格。

监护机 mio_icif_matron_elc

  • 储能 10000 → 1000 EU(1.7.10 super(1000, 1, 0, 2),罐容量 = 1000 × 2 = 2000)。
  • 扫描范围 → 363,节奏改为每 tick,启动门槛仍为 31 EU(1 扫描 + 3×10 操作)。
  • 除草对齐 applyWeedEx:由「补满到 150」改为**「每次固定 +50,达到 150 后停止」**。
  • 除草剂槽 1 → 7 格;移除除草剂独立空容器输出槽(除草剂为耐久型容器,耗尽即消失,不产生空容器)。
  • 槽位构成为:0 电池(扩展)、1 水容器输入(顶面)、2 空容器输出、3–9 肥料(7)、10–16 除草剂(7)、17–20 升级(4,扩展),共 21 格。
  • 未变项:施肥 +90(上限 100)、浇水补满 200、农田补至 moisture=7、水罐 2000 mB、肥料仅接受专用作物肥料物品、液体容器仅顶面自动化输入。

保留的扩展与实现说明

  • 电池槽(两机各 1 格)与监护机升级槽 4 格为本项目有意保留的扩展——1.7.10 原版两者皆无;升级槽不对自动化开放(对齐原版 InvSlotUpgrade),升级属性沿用 1.12.2 集合(Transformer / EnergyStorage / ItemConsuming / FluidConsuming),并以 isSuitableFor 过滤。
  • 除草剂链路:保留「物品 → weedExTank 缓冲 → 每次消耗 50」;MatronHerbicideItem 即 64 耐久 × 50 值,1 点耐久恰好对应 1 次除草,与 1.7.10 的逐次消耗等价。
  • 分析仪槽数量:1.7.10 的 cropnalyzerSlot 声明为 7 格但仅使用第 0 格(GUI 也只显示 1 格),此处按 1 格实现;分析仪为占位道具,不消耗耐久。
  • 杂草仍由 canBeHarvested() 天然排除(对应原版 CropWeed#canBeHarvested 恒为 false),未使用硬编码判定。

影响与验证边界

  • 迁移提示:两机槽位索引与数量发生变化(采集机 20 → 18、监护机 16 → 21),旧存档中已放置的机器需重新整理物品槽;监护机储能上限由 10000 下调至 1000。
  • 已验证:gradlew compileJava BUILD SUCCESSFUL、0 error。
  • 待实机冒烟:① 采集机无分析仪时按 canBeHarvested 收割、装分析仪后仅收 optimal 尺寸并额外耗电(201 EU/次门槛);② 监护机单次除草 +50、上限 150,除草剂每点耐久对应一次;③ 满电时每 tick 扫描一格、363 tick 一轮。

矿物生成数量平衡(2026-09-30)

以原版 1.21 Java 主矿脉 count 为参照——铜 ore_copper 16、铁 ore_iron_middle 10、金 ore_gold 4、钻石 ore_diamond 7——调整本项目锡、铅、铀、钛、铌的相对稀有度。仅改 minecraft:count,size(单矿脉含矿量)与高度区间保持不变。

调整后数量

矿物 主世界浅层 主世界深层 暮色森林浅层/深层 参照
锡 16 → 12 12 → 2 16/8 → 12/2 铜 16 > 锡 12 > 铁 10
铅 12 → 4 10 → 2 12/6 → 4/2 金 4(另有 ore_gold_lower 1)
铀 8 → 3 6 → 2 4/2 → 3/2 铅 4/2(合计少 1)
铌 4 → 3 3 → 1 4/3 → 3/1 比金 4 更少(最稀有)
钛 20 → 7 20 → 4 20/20 → 7/4 钻石 7 / ore_diamond_buried 4
  • 锡:浅层 16 → 12、深层 12 → 2,合计 14 条矿脉。浅层高于铁的主矿脉 ore_iron_middle(10)、低于铜 ore_copper(16);深层压缩到 2,避免浅层+深层合计反超铜(原 16/12 合计 28 条,即已超过铜)。
  • 铅:由 12 降到 4,与金同量级——原数值约合 ore_gold 的 3 倍,属明显偏多。
  • 铀:浅层 8 → 3、深层 6 → 2,合计 5 条矿脉,低于铅(4/2 = 6 条)。
  • 钛:由 20/20 调整为 7/4,与钻石的 ore_diamond / ore_diamond_buried 逐项对齐(与铌互换档位)。size 为 9,单区块块数约 99。
  • 铌:由 4/3 调整为 3/1,取代钛成为全模组最稀有的矿物(与钛互换档位)。size 为 6,单区块块数约 24。
  • 暮色森林变体:原数值与主世界不一致(铀 4/2、铅深层 6、锡深层 8),本次统一为主世界同一套数量;钛、铌的暮色变体同样与主世界取值一致。

涉及文件

src/main/resources/data/mio_icif/worldgen/placed_feature/ 下 20 个 JSON:tin_ore_placed、tin_ore_deep_placed、tin_ore_twilight_forest_placed、tin_ore_deep_twilight_forest_placed、lead_ore_placed、lead_ore_deep_placed、lead_ore_twilight_forest_placed、lead_ore_deep_twilight_forest_placed、uran_ore_placed、uran_ore_deep_placed、uran_ore_twilight_forest_placed、uran_ore_deep_twilight_forest_placed、titanium_ore_placed、titanium_ore_deep_placed、titanium_ore_twilight_forest_placed、titanium_ore_deep_twilight_forest_placed、niobium_ore_placed、niobium_ore_deep_placed、niobium_ore_twilight_forest_placed、niobium_ore_deep_twilight_forest_placed;对应的 configured_feature 与 neoforge:biome_modifier 未改动。

验证边界

  • 本轮仅改动数据包 JSON 数值,未执行构建、未实机验证。
  • 迁移提示:矿脉数量在区块首次生成时写入,已生成的旧区块不会因本次调整而变化,需新开区块或新区块区域才生效。
  • 上表「浅层 / 深层」为本项目同一矿物拆分出的两条 placed_feature,单区块实际矿脉数应为两者之和(如锡 12 + 2 = 14)。
  • 参照值为原版 Java 1.21 口径;若后续引入 ore_copper_large(滴水石洞 16×20)、ore_iron_upper(山地 90)等生物群系专属加成,实际体感比例会与上表出现偏差。

橡胶树体系 API 暴露(2026-09-30)

将原 common 包内的橡胶木/树脂采集逻辑抽取到 core,并对外暴露接口,方便附属模组开发提取树脂的工具、自定义橡胶木与复用采集流程。

核心逻辑抽取

  • 新增 core/runtime/world/RubberTreeSystem:与注册表内容解耦的纯逻辑,集中实现工具/方块判定、掉落数量掷取、采集(消耗耐久或电能、掉落树脂、清空树脂状态)与随机刻再生。树脂物品由调用方以 Item 传入,故 core 不依赖 common。
  • 再生概率、掉落区间等常量与规则仅此一处维护,方块与 API 共享同一实现,消除了原先 BlockRubberWood 与 mio_icif_have_rub_wood 中两份重复的采集/掉落代码。

新增公开接口(core.api)

  • core.api.world.IRubberTreeAPI:体系入口,提供 getResinItem / createResinStack、isTreeTap / isElectricTreeTap / isRubberWood / hasResin / isTappable / canHarvest / canUseTapOn、tryHarvest / rollResinCount / dropResin / tryRegrowResin / getResinRegrowChance。
  • core.api.world.RubberHarvestResult:采集结果 record(harvested / resinCount)。
  • core.api.block.IRubberWood:橡胶木方块接口(hasResin / isTappable / withResin / canRegrowResin),附属自定义原木实现后即可被本模组采集器统一处理。
  • core.api.item.ITreeTapItem:由空标记接口扩展出默认采集参数 getDurabilityCost()(默认 1)、getResinDropMin()(1)、getResinDropMax()(3),全部为 default,既有实现类无需改动即可编译。
  • MioIcifAPI 新增 getRubberTreeAPI();MioIcifAPI 顶部能力清单与 core.api package-info 同步补充。

实现与接线

  • 新增 common/service/world/RubberTreeAPIImpl:委托 RubberTreeSystem,仅负责绑定树脂物品 mio_icif_resources.HARZ(resource/item_harz)。
  • common/bootstrap/CommonApiServices 增补 getRubberTreeAPI() 的懒加载,沿用既有 Holder/懒加载单例模式。

方块重构

  • BlockRubberWood、mio_icif_have_rub_wood 改 implements IRubberWood,useItemOn 判定改用 RubberTreeSystem.canUseTapOn(校验可采集 + 工具 + 电能),randomTick 改为 RubberTreeSystem.tryRegrowResin。
  • 移除原先基于物品名字符串(itemName.contains("treetap"))的脆弱判定,统一改为 ITreeTapItem 接口判定。

采集器参数

采集器 耐久/次 电能/次 掉落
木质 item_tool_wooden_treetap 1 — 1~3
电动 item_tool_treetap_elc 0 10 EU 2~4
  • mio_icif_treetap_elc 覆盖 ITreeTapItem 参数:getDurabilityCost() = 0、掉落 24;木质沿用默认值 1 点耐久、13 掉落。行为与本轮重构前一致。

兼容性与迁移

  • 行为变更:橡胶木的采集判定由「物品名字符串包含 treetap」改为 ITreeTapItem 接口判定,曾依赖命名约定(名字里带 treetap)的第三方物品不再生效,需改为实现该接口。
  • ITreeTapItem 新增方法均为 default,向后兼容;旧实现类无需修改。
  • 对外 API 为新增,未改动现有方法签名与注册 ID,存档数据不受影响。

涉及文件

  • 新增:core/api/world/IRubberTreeAPI.java、core/api/world/RubberHarvestResult.java、core/api/block/IRubberWood.java、core/runtime/world/RubberTreeSystem.java、common/service/world/RubberTreeAPIImpl.java。
  • 修改:core/api/item/ITreeTapItem.java、core/api/MioIcifAPI.java、core/api/package-info.java、common/bootstrap/CommonApiServices.java、common/block/environment/BlockRubberWood.java、common/block/environment/mio_icif_have_rub_wood.java、common/item/tools/mio_icif_treetap_elc.java。
  • 文档:docs/addon_development_guide.md 新增「10. 橡胶树体系(橡胶木与树脂采集)」并把原 1019 节顺延为 1120;第 3 节 API 表、API 速查表、线程约束与常见错误表同步补充。

验证边界

  • gradlew compileJava BUILD SUCCESSFUL、0 error(仅既有 deprecation 警告)。
  • 未实机冒烟;建议验证:① 木质/电动采集器对 block_rub_wood 与 block_have_rub_wood 的掉落与耗能;② 采集后方块转为无树脂、随机刻按 5% 再生;③ 电动采集器电量不足时不再采集。
  • 橡胶树世界生成(common/world/feature/* 与生物群系修饰符)本次未改动,仍留在 common。

装备特性完全解耦(2026-09-30)

电力装甲的"特性声明 / 状态读写 / Tooltip 渲染 / 特性管理界面 / 命令与网络同步"此前分散在 common 且含多处硬编码,附属模组开发喷气盔甲时会遇到读不到状态、Tooltip 不可点击、模式特性无法切换、背槽无法管理、飞行物理不可复用等问题。本轮将其收敛到 core 公开契约。

core 新增与调整

  • 新增 core.prefab.item.ArmorFeatureState:开关型特性的统一存储(CustomData 键 feat_<key>,未写入时默认启用),与具体物品/注册表无关。
  • 新增 core.prefab.item.ArmorFeatures:统一分发入口——声明查询(features/find/isDeclared/isToggleFeature/isModeFeature)、isEnabled/setEnabled/toggle/cycleMode/toggleOrCycle。
  • 新增 core.prefab.item.ArmorFeatureTooltip:统一的可点击 Tooltip 渲染(开关取反 / 模式切换,命令 /mio_icif toggle <slot> <featureKey>)。
  • 新增 core.api.item.IArmorModeFeatureItem:通用模式型特性切换接口(cycleMode)。
  • IJetpackItem 现继承 IBatteryItem, IArmorModeFeatureItem,新增常量 FEATURE_MODE_KEY,并提供默认 cycleMode(悬停 ↔ 飞行);喷气背包类无需额外代码即被通用界面识别。
  • IItemAPI 新增 isArmorFeatureEnabled / setArmorFeatureEnabled / cycleArmorFeature / getArmorFeatureInfo(此前只能 toggleArmorFeature 写、无法读)。
  • AbstractElectricArmor:Tooltip 改由 ArmorFeatureTooltip 统一渲染(自带点击事件),isFeatureEnabled 委托 ArmorFeatureState,默认值由 false 统一为 true,与 GUI/命令/物品逻辑此前实际使用的语义一致。
  • 飞行底座从 core.runtime.flight 迁移到 core.prefab.flight(JetpackFlightController / JetpackKeyHandler),使附属模组可合法复用推升、悬停、限高与按键输入。

common 调整

  • ArmorFeatureToggle 降级为委托壳(标记 @Deprecated),内部全部转发 core;既有护甲类的 ArmorFeatureToggle.isEnabled(...) 调用无需改动,行为不变。
  • 新增 common.item.armor.ArmorFeatureSlots:统一提供"可管理特性的装备槽"——原版四格 + 可选 Curios back 槽(反射调用 JetpackCuriosAdapter,未装 Curios 自动退化)。
  • 新增 ArmorFeatureCyclePacket 与 mio_icif_Network.sendArmorFeatureCycle(...);ArmorFeatureTogglePacket 的槽位字段由 EquipmentSlot 改为通用槽位标识 String(head/chest/legs/feet/back),并支持"声明槽位与所在槽位不一致时全槽位回退查找"。
  • 特性管理 GUI(mio_icif_gui_armor_features):移除 jetpack_mode 与 IJetpackItem 特判,改为通用开关/循环分发;行数按实际槽位动态计算,纳入 Curios 背槽。
  • ToggleCommand:删除按具体物品类硬编码的 ARMOR_FEATURES 与特性名映射表,特性列表与补全完全来自 ArmorFeatures.features(...),槽位补全增加 back。
  • TooltipInteractionHandler:移除 IJetpackItem 特判,改为通用 ArmorFeatures.toggleOrCycle。
  • JetpackModeSwitchPacket:改为复用 ArmorFeatureSlots + ArmorFeatures.cycleMode,删除自带的 Curios 反射查找。
  • JetpackCuriosAdapter:新增背槽物品的读取/写回(backFeatureStack / writeBackFeatureStack)。
  • mio_icif_chestplate_quantum:jetpack_mode 由开关型声明修正为模式型并携带当前模式名,使其在通用界面中正确显示与切换。
  • 语言文件补充 gui.mio_icif.armor_features.empty_back。

兼容性与迁移

  • 开关默认值统一为"启用":AbstractElectricArmor 默认实现由 false 改为 true;此前只在附属自行覆盖 Tooltip 时表现为 false,属修正不一致。
  • 网络包格式变更:ArmorFeatureTogglePacket 槽位字段 EquipmentSlot → String;客户端与服务端同版本即可,无需存档迁移。
  • ArmorFeatureToggle 及其 FeatureInfo 记录保留但已废弃,请改用 IItemAPI 或 core.prefab 的 ArmorFeatures / ArmorFeatureState / ArmorFeatureTooltip。
  • 旧行为保留:jetpack_mode 仍为悬停↔飞行切换;K 键切换喷气背包模式、Tooltip 点击命令路径、/mio_icif toggle 参数格式不变。

涉及文件

  • core 新增:api/item/IArmorModeFeatureItem.java、prefab/item/ArmorFeatureState.java、prefab/item/ArmorFeatures.java、prefab/item/ArmorFeatureTooltip.java、prefab/flight/JetpackFlightController.java、prefab/flight/JetpackKeyHandler.java。
  • core 修改:api/item/IJetpackItem.java、api/item/IItemAPI.java、prefab/item/AbstractElectricArmor.java;删除 core/runtime/flight/*。
  • common 新增:item/armor/ArmorFeatureSlots.java、network/ArmorFeatureCyclePacket.java。
  • common 修改:item/armor/ArmorFeatureToggle.java、item/armor/mio_icif_armor_elc.java、item/armor/mio_icif_chestplate_quantum.java、service/item/ItemAPIImpl.java、client/screen/mio_icif_gui_armor_features.java、client/TooltipInteractionHandler.java、command/ToggleCommand.java、network/ArmorFeatureTogglePacket.java、network/JetpackModeSwitchPacket.java、network/mio_icif_Network.java、integration/curios/JetpackCuriosAdapter.java、integration/curios/ElectricFlightRingCurio.java、client/mio_icif_ClientEvents.java、event/mio_icif_events.java、network/mio_icif_KeyboardManager.java、network/JetpackKeyStatePacket.java、Singularity_Iteration.java。
  • 资源:assets/mio_icif/lang/zh_cn.json、assets/mio_icif/lang/en_us.json 新增 gui.mio_icif.armor_features.empty_back。
  • 文档:docs/addon_development_guide.md 新增「9.5 装备特性与喷气盔甲」并补充包边界/API 表/查询表/线程约束/常见错误;docs/core_addon_guide.md 新增「7. 物品与装备契约」,包边界表补充装备与飞行底座。

验证边界

  • gradlew compileJava、gradlew checkCoreArchitecture、gradlew compileAddonExampleJava 均 BUILD SUCCESSFUL、0 error(仅既有 deprecation 警告)。
  • 未实机冒烟;建议验证:① 量子/纳米系列 Tooltip 点击开关与模式行;② Alt 界面显示与切换(开关型取反、模式型循环);③ 装 Curios 时背槽喷气背包出现在界面第 5 行并可切模式;④ K 键与 Tooltip 点击两条路径状态一致;⑤ 新物品默认特性为"开"。

电量传递配方 JEI 形状错位修复与电动树脂提取器改无序(2026-09-30)

根因:有序「电量传递」配方在 JEI / EMI 里被画成一行

  • ChargeCarryingRecipe(mio_icif:charge_carrying)此前只 implements CraftingRecipe。合成台、配方书、JEI、EMI 都是靠 instanceof ShapedRecipe 取 getWidth() / getHeight() 才知道真实形状;拿不到形状时只能把 getIngredients() 并排画成一行,于是出现「JEI 显示第一行并排两个材料、实际必须竖着摆才合成」的错位,「+」一键填充同样会填错位置。
  • 修复:ChargeCarryingRecipe 改为 extends ShapedRecipe(super(group, CraftingBookCategory.MISC, pattern, result))。配方 JSON 格式、匹配逻辑、电量结算全部保持不变;getSerializer / assemble / getRemainingItems 继续覆写,matches / canCraftInDimensions / category / getIngredients / isSpecial 交回父类。影响约 60 条有序电量传递配方(各类电动工具)。
  • ChargeCarryingShapelessRecipe(mio_icif:charge_carrying_shapeless)未改动:它仍是模组自身实现,不是原版 ShapelessRecipe。无序配方在查看器里按「一行材料」展示,与无序语义本就一致,不存在错位。

电动树脂提取器配方改为「电量传递-无序」

  • data/mio_icif/recipe/shaped_315_treetap_elc.json → shapeless_315_treetap_elc.json:type 改为 mio_icif:charge_carrying_shapeless,transfer_charge: true 保留,材料为 木龙头 + 小型驱动把手 + 低压导线,三个槽位任意摆放;旧的 1×2 有序配方文件已删除,全项目无残留引用(同一产物不再出现两条配方页)。
  • 排查过程中的临时形态(把木龙头从配方里去掉)已还原,木龙头重新成为必需材料。

闪电能量图标渲染与能量上限夹取(2026-09-30)

  • 常量语义澄清:LIGHTNING_WIDTH/HEIGHT 是图标长宽,LIGHTNING_TEXTURE_X/Y 是图标左上角在图集中的像素位置。修正基类 mio_icif_screen 中 u/v 取反(textureV 误用 LIGHTNING_TEXTURE_X)导致 drawLightningEnergyFill 从错误行采样的写法。
  • 渲染层防线:drawLightningEnergyFill 的填充高度夹取到 LIGHTNING_HEIGHT、drawProgressArrowFill 的填充宽度夹取到 ARROW_WIDTH。即使将来又出现 energy > maxEnergy 的数据源,也只会显示满格,不会向上 / 向右越界采样到图集里其它组件(此前症状为「闪电标志上方被画出一大片图集内容、明显不是 14px」)。
  • 根因治理:CustomEUEnergyStorage.setCapacity 在容量收缩时同步夹取存量(scexSetWholePreservingFraction(min(energy, capacity))),修复「装超频 / 储能升级把电量充到高值 → 取下升级后上限回落、存量不回落」造成的 energy > capacity。独立电网托管的存储沿用 setEnergy 的同一策略(标称容量不作为上限);InternalPayment.cancel 的押金退还不走容量夹取。
  • 行为变化:取下储能 / 超频升级后,超出新上限的部分 EU 会被夹掉(与 IC2 机器缓冲一致);旧存档中已经越界的机器在下次加载时自愈(loadAdditional 的 apiSetEnergy 晚于 recalculateUpgradeStats 执行)。

配方与 JEI 物品表修补(2026-09-30)

  • 光辉铀锭配方改用标签:asp_irradiant_uranium_ingot.json 中的铀锭由写死的 mio_icif:resource/item_uranium_ingot 改为标签 c:ingots/uranium。该标签本模组已在 data/c/tags/item/ingots/uranium.json 提供,自身铀锭的合成行为不变,其他模组的铀锭同样可用。其余以光辉铀锭为材料的配方(asp_irradiant_glass_pane、asp_enriched_sunnarium)未改动。
  • 粗银矿在 JEI 搜不到:根因是 JEI 的物品列表按创造模式物品栏的 displayItems 收集(日志 mezz.jei.library.plugins.vanilla.ingredients.ItemStackListFactory: Items from this group will be missing from the JEI ingredient list),而 mio_icif_resources.RAW_SILVER(resource/item_raw_silver_ore,中文名「粗银矿」,模型 / 贴图 / 汉化齐全、日志无任何相关报错)是唯一没被 output.accept 进创造栏的粗矿物品——粗锡 / 铅 / 铀 / 铌 / 钛都在各自小节里。修复:在 mio_icif_creativeTabs 银小节补 output.accept(mio_icif_resources.RAW_SILVER.get())。
  • 经验:新增物品必须同步 output.accept 进创造栏,否则 JEI 会静默搜不到且不报错;本模组没有「粗银矿方块」(BLOCK_RAW_* 仅锡 / 铅 / 铀 / 铌 / 钛),无需补方块。

涉及文件

  • 代码:common/recipe/charge_carrying/ChargeCarryingRecipe.java、common/item/mio_icif_creativeTabs.java、core/runtime/energy/CustomEUEnergyStorage.java、common/client/screen/mio_icif_screen.java。
  • 数据包:新增 data/mio_icif/recipe/shapeless_315_treetap_elc.json,删除 shaped_315_treetap_elc.json,修改 data/mio_icif/recipe/asp_irradiant_uranium_ingot.json。

验证边界

  • gradlew compileJava --offline EXIT=0(仅既有 mio_icif_bat deprecation 警告),linter 0 条。
  • 数据包改动需 F3+T 或重进世界生效;创造栏 / JEI 改动需重启客户端。
  • 待实机验证:① JEI 中有序电量传递配方按 3×3 真实布局显示、「+」填充位置正确;② 电动树脂提取器三个材料任意摆放可合成并继承电量;③ 取下超频 / 储能升级后机器存量不超过新上限、闪电图标不再画到框外;④ 光辉铀锭可用其他模组的铀锭合成;⑤ 创造栏与 JEI 均可搜到粗银矿。

配方原料标签化改造(2026-10-01)

硬编码 mio_icif:resource/item_* 改为通用标签

  • 全量扫描 data/mio_icif/recipe 下 963 个配方文件,发现 202 处原料仍写死 mio_icif:resource/item_*;其中 127 处存在语义等价的标签,已改为 "tag" 形式,涉及 116 个文件。
  • 只改原料(key / ingredient / input / ingredients),产物 result.id 一律保持原样;仅采用与本物品 1:1 等价的标签,避免语义扩大。
  • 主要映射:
硬编码物品 替换为
item_rubber(30 处) c:rubber
item_*_dust_small c:dusts/small_<材质>
item_diamond_dust_small / item_emerald_dust_small c:tiny_dusts/diamond / c:tiny_dusts/emerald(无对应 small_ 标签)
item_*_ore_crushed / _purified c:crushed_ores/<材质> / c:purified_ores/<材质>
item_*_denseplate c:dense_plates/<材质>
item_*_shaft / *_rotor_blade / item_carbon_rotorblade c:shafts/<材质> / c:rotor_blades/<材质>
item_ingot_tin / item_silver_ingot / item_alloy_ingot / item_niobium_titanium_ingot c:ingots/tin / c:ingots/silver / c:ingots/alloy / c:ingots/niobium_titanium
item_cf_dust c:dusts/cf
item_irradiant_uranium_ingot mio_icif:irradiant_uranium
item_nano_living_metal / item_plant_extract mio_icif:nano_living_metals / mio_icif:plant_extracts
  • 有意保留硬编码(共 75 处):
    1. item_harz —— 其标签 c:slime_balls 会放行其他模组的黏液球,粘性炸药与提取机产橡胶按需求维持只认本模组树脂;
    2. 无任何对应标签的物品(item_motor、item_heatconductor、item_iridium、item_coil、item_sunnarium 系列、item_coal_*、item_zip_coal_block、item_copper_boiler、item_quantum_core、item_shard_iridium 等);
    3. 只存在于聚合标签 c:nuclear(含 24 项)的核材料(item_uran / item_uran_235 / item_uran_238 / item_mox / item_plutonium / item_rtg_pellet 等),替换后配方会接受任意核材料,故不动。

normal 命名空间电路板改为电路标签

  • mio_icif:normal/item_circuit → c:circuits/basic、item_advcircuit → c:circuits/advanced、item_super_circuit → c:circuits/elite、item_living_circuit → c:circuits/ultimate,共 18 处 / 18 个文件(先进掉落发电机、量子发电机、各类太阳能板与太阳能头盔、分子转换仪、超兰波顿水晶、锂电、地磁探测仪、无线电力管理器、EU 探测电缆等)。
  • 说明:配方中此前已有一部分在用 c: 标签(如 c:ingots/iron、c:dusts/small_niobium),本轮是把剩余硬编码补齐,风格与既有用法一致。

发电机方块状态、JEI 物品表与职业贴图修补(2026-10-01)

发电机方块状态清理竖直变体

  • 现象:每次启动报 20 条 Unknown value: 'up'/'down' for blockstate property: 'facing' [north, south, west, east],涉及 generator/block_drop_generator、block_advanced_drop_generator、block_experience_generator、block_advanced_experience_generator、block_advanced_semifluid_generator 五个文件。
  • 根因:这些方块继承 mio_icif_entity_block,其 FACING = HorizontalDirectionalBlock.FACING(仅东南西北),但方块状态文件仍声明了 facing=up / facing=down。同样写了竖直变体却无警告的 block_stirling_generator、wiring/block_cesu 等,是因为它们自行声明了六向的 DirectionalBlock.FACING。
  • 处理:删除上述 5 个文件中 active=false / active=true 各自的 facing=up、facing=down 变体,只保留 8 个水平变体;方块类未做任何改动。
  • 影响:这些竖直变体在运行期本就不可达,删除后模型加载不再报错,资源包缺失清单也更干净。

JEI「奇点迭代」创造标签页 45 个重复条目

  • 现象:45 duplicate items were found in '奇点迭代' creative tab's: displayItems(同级还有 AE2 / TFMG / 暮色森林的第三方条目,与本模组无关)。
  • 判定依据(对照 JEI 源码 ItemStackListFactory.addFromTab):JEI 用 StackHelper.getUidForStack 的 UID 去重,UID = item(无有效解释器时)或 List.of(item, subtypeData);而 LegacyInterpreterAdapter.getSubtypeData 会把返回空串的解释器视为「没有解释器」。因此:① 从未注册子类型解释器的物品,UID 退化为物品本身,同一物品被 accept 两次即判重复;② 解释器对两个版本返回同一字符串同样判重复。原 damageInterpreter 只返回耐久值,对「空电 / 满电」都返回 "0",于是电动工具、装甲、饰品全体中招。
  • 修复(空电与满电两个版本全部保留,只是让 JEI 能区分):
    • damageInterpreter → energyInterpreter,返回 当前电量/最大电量(非能量物品退回耐久值),例如 0/400000 与 400000/400000;
    • CF_SPRAYER 改用 fluidCellInterpreter(其「满装载」是把建筑泡沫写进 CUSTOM_DATA,与电量无关);
    • 补注册原先漏掉的 CROP_ANALYZER、DIAMOND_DRILLER、TOOL_LASER_MINER;
    • 补注册 6 个充电座方块(BATBOX / CESU / MFE / MFSU / LESU / EESU_CHARGER),用 nbtInterpreter 按 BLOCK_ENTITY_DATA 中的电量区分。
  • 验证:用脚本把日志里报出的 45 个物品 id 与改动后的注册表逐条比对,45 命中、0 遗漏;JEIPlugin.java 无 lint 报错,且全工程仅此一处注册子类型解释器,不存在重复注册。

僵尸村民职业贴图补齐

  • 现象:渲染僵尸村民形态的「未来商人」时报 Failed to load texture: mio_icif:textures/entity/zombie_villager/profession/future_trader.png(FileNotFoundException + 完整堆栈)。VillagerProfessionLayer 按 textures/entity/<villager|zombie_villager>/profession/<职业>.png 分别取图,而本模组只提供了村民版。
  • 处理:把 villager/profession/future_trader.png(64×64、RGBA)复制一份到 zombie_villager/profession/ 下,功能立即恢复;僵尸村民的职业外观暂沿用村民版配色(偏亮)。
  • 后续重绘要求:保持 64×64 带 Alpha 通道、文件名小写、透明区域必须完全透明(该图是职业覆盖层,会与僵尸村民基础皮肤叠加);建议按原版 zombie_villager/profession/*.png 的僵尸色调重绘,村民版与僵尸版各自独立。

涉及文件

  • 数据包:data/mio_icif/recipe/ 下 116 个配方 JSON(resource 物品标签化)与 18 个配方 JSON(电路板标签化)。
  • 资源:assets/mio_icif/blockstates/generator/ 下 block_drop_generator.json、block_advanced_drop_generator.json、block_experience_generator.json、block_advanced_experience_generator.json、block_advanced_semifluid_generator.json;新增 assets/mio_icif/textures/entity/zombie_villager/profession/future_trader.png。
  • 代码:common/client/integration/jei/JEIPlugin.java。

验证边界

  • 本轮未执行 Gradle 构建;结论来自实机会话日志与静态核对。
  • 实测:修复后重启的会话(01:51–01:58,正常退出)中——blockstate 竖直变体警告 20 → 0;「奇点迭代」重复条目 45 → 0;职业贴图 Failed to load texture 1 → 0;mio_icif 相关 ERROR/FATAL 0 条;Loaded 13177 recipes 无解析报错。
  • 生效条件:数据包与资源改动需重进世界 / F3+T;JEI 子类型改动需重启客户端。
  • 待实机验证:① 其他模组的铁锭 / 橡胶 / 小撮粉等能否替代本模组材料合成对应产物;② 粘性炸药与提取机产橡胶仍只认本模组树脂;③ 五个发电机的朝向与「工作 / 停止」两套模型显示正常;④ JEI 中电动工具 / 装甲 / 饰品能同时看到空电与满电两个子类型且不再出现重复提示。

Changelog v0.1.7.15 (English)

Crossbreeding Agriculture Aligned with IC2 Experimental

  • Restored the level, five attributes, stages, environmental requirements and harvest of the 52 corresponding crops from the local IC2 2.8.221-ex112; project extensions such as titanium and uranium are kept.
  • Restored the 256-tick crop cycle, environmental supply/demand with low-environment death, four-parent weighted crossbreeding, genetic mutation, single-plant spread, weed infestation and Weed-EX protection.
  • Completed double-rack crossbreeding, right-click harvest, left-click seed extraction, deep mineral roots, and manual hydration/fertilizing/herbicide; fixed nether wart accumulating progress without advancing stages. Base flowers and mushrooms now consume 4 plantings each.
  • Corrected Gaussian yields and per-portion byproducts; removed empty-bag living-plant duplication, planting bag return, duplicate yield boosts and extra log drops from saplings; restored red wheat signal/glow, poisonous flowers, man-eating flowers and wart transformations.
  • Added small diamond dust, ender pearl dust, milk wart, oil berry, Bob berry and the associated powder resources.
  • Aligned the analyzer's tiered charging and output waiting, and added addon seed interfaces; aligned the manager/harvester's point-by-point scanning, energy use, restocking, water tank, upgrade slots and GUI.
  • Kept legacy registration IDs and seed attributes; legacy IC2 crops with old-unit stage progress are cleared to the stage baseline once on first load. Crop sticks now require farmland, so legacy direct-ore-planting layouts need adjustment.
  • Added 15 server-side agricultural regression tests; full scope, migration rules and verification boundaries are in the implementation record.

Geothermal Generator Alignment Audit (2026-09-30)

This section is an audit conclusion; no geothermal generator code was changed in this round.

  • Baseline: IC2 1.12.2 TileEntityGeoGenerator + TileEntityBaseGenerator, plus the pre-refactor source/用作修复2/.../mio_icif_geo_generator.java.
  • Parameters already aligned: 20 EU/t generation (vanilla super(20.0D, ...) corresponds to ENERGY_GENERATION_RATE = 20L), 2400 storage, LV voltage with 32 EU/packet output, 8000 mB lava tank, lava only, 10 EU/mB conversion (vanilla drainInternal(2)/tick × 20 EU equivalent), 10000 EU per bucket, and the input (27,21) / output (27,54) / battery (117,49) slot coordinates.
  • Not aligned: the balance/energyfix/generator/geothermal config multiplier is missing (currently hard-coded 20), the Generators/GeothermalLoop.ogg running sound is not implemented, and the 1000 mB lava spill on break (FluidSpilledEvent) is not implemented.
  • Fuel loss on the non-takeover path: the current "pre-deduct a whole bucket, then count down" model means that when the buffer is full generateEnergy() does not run but burnTime still decreases, and the ungenerated remainder is cleared at zero; a single full-buffer tick loses hundreds of mB of lava without producing EU. Vanilla guarantees not a single drop is drawn while full via needsFuel() / isConverting(). This defect matches 用作修复2 and is a historical leftover, not introduced by this refactor.
  • The takeover path adds checkNearbyLavaBlocks() adjacent-lava generation (1 EU/t per face), which conflicts with the accepted contract in source/用作修复/SCEX-R28.md:11 ("adjacent world lava does not generate while takeover is enabled"). Adjacent-lava generation is an SI-specific extension absent from vanilla IC2, so keeping it on the non-takeover path is by design. This item needs confirmation as either a regression or a deliberate contract upgrade.
  • Other: the comment "40,000FE per bucket" at mio_icif_Block_Geo_Generator.java:28 is wrong — the actual constant is ENERGY_PER_BUCKET = 10000; after the parent changed to AbstractGeneratorBlockEntity, external energy supply is handled by EnergyCompatibility.findEuStorage / pushDirect. The file currently compiles without errors.

Reactor Heat Extraction Chain Review (2026-09-30)

This section is a review and naming clarification; no related code was changed in this round.

Heat Exchanger vs. Heat Conductor

  • Naming clarification: the in-reactor component "heat exchanger" is item_reactor_heat_switch, while the "heat conductor" used in the heat exchanger machine's slot is item_heatconductor — two different items. The heat exchanger source comment calling that slot a "heat exchanger slot" is inaccurate; canPlaceItem actually validates mio_icif_resources.HEATCONDUCTOR, so a heat exchanger cannot go in.
  • The in-reactor heat exchanger moves heat inside the reactor: ReactorComponentType.HEAT_EXCHANGER absorbs heat from fuel rods, passes it along chains of adjacent components to component vents, and melts down if its own heat buffer overflows. The four models are: basic heat exchanger 2500 storage, 12 to adjacent, 4 to the hull; component heat exchanger 5000, 36 to adjacent, none to the hull; reactor heat exchanger 5000, none to adjacent, 72 to the hull; advanced heat exchanger 10000, 24 to adjacent, 8 to the hull.
  • "To adjacent" builds the conduction bridge fuel rod → heat exchanger chain → component vent; "to reactor" dumps heat into the hull and is the key part for heat-extraction power layouts. Separately, mio_icif_heat_exchanger, despite its class name, is actually a single/triple/hexa coolant cell — a different component class.
  • The heat exchanger machine (block_heat_source_fluid) converts hot coolant into coolant and outputs HU: each heat conductor installed provides 10 HU/t, ten full slots cap it at 100 HU/t, and an empty machine produces nothing. Hot coolant is counted at 20 HU/mB (the same constant in FluidReactorCycle and the machine's HU_PER_MB).

Heat Extraction Efficiency Comparison

  • EU per HU: advanced stirling generator 0.85; stirling kinetic generator + basic kinetic generator 0.75 (4 HU + 1 mB water → 12 KU; basic kinetic generator 4 KU = 1 EU); stirling generator 0.5; steam generator → steam turbine → basic kinetic generator ≈ 0.499; with a turbine or twin turbine only 0.085 / 0.12, because isNaturalKineticSource() only recognizes water and wind, so this KU is treated as artificial kinetic and takes the 10% penalty.
  • Without the advanced stirling generator, the recommended chain is heat exchanger → stirling kinetic generator → basic kinetic generator. The per-group cap is 250 EU/t: KU is output only from the front face, and the basic kinetic generator's KineticReceiverStorage(10000, 1000) accepts at most 1000 KU per tick; this consumes 333 HU/t and 83 mB water/t, and the equal amount of hot water produced must be drained continuously, otherwise the fluid heat tank fills up and the machine stops.
  • If the stirling kinetic generator is also skipped, the stirling generator (0.5) and the steam chain (0.499) are essentially equal; choosing the stirling generator avoids the water supply, condenser, distilled-water slot clogging and overpressure explosion risk.
  • The common bottleneck remains the heat exchanger machine: 100 HU/t per unit and heat is output only from the front face, regardless of the chosen power scheme.
  • Verification boundary: the efficiencies above are derived by reading the code; in-game verification so far only covers a reactor with nine heat exchanger machines and a steam generator (see the user nine-machine coolant loop fix). The power chains after the heat exchanger machine have no GameTest backing yet; run one group at small scale before scaling up.

Construction Foam / Scaffold / CF Sprayer Aligned with IC2 1.12.2 (2026-09-30)

Based on the local source/IC2Code 1.12.2 (industrialcraft-2-2.8.221-ex112), this round refactors foam, scaffolds and the CF sprayer.

Construction Foam mio_icif_block_foam

  • Hardening now follows IC2 BlockFoam.updateTick's random-tick formula: chance = 1/(hardenTime*(16-light)*20) * 4096/randomTickSpeed, with hardenTime 300 for normal and 600 for reinforced; light is the max of the block's own and adjacent block light. It is very slow in the dark but not absolutely impossible (matching the source).
  • Block properties aligned: hardness 0.01, blast resistance 10, wool sound; before hardening there is no collision box and entities can pass through (matching getCollisionBoundingBox returning null).
  • Right-clicking with sand hardens immediately and consumes 1 sand (matching onBlockActivated).
  • Drops and products follow FoamType: normal foam hardens into a CF wall and drops nothing when broken; reinforced foam hardens into reinforced stone (blast-proof stone) and drops 1 iron scaffold when broken.

New block: CF wall build/block_cf_wall

  • Registered CONSTRUCTION_FOAM_WALL (mio_icif_blocks) as the hardening product of normal foam.
  • Completed resources: blockstate, block model (reusing the block_foam texture), item model, loot table, Chinese/English names (建筑泡沫墙 / CF Wall), and the mineable/pickaxe and needs_stone_tool tags.

Scaffold mio_icif_block_scaffold

  • Overhang strength aligned with IC2 ScaffoldType: wood 2 / iron 5; the project's extra tiers continue as steel 8 / carbon fibre 12 (extending IC2's reinforced wood 5 and reinforced iron 12).
  • Added the reinforced blockstate and right-click reinforcement: wood scaffold + 2 sticks → reinforced (strength 5); iron scaffold + 1 iron fence → reinforced (strength 12); must be on a pillar connected to the ground; steel/carbon tiers cannot be reinforced (matching onBlockActivated + isPillar).
  • Drops aligned: a reinforced scaffold additionally returns the reinforcement material when broken (wood scaffold +2 sticks / iron scaffold +1 iron fence).
  • Climbing aligned with BlockScaffold: switched to entityInside (reset fall distance, horizontal speed cap ±0.15, sneak 0.08 (0.02 in water), against a wall 0.2, otherwise ≥ -0.07) together with isLadder, and removed the old EntityTickEvent reflection-based climbing event; the random tick is now a 1/8-probability fallback support check, and the placement check follows IC2's wood strength rule.
  • Updated the 5 scaffold blockstate files (wood/iron/steel/carbon/titanium) to include the reinforced variant.

CF sprayer CFSprayerItem

  • Switched to IC2 ItemSprayer's fluid model: capacity 8000 mB, 100 mB construction foam fluid per block; registers Capabilities.FluidHandler.ITEM in mio_icif_capacities.
  • Keeps only IC2's two modes: normal (BFS flood up to 10 blocks) and single (1 block), toggled with Shift+right-click.
  • Targeting and placement follow sprayFoam: prefer scaffolds/cables, otherwise spray on the face adjacent to the click; iron scaffolds → reinforced foam plus an iron fence drop, wood scaffolds → normal foam; cables are encapsulated in foam.
  • The durability bar, tooltip and the creative-tab full-loaded variant now display fluid amounts.
  • The canning machine (mio_icif_canner_elc) now tops up the sprayer through the sprayer's fluid interface (up to 1000 mB of construction foam per operation).

Migration and verification

  • Migration note: the sprayer's stored amount changed from the old "256 durability points" to fluid NBT (FluidId / FluidAmount); foam values in old saves are not migrated and must be refilled in a canning machine. Scaffolds gain a reinforced state; old scaffolds default to unreinforced.
  • This round's changes were reviewed line by line; Gradle compiles only src/main/java (+ core) and does not include any historical snapshot directory.
  • Note: if the IDE reports "fillFluid / four-argument constructor undefined"-style errors, that is usually the Java language server indexing duplicate copies of same-named classes in same-named packages under backup/ and source/. Those directories are already excluded via java.import.exclusions in .vscode/settings.json; restart the language server and the errors disappear — unrelated to the source.

Tick Performance and Stability Refactor (2026-09-30)

This round merged the source/修复代码 branch (base 0.1.7.14-beta, 2 commits, 36 files). The merge ported each change by comparing them individually rather than overwriting whole files: the src side has many local modifications, and a whole-file overwrite would lose them, so only the call sites involved were ported and everything else was kept as-is in src.

Performance

  • Recipe lookup caching: added core/runtime/processing/RecipeLookupCache. When the item, components and count of the input slot match the previous query it returns the previous result directly, skipping the full getRecipeFor scan; hits are verified with a hash check against RecipeManager#byKey so stale recipes are not returned after /reload; negative results are cached for NEGATIVE_TTL_TICKS = 20 ticks (1 second), cutting idle or stalled machines' lookup cost to 1/20; on a miss it first retries the previously matched recipe before falling back to a full scan.
  • Coverage: 14 machine files, each call site with its own cache instance (so different operations in the same machine do not evict each other) — compressor, macerator, extractor, electric furnace, induction furnace, washer, thermal centrifuge, block cutting machine, metal former (3 modes), molecular transformer, blast furnace (normal/advanced), industrial workbench, batch crafter. One static method call in mio_icif_batch_crafter was left unchanged because it has no instance. The canner's CannerRecipeCache is an existing implementation and is out of scope.
  • Reduced per-tick cost in the machine base class (AbstractProcessingMachineBlockEntity): hasAutomationUpgrade() returns early when no insert/eject upgrade is installed, skipping block registry lookups, slot iteration and neighbour queries; the energy profile result is memoized once per instance (standardProcessor; the block type cannot change).
  • Neighbour capability lookups now use caches: one NeoForge BlockCapabilityCache per face (one set for items, one for fluids), invalidated automatically by the engine when the neighbour changes; the original contract of "only operate when a block entity is adjacent" is preserved, and non-adjacent special positions plus client-side calls still use the original path.
  • Tank client sync throttling: added core/runtime/sync/ClientSyncThrottle (MIN_INTERVAL_TICKS = 5). The first change after going idle is sent immediately; subsequent changes within 5 ticks are merged into one and flushed in ServerTickEvent.Post, guaranteeing the final state is always delivered with at most 5 ticks of HUD fluid delay; non-main-thread calls are sent as-is immediately, and removed blocks are cleaned up automatically.

Defect fixes and crash prevention

  • Jetpack multi-thread concurrency: JetpackFlightController removed the redundant flyingPlayers (that WeakHashMap was written concurrently by both client and server threads in single-player, and the value written was read back in the same call and always equalled the local variable); the flight-tick record ACTIVE_TICKS was split into SERVER_ACTIVE_TICKS / CLIENT_ACTIVE_TICKS, two ConcurrentHashMaps, fixing isFlying() flicker caused by both sides overwriting each other for the same UUID in single-player.
  • Advanced quantum chestplate: removed the static flyingPlayers that was only ever remove()d and never read, plus the unused import.
  • Multiblock registry thread safety: register / unregister / getStructureAt / getStructureByController / getAllStructures / isControllerAt in ActiveMultiblocks are all synchronized; getAllStructures returns a List.copyOf snapshot instead of a live view, avoiding ConcurrentModificationException when structures change during external iteration.

Mojibake comment fixes

  • Fixed GBK/UTF-8 mangled comments in 14 files, restoring the original Chinese/Japanese; only comments were touched, no code logic or string literals.
  • Cross-check: conversion results containing out-of-order charsets were discarded to avoid damaging genuinely correct Chinese. Characters whose bytes were already lost at the mangled stage were not guessed (e.g. a missing character in "完全依靠能工作"), and the 34 occurrences in mio_icif_solar_distiller.java that could not be confirmed were left as-is.

Not changed and verification boundaries

  • Energy network left as-is: existing logic such as IndependentSiEnergy already has a per-tick computation cap; to avoid power outages or computation anomalies without in-game testing, no invasive change was made this round.
  • No build executed: the conclusions above come from file-by-file comparison and IDE diagnostics (0 errors), not from a real run. Although the upstream cloud build reported BUILD SUCCESSFUL, its Linux-side lwjgl/netty are empty-JAR placeholders and it never actually ran the client.
  • Pending in-game verification: continuous processing machines, tank pipe injection and multi-stage combined injection, jetpack flight and landing toggling, multiblock formation and teardown.
  • Leftover: mojibake comments were logged as 17 files / 57 lines; this round located 14 by mojibake feature words, leaving 3 unlocated (comments only, no runtime impact).

Batch Crafter Aligned with IC2 1.12.2 (2026-09-30)

Baseline: the local source/IC2Code 1.12.2 (industrialcraft-2-2.8.221-ex112) TileEntityBatchCrafter / ContainerBatchCrafter / GuiBatchCrafter / InvSlotUpgrade; compared files: mio_icif_batch_crafter, BatchCrafterMenu, mio_icif_gui_batch_crafter, mio_icif_block_batch_crafter, JEIPlugin.

Audited items (consistent this round, no changes)

  • Properties: 20000 EU storage, tier 1 (= MV), 2 EU/t energy use, 40-tick base cycle, 4 upgrade slots, upgrade traits Processing / Transformer / EnergyStorage / ItemConsuming / ItemProducing.
  • Slot layout and coordinates: phantom 3×3 grid (30+x·18, 17+y·18), output slot (124,35), 9 ingredient slots (8+i·18, 84), 9 container-return slots (8+i·18, 102), 4 upgrade slots (152, 8+i·18), battery slot (8,62), GUI height 206, progress bar (90,35), output preview (94,14).
  • Crafting recipe " I "/"ACA"/"HWH" (industrial workbench + advanced circuit + advanced machine casing + hammer + wrench), block hardness 2.0 / resistance 10.0 / requires correct tool, Chinese/English names (批量工作台 / Batch Crafter).

Restored execution model

  • Overclock model: switched to StandardProcessingTiming (ops = ceil(1/duration), ticks = round(duration·ops)), value-for-value equivalent to IC2's getOpsPerTick / getOperationLength / getEnergyDemand. Before the fix it added ceil(1/mult) progress per tick with a constant 40-tick cycle and only one item per operation; at 1 overclocker the measured figure was 20 ticks / 60 EU per item versus IC2's 28 ticks / 84 EU per item. Capacity now follows IC2's formula 20000 + cycle×energy + 10000/storage upgrade, and IC2's non-existent OVERCLOCKER_ENERGY_BONUS was removed; the cycle length is written to the save (scex_operation_ticks) and progress is restored proportionally on load, so changing the overclocker count loses no progress and does not overflow.
  • Per-tick sequence: a self-implemented tickProduction() restores IC2 updateEntityServer's order — energy is paid once per tick, ++progress reaching operationLength produces on the same tick, and operations() crafts are performed within the cycle. Before the fix it produced on the tick after reaching the end (effectively 41 ticks/item) and produced only one item per cycle.
  • Progress reset condition: only "no recipe in the phantom grid" resets progress; a full output, insufficient energy or temporarily missing ingredients all preserve progress. checkInputChanged() is overridden as a no-op, removing the previous "ingredient slot change resets progress" behaviour.
  • Container-return slots: restored IC2 InvSlot.InvSide.NOTSIDE — no longer extractable from the side and not participating in ejector as an automatic output slot.
  • Output gating: the product is only written to CRAFTING_OUTPUT_SLOT, removing the previous "overflow into the 9 container slots" logic and restoring IC2 craftingOutput.canAdd()'s gate.
  • Ingredient balancing: balanceIngredients() is now a StackUtil.balanceStacks equivalent (evenly redistribute the group total, skip slots holding other items, write back via setStackInSlot + setChanged); it is triggered every tick (onTick), on grid change (matrixChange) and on ingredient-row content change (a new createItemHandler override). Before the fix it was a pairwise diff/2 heuristic whose only trigger, ingredientChanged(), had no callers.
  • Menu shift-click: added moveIngredientsBalanced(), polling layer by layer to balance across all acceptable slots, corresponding to IC2 ContainerBatchCrafter.handlePlayerSlotShiftClick, replacing the previous sequential fill.
  • Comparator output: added getComparatorLevel() = progress * 15 / cycle, wired on the block side through hasAnalogOutputSignal / getAnalogOutputSignal, matching IC2 comparator.setUpdate.

Per-tick lookup optimization

  • canCraft() gained an ingredient-row snapshot (item, components and count of the 9 slots), recomputed only after a grid change / row content change / completed craft / load, equivalent to IC2's newChange semantics; the steady-state per-tick cost drops from "build a crafting container + linearly scan the recipe table" to 9 reference comparisons.
  • Added a static gridMatches() validation entry point for JEI transfers.

JEI recipe transfer

  • Added BatchCrafterTransferHandler (corresponding to IC2 TransferHandlerBatchCrafter): JEI's "+" writes the recipe layout into the 3×3 phantom grid template via setCraftingGridStack(), without consuming the player's inventory (the built-in addRecipeTransferHandler implementation moves items and is blocked by PhantomSlot.mayPlace, hence the custom handler).
  • Layout restoration is more robust than IC2: first lay out in JEI input slot order and validate with gridMatches(); on mismatch, enumerate all legal offsets within the 3×3 for a ShapedRecipe and take the first real match; representative items prefer ones already in the player's inventory.
  • Registered in JEIPlugin.registerRecipeTransferHandlers: addRecipeTransferHandler(new BatchCrafterTransferHandler(), RecipeTypes.CRAFTING).

Migration and verification boundaries

  • Save compatibility: phantom grid, progress and cycle length are all persisted; the cycle length scales proportionally with the overclocker count. If an existing layout relies on "hoppers pulling container returns" or "products overflowing into container slots", it must be changed to taking items only from the output slot and retrieving container returns manually.
  • Verified: gradlew compileJava BUILD SUCCESSFUL; all changes are per-site replacements based on the source, with no whole-file overwrites.
  • Pending in-game smoke test: ① no overclocker → 40 ticks/item, 80 EU/item; ② 2 overclockers → 20 ticks/item, about 100 EU/item with a multi-craft cycle; ③ hoppers cannot pull container returns and products do not flow into container slots; ④ shift-click and pipe input spread evenly across the 9 slots; ⑤ JEI "+" writes into the phantom grid and does not consume inventory items.
  • Left as-is: no new GameTest; the boundary where the same ingredient row matches a different recipe after /reload is still covered by RecipeLookupCache's 20-tick negative cache and the byKey check, matching IC2.

Crop Harvester / Crop Matron Realigned to IC2 1.7.10 (2026-09-30)

The baseline was changed from source/IC2Code 1.12.2 (2.8.221-ex112) to source/IC2CodeNew (industrialcraft-2-2.2.828-experimental, 1.7.10). Compared files: TileEntityCropHavester / TileEntityCropmatron / ContainerCropHavester / ContainerCropmatron and TileEntityCrop.harvest_automated / applyFertilizer / applyHydration / applyWeedEx. All parameters that the previous version based on 1.12.2 are rewritten to 1.7.10 in this round.

Harvester mio_icif_harvest_elc

  • Scan range 9×3×9 (243) → 11×3×11 (363): ±5 horizontally, -1..1 vertically, stepping in exactly the same order as vanilla's scanX/scanY/scanZ.
  • Rhythm and energy: from "scan every 10 ticks, threshold 21 EU" to "scan every tick, threshold 201 EU"; harvest cost 20 → 100 EU per drop, plus another 100 EU per drop when a crop analyzer is installed.
  • Harvest rule changed to match 1.7.10 harvest_automated(boolean optimal): without an analyzer it harvests as soon as canBeHarvested() is true; with an analyzer it enters optimal mode and additionally requires growthStage == getOptimalHarvestStage(). (The previous 1.12.2 rule was size == optimal || size == max.)
  • Restored the crop analyzer slot (1 slot, automation input from the top only, matching InvSlotConsumableId's InvSide.TOP); upgrade slots 4 → 1.
  • Upgrade traits narrowed from Transformer / EnergyStorage / ItemProducing to ITEM_PRODUCING only.
  • Slots are: 0–14 harvest storage (InvSlot.Access.IO, insertable and extractable), 15 crop analyzer, 16 battery (extension), 17 upgrade — 18 in total.

Crop matron mio_icif_matron_elc

  • Storage 10000 → 1000 EU (1.7.10 super(1000, 1, 0, 2); tank capacity = 1000 × 2 = 2000).
  • Scan range → 363, rhythm changed to every tick, start threshold still 31 EU (1 scan + 3×10 operations).
  • Weeding aligned with applyWeedEx: from "top up to 150" to "add a fixed +50 each time, stopping at 150".
  • Herbicide slots 1 → 7; removed the separate empty-container output slot for herbicide (herbicide uses durability containers that vanish when exhausted, producing no empty container).
  • Slots are: 0 battery (extension), 1 water container input (top), 2 empty container output, 3–9 fertilizer (7), 10–16 herbicide (7), 17–20 upgrades (4, extension) — 21 in total.
  • Unchanged: fertilizing +90 (cap 100), watering refills 200, farmland moisture to 7, water tank 2000 mB, fertilizer accepts only the dedicated crop fertilizer item, fluid containers are automation-input from the top only.

Retained extensions and implementation notes

  • The battery slot (1 each in both machines) and the matron's 4 upgrade slots are deliberate project extensions — 1.7.10 has neither; upgrade slots are not exposed to automation (matching vanilla InvSlotUpgrade), and the upgrade traits keep the 1.12.2 set (Transformer / EnergyStorage / ItemConsuming / FluidConsuming), filtered by isSuitableFor.
  • Herbicide chain: retains "item → weedExTank buffer → consume 50 each time"; MatronHerbicideItem is 64 durability × 50, so 1 durability point corresponds to exactly 1 weeding, equivalent to 1.7.10's per-use consumption.
  • Analyzer slot count: 1.7.10 declares cropnalyzerSlot as 7 slots but only uses slot 0 (and the GUI shows only 1), so it is implemented as 1 slot here; the analyzer is a placeholder item and does not consume durability.
  • Weeds are still naturally excluded by canBeHarvested() (matching vanilla CropWeed#canBeHarvested returning false), with no hard-coded check.

Impact and verification boundaries

  • Migration note: slot indices and counts change for both machines (harvester 20 → 18, matron 16 → 21), so machines already placed in old saves need their item slots rearranged; the matron's storage cap drops from 10000 to 1000.
  • Verified: gradlew compileJava BUILD SUCCESSFUL, 0 errors.
  • Pending in-game smoke test: ① harvester harvests by canBeHarvested without an analyzer and only optimal-size crops with one installed, at the extra 201 EU/scan threshold; ② matron adds +50 per weeding with a 150 cap, one herbicide durability per use; ③ when fully charged it scans one cell per tick, 363 ticks per pass.

Ore Generation Count Balance (2026-09-30)

Using the vanilla 1.21 Java main vein count values as reference — copper ore_copper 16, iron ore_iron_middle 10, gold ore_gold 4, diamond ore_diamond 7 — the relative rarity of this project's tin, lead, uranium, titanium and niobium is adjusted. Only minecraft:count is changed; size (ore per vein) and the height ranges stay the same.

Adjusted counts

Ore Overworld shallow Overworld deep Twilight Forest shallow/deep Reference
Tin 16 → 12 12 → 2 16/8 → 12/2 copper 16 > tin 12 > iron 10
Lead 12 → 4 10 → 2 12/6 → 4/2 gold 4 (plus ore_gold_lower 1)
Uranium 8 → 3 6 → 2 4/2 → 3/2 lead 4/2 (one less in total)
Niobium 4 → 3 3 → 1 4/3 → 3/1 rarer than gold 4 (the rarest)
Titanium 20 → 7 20 → 4 20/20 → 7/4 diamond 7 / ore_diamond_buried 4
  • Tin: shallow 16 → 12, deep 12 → 2, 14 veins in total. Shallow is above iron's main vein ore_iron_middle (10) and below copper ore_copper (16); the deep count is compressed to 2 so that shallow + deep do not overtake copper (the original 16/12 totalled 28 veins, already more than copper).
  • Lead: reduced from 12 to 4, the same order of magnitude as gold — the original value was about 3× ore_gold, clearly too abundant.
  • Uranium: shallow 8 → 3, deep 6 → 2, 5 veins in total, below lead (4/2 = 6 veins).
  • Titanium: changed from 20/20 to 7/4, matching diamond's ore_diamond / ore_diamond_buried item by item (swapping tiers with niobium). size is 9, about 99 blocks per chunk.
  • Niobium: changed from 4/3 to 3/1, replacing titanium as the rarest ore in the mod (swapping tiers with titanium). size is 6, about 24 blocks per chunk.
  • Twilight Forest variants: the original values did not match the Overworld (uranium 4/2, lead deep 6, tin deep 8); this round unifies them to the same Overworld count set. Titanium and niobium Twilight variants also use the same values as the Overworld.

Affected files

The 20 JSON files under src/main/resources/data/mio_icif/worldgen/placed_feature/: tin_ore_placed, tin_ore_deep_placed, tin_ore_twilight_forest_placed, tin_ore_deep_twilight_forest_placed, lead_ore_placed, lead_ore_deep_placed, lead_ore_twilight_forest_placed, lead_ore_deep_twilight_forest_placed, uran_ore_placed, uran_ore_deep_placed, uran_ore_twilight_forest_placed, uran_ore_deep_twilight_forest_placed, titanium_ore_placed, titanium_ore_deep_placed, titanium_ore_twilight_forest_placed, titanium_ore_deep_twilight_forest_placed, niobium_ore_placed, niobium_ore_deep_placed, niobium_ore_twilight_forest_placed, niobium_ore_deep_twilight_forest_placed; the corresponding configured_feature and neoforge:biome_modifier files are unchanged.

Verification boundaries

  • Only data pack JSON values were changed; no build was executed and there was no in-game verification.
  • Migration note: vein counts are written when a chunk is first generated, so already-generated chunks do not change; new chunks or new chunk areas are required.
  • The "shallow / deep" columns are two placed_feature entries split from the same ore in this project, so the actual veins per chunk are their sum (e.g. tin 12 + 2 = 14).
  • The reference values are vanilla Java 1.21; if biome-specific bonuses such as ore_copper_large (dripstone cave, 16×20) or ore_iron_upper (mountains, 90) are introduced later, the effective ratio will deviate from the table above.

Rubber Tree System API Exposure (2026-09-30)

The rubber wood / resin harvesting logic previously inside the common package was extracted into core and interfaces were exposed, so addons can build resin-tapping tools, define custom rubber wood and reuse the harvesting flow.

Core logic extraction

  • Added core/runtime/world/RubberTreeSystem: pure logic decoupled from registry content, centralizing tool/block checks, drop-count rolls, harvesting (durability or energy cost, resin drop, clearing the resin state) and random-tick regrowth. The resin item is passed in by the caller as an Item, so core does not depend on common.
  • Regrowth chance, drop ranges and other constants/rules are maintained in this one place only; the block and the API share the same implementation, removing the two previously duplicated harvesting/drop code paths in BlockRubberWood and mio_icif_have_rub_wood.

New public interfaces (core.api)

  • core.api.world.IRubberTreeAPI: the system entry point, providing getResinItem / createResinStack, isTreeTap / isElectricTreeTap / isRubberWood / hasResin / isTappable / canHarvest / canUseTapOn, tryHarvest / rollResinCount / dropResin / tryRegrowResin / getResinRegrowChance.
  • core.api.world.RubberHarvestResult: harvesting result record (harvested / resinCount).
  • core.api.block.IRubberWood: rubber wood block interface (hasResin / isTappable / withResin / canRegrowResin); addons implementing it on a custom log get handled uniformly by this mod's collectors.
  • core.api.item.ITreeTapItem: extended from an empty marker interface with default harvesting parameters getDurabilityCost() (default 1), getResinDropMin() (1) and getResinDropMax() (3), all default, so existing implementations compile unchanged.
  • MioIcifAPI gained getRubberTreeAPI(); the capability list at the top of MioIcifAPI and the core.api package-info were updated accordingly.

Implementation and wiring

  • Added common/service/world/RubberTreeAPIImpl: delegates to RubberTreeSystem and only binds the resin item mio_icif_resources.HARZ (resource/item_harz).
  • common/bootstrap/CommonApiServices gained lazy loading of getRubberTreeAPI(), following the existing holder/lazy-singleton pattern.

Block refactor

  • BlockRubberWood and mio_icif_have_rub_wood now implements IRubberWood; useItemOn checks via RubberTreeSystem.canUseTapOn (harvestable + tool + energy) and randomTick delegates to RubberTreeSystem.tryRegrowResin.
  • Removed the fragile item-name string check (itemName.contains("treetap")) in favour of ITreeTapItem interface checks.

Harvester parameters

Tree tap Durability/use Energy/use Drop
Wooden item_tool_wooden_treetap 1 — 1~3
Electric item_tool_treetap_elc 0 10 EU 2~4
  • mio_icif_treetap_elc overrides the ITreeTapItem parameters: getDurabilityCost() = 0, drop 24; the wooden one keeps the defaults of 1 durability and 13. Behaviour matches the state before this refactor.

Compatibility and migration

  • Behaviour change: rubber wood harvesting switched from "item name contains treetap" to the ITreeTapItem interface, so third-party items relying on the naming convention no longer work and must implement the interface.
  • The new ITreeTapItem methods are all default, so it is backward compatible; existing implementations need no changes.
  • The public API is purely additive; no existing method signatures or registration IDs were changed, and save data is unaffected.

Affected files

  • Added: core/api/world/IRubberTreeAPI.java, core/api/world/RubberHarvestResult.java, core/api/block/IRubberWood.java, core/runtime/world/RubberTreeSystem.java, common/service/world/RubberTreeAPIImpl.java.
  • Modified: core/api/item/ITreeTapItem.java, core/api/MioIcifAPI.java, core/api/package-info.java, common/bootstrap/CommonApiServices.java, common/block/environment/BlockRubberWood.java, common/block/environment/mio_icif_have_rub_wood.java, common/item/tools/mio_icif_treetap_elc.java.
  • Docs: docs/addon_development_guide.md gained section 10 "Rubber tree system (rubber wood and resin harvesting)" with the old sections 1019 renumbered to 1120; the API table in section 3, the API quick-reference table, the threading constraints and the common errors table were updated as well.

Verification boundaries

  • gradlew compileJava BUILD SUCCESSFUL, 0 errors (only the pre-existing deprecation warnings).
  • No in-game smoke test; suggested checks: ① drops and energy cost of the wooden/electric tap on block_rub_wood and block_have_rub_wood; ② after harvesting the block becomes resin-less and regrows by random tick at 5%; ③ the electric tap stops harvesting when out of energy.
  • Rubber tree world generation (common/world/feature/* and biome modifiers) is unchanged in this round and remains in common.

Full Decoupling of Armor Features (2026-09-30)

Armor "feature declaration / state read-write / tooltip rendering / feature management GUI / command and network sync" was previously scattered across common with hard-coded parts, so addons building jet armor hit unreadable state, unclickable tooltips, unusable mode features and no back-slot management. This round converges it into public core contracts.

core additions and adjustments

  • Added core.prefab.item.ArmorFeatureState: unified storage for toggle features (CustomData key feat_<key>, enabled by default when absent), independent of any concrete item/registry.
  • Added core.prefab.item.ArmorFeatures: the unified dispatch entry point — declaration queries (features/find/isDeclared/isToggleFeature/isModeFeature) and isEnabled/setEnabled/toggle/cycleMode/toggleOrCycle.
  • Added core.prefab.item.ArmorFeatureTooltip: unified clickable tooltip rendering (toggle inversion / mode cycling, command /mio_icif toggle <slot> <featureKey>).
  • Added core.api.item.IArmorModeFeatureItem: generic mode-type feature switching interface (cycleMode).
  • IJetpackItem now extends IBatteryItem, IArmorModeFeatureItem, adds the constant FEATURE_MODE_KEY, and provides a default cycleMode (hover ↔ flight); jetpacks need no extra code to be recognized by the generic GUI.
  • IItemAPI gained isArmorFeatureEnabled / setArmorFeatureEnabled / cycleArmorFeature / getArmorFeatureInfo (previously only toggleArmorFeature could write, never read).
  • AbstractElectricArmor: tooltips are now rendered uniformly by ArmorFeatureTooltip (with its own click handling), isFeatureEnabled delegates to ArmorFeatureState, and the default value is unified from false to true, matching the semantics the GUI/command/item logic actually used.
  • The flight base moved from core.runtime.flight to core.prefab.flight (JetpackFlightController / JetpackKeyHandler) so addons can legitimately reuse lift, hover, height limits and key input.

common adjustments

  • ArmorFeatureToggle was downgraded to a delegating shell (marked @Deprecated), forwarding everything to core; existing armor classes calling ArmorFeatureToggle.isEnabled(...) need no changes and behave identically.
  • Added common.item.armor.ArmorFeatureSlots: uniformly provides "equipment slots with manageable features" — the four vanilla slots plus an optional Curios back slot (reflective JetpackCuriosAdapter, degrading automatically without Curios).
  • Added ArmorFeatureCyclePacket and mio_icif_Network.sendArmorFeatureCycle(...); ArmorFeatureTogglePacket's slot field changed from EquipmentSlot to the generic slot identifier String (head/chest/legs/feet/back) and now supports a "fall back to searching all slots when the declared slot differs from the actual one" path.
  • The feature management GUI (mio_icif_gui_armor_features): removed the jetpack_mode and IJetpackItem special cases and switched to generic toggle/cycle dispatch; the row count is computed dynamically from the actual slots and includes the Curios back slot.
  • ToggleCommand: removed the hard-coded ARMOR_FEATURES and feature-name maps; the feature list and completions now come entirely from ArmorFeatures.features(...), and slot completion gained back.
  • TooltipInteractionHandler: removed the IJetpackItem special case and switched to generic ArmorFeatures.toggleOrCycle.
  • JetpackModeSwitchPacket: now reuses ArmorFeatureSlots + ArmorFeatures.cycleMode, dropping its own Curios reflective lookup.
  • JetpackCuriosAdapter: added read/write for the back-slot item (backFeatureStack / writeBackFeatureStack).
  • mio_icif_chestplate_quantum: jetpack_mode corrected from a toggle declaration to a mode declaration carrying the current mode name, so it displays and switches correctly in the generic GUI.
  • The language files gained gui.mio_icif.armor_features.empty_back.

Compatibility and migration

  • Toggle default unified to "enabled": the AbstractElectricArmor default changed from false to true; previously it only appeared as false when addons overrode the tooltip themselves, which was an inconsistency.
  • Network packet format change: ArmorFeatureTogglePacket's slot field went from EquipmentSlot to String; client and server on the same version, so no save migration is needed.
  • ArmorFeatureToggle and its FeatureInfo record are kept but deprecated; use IItemAPI or core.prefab's ArmorFeatures / ArmorFeatureState / ArmorFeatureTooltip instead.
  • Old behaviour preserved: jetpack_mode is still the hover↔flight toggle; the K key, the tooltip click command path and the /mio_icif toggle argument format are unchanged.

Affected files

  • core added: api/item/IArmorModeFeatureItem.java, prefab/item/ArmorFeatureState.java, prefab/item/ArmorFeatures.java, prefab/item/ArmorFeatureTooltip.java, prefab/flight/JetpackFlightController.java, prefab/flight/JetpackKeyHandler.java.
  • core modified: api/item/IJetpackItem.java, api/item/IItemAPI.java, prefab/item/AbstractElectricArmor.java; removed core/runtime/flight/*.
  • common added: item/armor/ArmorFeatureSlots.java, network/ArmorFeatureCyclePacket.java.
  • common modified: item/armor/ArmorFeatureToggle.java, item/armor/mio_icif_armor_elc.java, item/armor/mio_icif_chestplate_quantum.java, service/item/ItemAPIImpl.java, client/screen/mio_icif_gui_armor_features.java, client/TooltipInteractionHandler.java, command/ToggleCommand.java, network/ArmorFeatureTogglePacket.java, network/JetpackModeSwitchPacket.java, network/mio_icif_Network.java, integration/curios/JetpackCuriosAdapter.java, integration/curios/ElectricFlightRingCurio.java, client/mio_icif_ClientEvents.java, event/mio_icif_events.java, network/mio_icif_KeyboardManager.java, network/JetpackKeyStatePacket.java, Singularity_Iteration.java.
  • Resources: assets/mio_icif/lang/zh_cn.json and en_us.json gained gui.mio_icif.armor_features.empty_back.
  • Docs: docs/addon_development_guide.md gained "9.5 Armor features and jet armor" plus package-boundary/API table/query table/threading/common-error updates; docs/core_addon_guide.md gained "7. Item and equipment contracts" and the package boundary table lists equipment and the flight base.

Verification boundaries

  • gradlew compileJava, gradlew checkCoreArchitecture and gradlew compileAddonExampleJava are all BUILD SUCCESSFUL with 0 errors (only pre-existing deprecation warnings).
  • No in-game smoke test; suggested checks: ① tooltip click toggles and mode lines for the quantum/nano series; ② the Alt GUI showing and switching (toggle inversion, mode cycling); ③ with Curios installed the back-slot jetpack appears on GUI row 5 and its mode can be switched; ④ the K key and the tooltip click paths produce the same state; ⑤ new items default to feature "on".

Charge-Carrying Recipe JEI Shape Fix and Electric Tree Tap Made Shapeless (2026-09-30)

Root cause: shaped "charge carrying" recipes were drawn as one row in JEI / EMI

  • ChargeCarryingRecipe (mio_icif:charge_carrying) previously only implements CraftingRecipe. The crafting table, recipe book, JEI and EMI rely on instanceof ShapedRecipe to get getWidth() / getHeight() for the real shape; without a shape they can only lay getIngredients() out in a single row, producing the misalignment "JEI shows two materials side by side on the first row while the craft actually requires a vertical layout", and the "+" one-click fill placed items in the wrong slots.
  • Fix: ChargeCarryingRecipe now extends ShapedRecipe (super(group, CraftingBookCategory.MISC, pattern, result)). The recipe JSON format, matching logic and charge settlement are all unchanged; getSerializer / assemble / getRemainingItems remain overridden, while matches / canCraftInDimensions / category / getIngredients / isSpecial are handed back to the parent. About 60 shaped charge-carrying recipes (all electric tools) are affected.
  • ChargeCarryingShapelessRecipe (mio_icif:charge_carrying_shapeless) is unchanged: it is still the mod's own implementation, not vanilla ShapelessRecipe. Shapeless recipes are shown as "one row of materials" in viewers, which already matches shapeless semantics, so there is no misalignment.

Electric tree tap recipe changed to "charge carrying - shapeless"

  • data/mio_icif/recipe/shaped_315_treetap_elc.json → shapeless_315_treetap_elc.json: type changed to mio_icif:charge_carrying_shapeless, transfer_charge: true retained, materials are wooden tree tap + small drive handle + LV cable, placeable in any of the three slots; the old 1×2 shaped recipe file was deleted and has no remaining references in the project (the same product no longer shows two recipe pages).
  • The temporary form used during investigation (removing the wooden tree tap from the recipe) was reverted, and the wooden tree tap is a required material again.

Lightning Energy Icon Rendering and Energy Cap Clamping (2026-09-30)

  • Constant semantics clarified: LIGHTNING_WIDTH/HEIGHT are the icon's width and height, while LIGHTNING_TEXTURE_X/Y are the icon's top-left pixel position in the atlas. Fixed the reversed u/v in the base class mio_icif_screen (textureV mistakenly used LIGHTNING_TEXTURE_X), which made drawLightningEnergyFill sample from the wrong row.
  • Render-layer defence: drawLightningEnergyFill's fill height is clamped to LIGHTNING_HEIGHT, and drawProgressArrowFill's fill width is clamped to ARROW_WIDTH. Even if energy > maxEnergy data appears again, it will only show a full bar instead of sampling beyond the atlas component upward/rightward (the previous symptom was "a large area of atlas content painted above the lightning icon, clearly not 14px").
  • Root-cause fix: CustomEUEnergyStorage.setCapacity now clamps the stored amount when the capacity shrinks (scexSetWholePreservingFraction(min(energy, capacity))), fixing energy > capacity caused by "charging to a high value with an overclocker / storage upgrade installed → removing the upgrade drops the cap but not the stored amount". Storages hosted by the independent energy grid use the same strategy via setEnergy (the nominal capacity is not a cap); the deposit refund in InternalPayment.cancel does not go through capacity clamping.
  • Behaviour change: after removing a storage / overclocker upgrade, the EU above the new cap is clamped away (consistent with IC2 machine buffers); machines already out of range in old saves self-heal on the next load (loadAdditional's apiSetEnergy runs after recalculateUpgradeStats).

Recipe and JEI Item List Fixes (2026-09-30)

  • Irradiant uranium ingot recipe now uses a tag: in asp_irradiant_uranium_ingot.json the uranium ingot changed from the hard-coded mio_icif:resource/item_uranium_ingot to the tag c:ingots/uranium. This mod already provides that tag in data/c/tags/item/ingots/uranium.json; crafting with this mod's own ingot is unchanged, and other mods' uranium ingots also work. The other recipes that use the irradiant uranium ingot as a material (asp_irradiant_glass_pane, asp_enriched_sunnarium) are unchanged.
  • Raw silver ore not searchable in JEI: the root cause is that JEI collects its item list from the creative tab's displayItems (log line mezz.jei.library.plugins.vanilla.ingredients.ItemStackListFactory: Items from this group will be missing from the JEI ingredient list), and mio_icif_resources.RAW_SILVER (resource/item_raw_silver_ore, Chinese name "粗银矿", with model / texture / localization all present and no log errors) was the only raw ore item never output.accepted into the creative tab — raw tin / lead / uranium / niobium / titanium all appear in their own subsections. Fix: added output.accept(mio_icif_resources.RAW_SILVER.get()) to the silver subsection in mio_icif_creativeTabs.
  • Lesson: new items must be output.accepted into the creative tab, otherwise JEI silently cannot find them and reports nothing; this mod has no "raw silver ore block" (BLOCK_RAW_* covers only tin / lead / uranium / niobium / titanium), so no block is needed.

Affected files

  • Code: common/recipe/charge_carrying/ChargeCarryingRecipe.java, common/item/mio_icif_creativeTabs.java, core/runtime/energy/CustomEUEnergyStorage.java, common/client/screen/mio_icif_screen.java.
  • Data pack: added data/mio_icif/recipe/shapeless_315_treetap_elc.json, deleted shaped_315_treetap_elc.json, modified data/mio_icif/recipe/asp_irradiant_uranium_ingot.json.

Verification boundaries

  • gradlew compileJava --offline EXIT=0 (only the pre-existing mio_icif_bat deprecation warnings), 0 linter entries.
  • Data pack changes need F3+T or re-entering the world; creative tab / JEI changes need a client restart.
  • Pending in-game verification: ① shaped charge-carrying recipes show their real 3×3 layout in JEI and "+" fills the right slots; ② the electric tree tap crafts with its three materials in any arrangement and inherits charge; ③ after removing an overclocker / storage upgrade the stored amount does not exceed the new cap and the lightning icon no longer paints outside its frame; ④ the irradiant uranium ingot can be crafted from other mods' uranium ingots; ⑤ raw silver ore is searchable in both the creative tab and JEI.

Recipe Ingredient Tag Conversion (2026-10-01)

Hard-coded mio_icif:resource/item_* replaced with common tags

  • A full scan of the 963 recipe files under data/mio_icif/recipe found 202 ingredients still hard-coded as mio_icif:resource/item_*; 127 of them had a semantically equivalent tag and were converted to "tag" form across 116 files.
  • Only ingredients (key / ingredient / input / ingredients) were changed; every result.id output is left untouched. Only tags 1:1 equivalent to the item were used, to avoid widening the recipe semantics.
  • Main mappings:
Hard-coded item Replaced with
item_rubber (30 occurrences) c:rubber
item_*_dust_small c:dusts/small_<material>
item_diamond_dust_small / item_emerald_dust_small c:tiny_dusts/diamond / c:tiny_dusts/emerald (no matching small_ tag)
item_*_ore_crushed / _purified c:crushed_ores/<material> / c:purified_ores/<material>
item_*_denseplate c:dense_plates/<material>
item_*_shaft / *_rotor_blade / item_carbon_rotorblade c:shafts/<material> / c:rotor_blades/<material>
item_ingot_tin / item_silver_ingot / item_alloy_ingot / item_niobium_titanium_ingot c:ingots/tin / c:ingots/silver / c:ingots/alloy / c:ingots/niobium_titanium
item_cf_dust c:dusts/cf
item_irradiant_uranium_ingot mio_icif:irradiant_uranium
item_nano_living_metal / item_plant_extract mio_icif:nano_living_metals / mio_icif:plant_extracts
  • Deliberately left hard-coded (75 occurrences):
    1. item_harz — its tag c:slime_balls would let other mods' slime balls through, and sticky dynamite and rubber production from the extractor are required to keep accepting only this mod's resin;
    2. items with no corresponding tag at all (item_motor, item_heatconductor, item_iridium, item_coil, the item_sunnarium family, item_coal_*, item_zip_coal_block, item_copper_boiler, item_quantum_core, item_shard_iridium, …);
    3. nuclear materials found only in the aggregate tag c:nuclear (24 entries) — item_uran / item_uran_235 / item_uran_238 / item_mox / item_plutonium / item_rtg_pellet and friends — which would make recipes accept any nuclear material.

normal namespace circuit boards switched to circuit tags

  • mio_icif:normal/item_circuit → c:circuits/basic, item_advcircuit → c:circuits/advanced, item_super_circuit → c:circuits/elite, item_living_circuit → c:circuits/ultimate, 18 occurrences across 18 files (advanced drop generator, quantum generator, the various solar panels and solar helmets, molecular transformer, super lapotron crystal, lithium battery, geomagnetic detector, electric wireless manager, EU detector cable, and more).
  • Note: part of the recipes were already using c: tags (such as c:ingots/iron, c:dusts/small_niobium); this round fills in the remaining hard-coded items to match the existing convention.

Generator Blockstates, JEI Item List and Profession Texture Fixes (2026-10-01)

Generator blockstates: vertical variants removed

  • Symptom: every launch logged 20 Unknown value: 'up'/'down' for blockstate property: 'facing' [north, south, west, east] warnings across generator/block_drop_generator, block_advanced_drop_generator, block_experience_generator, block_advanced_experience_generator and block_advanced_semifluid_generator.
  • Root cause: these blocks extend mio_icif_entity_block, whose FACING = HorizontalDirectionalBlock.FACING (east/south/west/north only), yet their blockstate files still declared facing=up / facing=down. block_stirling_generator, wiring/block_cesu and others that also declare vertical variants produce no warning because they declare their own six-direction DirectionalBlock.FACING.
  • Fix: removed the facing=up and facing=down variants from both the active=false and active=true sets in those five files, keeping only the 8 horizontal variants; no block class was changed.
  • Impact: those vertical variants were unreachable at runtime anyway, so model loading no longer errors and the resource pack's missing list stays cleaner.

JEI "奇点迭代" creative tab: 45 duplicate entries

  • Symptom: 45 duplicate items were found in '奇点迭代' creative tab's: displayItems (the AE2 / TFMG / Twilight Forest entries logged alongside come from third-party mods and are unrelated).
  • Detection rule (verified against the JEI sources in ItemStackListFactory.addFromTab): JEI deduplicates by the UID from StackHelper.getUidForStack, where UID = item (when no effective interpreter exists) or List.of(item, subtypeData); and LegacyInterpreterAdapter.getSubtypeData treats an interpreter returning an empty string as "no interpreter". Consequently ① an item that never registered a subtype interpreter degrades to a UID of the item itself, so accepting it twice marks it as a duplicate; ② an interpreter returning the same string for both variants marks it as a duplicate too. The old damageInterpreter returned only the damage value, giving "0" for both the empty and the full variant, so all electric tools, armor and trinkets were affected.
  • Fix (both the empty and the full variant are kept, JEI is simply taught to tell them apart):
    • damageInterpreter → energyInterpreter, returning current energy/max energy (falling back to the damage value for non-energy items), e.g. 0/400000 versus 400000/400000;
    • CF_SPRAYER switched to fluidCellInterpreter (its "full load" writes construction foam into CUSTOM_DATA, unrelated to energy);
    • registered the previously missing CROP_ANALYZER, DIAMOND_DRILLER and TOOL_LASER_MINER;
    • registered the 6 charger blocks (BATBOX / CESU / MFE / MFSU / LESU / EESU_CHARGER) with nbtInterpreter, telling them apart by the energy in BLOCK_ENTITY_DATA.
  • Verification: a script compared the 45 item ids reported in the log against the updated registration table, 45 matched with 0 missing; JEIPlugin.java has no lint errors, and this is the only place in the project registering subtype interpreters, so there are no duplicate registrations.

Zombie villager profession texture added

  • Symptom: rendering the "future trader" in zombie villager form logged Failed to load texture: mio_icif:textures/entity/zombie_villager/profession/future_trader.png (FileNotFoundException plus a full stack trace). VillagerProfessionLayer looks up textures/entity/<villager|zombie_villager>/profession/<profession>.png separately, and this mod only shipped the villager version.
  • Fix: copied villager/profession/future_trader.png (64×64, RGBA) into zombie_villager/profession/, which restores functionality immediately; the zombie villager profession look currently reuses the villager colouring (a little bright).
  • Requirements for a later redraw: keep 64×64 with an alpha channel, lowercase file name, and fully transparent pixels where the overlay should be transparent (this texture is the profession overlay drawn on top of the zombie villager base skin); prefer the zombie palette of vanilla zombie_villager/profession/*.png, and keep the villager and zombie versions independent.

Affected files

  • Data pack: 116 recipe JSON files (resource item tagging) and 18 recipe JSON files (circuit board tagging) under data/mio_icif/recipe/.
  • Resources: block_drop_generator.json, block_advanced_drop_generator.json, block_experience_generator.json, block_advanced_experience_generator.json and block_advanced_semifluid_generator.json under assets/mio_icif/blockstates/generator/; added assets/mio_icif/textures/entity/zombie_villager/profession/future_trader.png.
  • Code: common/client/integration/jei/JEIPlugin.java.

Verification boundaries

  • No Gradle build was run this round; the conclusions come from the in-game session log and static review.
  • Measured: in the session restarted after the fixes (01:51–01:58, exited normally) — blockstate vertical-variant warnings 20 → 0; "奇点迭代" duplicate entries 45 → 0; profession texture Failed to load texture 1 → 0; mio_icif ERROR/FATAL 0; Loaded 13177 recipes with no parse errors.
  • Effective after: data pack and resource changes need re-entering the world / F3+T; JEI subtype changes need a client restart.
  • Pending in-game verification: ① whether other mods' iron ingots / rubber / small dusts can substitute for this mod's materials in the corresponding recipes; ② sticky dynamite and rubber production from the extractor still accept only this mod's resin; ③ the five generators display correctly in all orientations and in both the "working" and "idle" models; ④ JEI shows both the empty and the full subtype for electric tools / armor / trinkets with no duplicate warning.