God Damn Repackager
⚠️ ALPHA
该模组处于早期测试阶段。它使用 Mixin 修改 Create 的重新打包器核心逻辑,尚未进行大规模、长期的稳定性测试。使用前请备份你的世界。 欢迎在项目页面上提交错误报告。
ℹ️ 如果你使用的是 0.2.0: 0.2.0 可能导致在已有世界中“下订单后只有部分重新打包器生效”(例如 9 个中仅 6 个工作),这要求你重新放置重新打包器。此问题已在 0.2.1 中修复——只需升级,无需重新放置。请参阅 已知限制。
ℹ️ 从 0.5.0 升级到 0.5.1: 0.5.1 重写了保险箱的身份标识方案(从基于几何形状的 BoundingBox 改为稳定的 UUID),修复了 0.5.0 在重塑或部分破坏正在处理中的保险箱时可能出现的物品重复/丢失漏洞。0.5.0 格式的 SavedData 与 0.5.1 不兼容——升级时,系统会在加载时检测并清除旧版池(日志中将包含一条 [GDR-POOL] detected legacy BoundingBox-keyed SavedData 警告)。请在升级前让任何活跃订单完成;升级后池子将为空,新订单可正常工作。
God Damn Repackager 使所有连接到同一个输入保险箱的重新打包器共享工作量。
N 个重新打包器 ≈ N 倍吞吐量。支持 Forge 1.20.1 和 NeoForge 1.21.1。
支持的平台与版本
本模组为两组 MC / 加载器组合维护,功能完全相同。请选择适合你设置的 jar 包。
|
Forge 构建版 |
NeoForge 构建版 |
| Minecraft |
1.20.1 |
1.21.1 |
| Loader |
Forge 47.x |
NeoForge 21.1.x |
| Create (必需依赖) |
6.0.x (已测试 6.0.8) |
6.0.x (已测试 6.0.10) |
| 模组版本 |
0.5.1-forge |
0.5.1-neoforge |
| Jar 文件名 |
goddamnrepackager-0.5.1-forge-alpha.jar |
goddamnrepackager-0.5.1-neoforge-alpha.jar |
根据你的整合包使用的是 Forge 还是 NeoForge 来选择。
如果不确定:推荐新建/单人整合包使用 NeoForge 1.21.1(更现代);
现有存档或基于 Forge 的整合包请继续使用 Forge 1.20.1。
两个构建版功能完全一致:共享包裹池并行处理 (0.4.0) + 部分重新打包
(0.5.0 — 只要有材料到达即可开始制作) + 基于 UUID 的保险箱身份标识
(0.5.1 — 重塑或部分破坏保险箱时,池子数据不会因重复或丢失而中断)。
遇到的问题
在原版 Create 6.0+ 中,当你通过库存管理员为你的制造阵列下达大型制作订单时(例如“制作 1000 个铁块”),整个订单由单个重新打包器处理。即使你的输入保险箱周围环绕着多个重新打包器,也只有一个在工作——其余的都闲置。一个重新打包器每秒只能发出一个包裹(20刻动画周期),因此大型订单需要非常长的时间。
速度对比
| 场景 |
原版 |
使用本模组后 |
| 1000 次制作,1 个重新打包器 |
~1000秒 |
~1000秒(无变化) |
| 1000 次制作,3 个重新打包器 |
~1000秒(2 个闲置) |
~333秒 |
| 1000 次制作,9 个重新打包器 |
~1000秒(8 个闲置) |
~111秒 |
使用方法
无需配置——开箱即用。 像往常一样建造你的制造阵列:
Stockkeeper ──order──> Frogport ships materials ──> Input Vault (holds material packages)
↓
Multiple Repackagers (redstone block = always on)
↓
Packager (unwraps) → Mechanical Crafter → Output
只要多个重新打包器连接到同一个输入保险箱,本模组就会自动实现并行化。重新打包器必须放置在 Create 的 Vault 旁边。
工作原理
0.4.0 不再让每个重新打包器将整单货物囤积在自己的发送队列中,而是使用按保险箱划分的共享包裹池(存储在世界保存文件中):
- 存入 —— 当重新打包器完成组装订单所需的包裹时,整个批次会进入与其服务的保险箱关联的共享池中,而不是放入其私有的队列。
- 按需拉取 —— 每刻,每个空闲的重新打包器会从池中取出一个包裹放入自己的队列,然后正常发货。N 个重新打包器真正实现了每秒 N 个包裹的吞吐量。
- 动态适应 —— 因为每个重新打包器按需获取工作,如果一个重新打包器停滞(下游堵塞),它将停止拉取工作,其任务会被空闲的兄弟节点自然接管。不需要额外的平衡层。
部分重新打包(0.5.0 新增): 原版重新打包器会等待订单的所有材料碎片全部到达后才开始操作(全有或全无)。由于碎片通过网络运输逐渐到达,大型订单会浪费很长的“等待最后一块材料”的时间。0.5.0 允许重新打包器在到达的材料足以至少制作一件物品时就开始工作:可用材料立即被制作并发出,每一批新到达的材料继续推进订单直到完成。材料在整个过程中守恒——未使用的剩余部分保存在世界文件中,如果保险箱被破坏则会完整掉落。
基于 UUID 的保险箱身份标识(0.5.1 新增): 每个保险箱都被分配一个稳定的 UUID,重新打包器通过该 UUID 找到其共享池。UUID 会随着 Create 的多方块拆分/重组钩子随保险箱一起移动——重塑保险箱(添加/移除方块)不会改变键值,部分破坏(剩余方块重组为较小的保险箱)会继承原始 UUID,从而使池子无缝继续工作。这完全修复了 0.5.0 的问题,即在重塑期间不同的重新打包器可能会看到同一保险箱的不同几何快照,偶尔导致池子分裂并引发物品重复或丢失。
针对矿车方块破坏的逐块 1/N 资源池排放(0.5.1 后续更新,“A 计划”): 原始的 0.5.1 版本仅在完全拆解时掉落整个资源池作为 PackageItem 外壳(单个矿车方块爆炸导致积压量超过其自身物理容量,并以不熟悉的实体形式出现)。A 计划现在在每次矿车方块被破坏时(无论是部分还是完全破坏),都会从资源池中排放出 1/N 的份额,其中 N 是破坏前矿车的方块数量:取出的包裹会被解包为其内部内容(普通的 ItemStack,无接收者地址),并作为普通物品实体掉落至被破坏方块的位置。剩余的方块会重组为一个继承相同 UUID 的更小的矿车,而资源池中剩余的 (N-1)/N 部分继续通过重组机流动。逐个破坏方块会每次排放 1/N 的份额,最后一个方块(N=1)会排空剩余部分——总掉落量等于“一次性破坏整个矿车”本应掉落的量。通过添加方块重塑矿车形状不会导致掉落——资源池将迁移到新的形状并继续流动。注意:通过移除方块重塑矿车形状遵循相同的破坏路径,因此撤销重塑操作时将掉落资源池的 1/N 作为物品(捡起它们——这些是已制作完成的产品且可直接使用)。
关于破坏方块的说明(0.5.1+ A 计划): 共享资源池随世界保存,与任何单独的方块无关。
破坏一个重组机不会掉落仍在资源池中的包裹——它们安全地保存在存档中,
重新放置重组机即可恢复处理(没有任何损失)。当任何矿车方块被破坏时(无论是部分还是完全拆解),该方块“拥有”的资源池份额(当前积压量的 1/N,其中 N 为破坏前矿车的方块数量)将被解包为其内部内容,并作为普通物品实体掉落至被破坏方块的位置。剩余的方块会重组为一个继承相同 UUID 的更小的矿车,而资源池中剩余的 (N-1)/N 部分继续通过重组机流动。当你逐个破坏矿车方块时,每次破坏都会掉落其 1/N 的份额,最后一个方块(N=1)会排空剩余部分——总掉落量等于“一次性破坏整个矿车”本应掉落的量。通过添加方块重塑矿车形状(扩展矿车)不会导致资源池掉落——它迁移到新形状并继续流动。注意:通过移除方块重塑矿车形状遵循相同的破坏路径,因此撤销重塑操作将掉落资源池的 1/N 作为物品(捡起它们——它们是已制作完成的产品且可用)。重组机遵循原版 Create 的红石逻辑:仅在通电时工作。
安装
两个构建版本的安装方式相同——仅 jar 文件和 Create 版本不同:
- 安装匹配的 Minecraft + 加载器 组合(参见上方的 Supported platforms)
- 安装 Create 6.0.x(必需依赖项;版本见上方表格)
- 将匹配的
goddamnrepackager-*.jar 放入 .minecraft/mods/ 目录
- 启动游戏
从 0.2.0 升级? 只需替换 jar 文件。0.2.0 版本以前要求在现有世界中重新放置重组机;0.2.1 修复了此问题——升级后无需重新放置。请参阅 Known Limitations。
从 0.3.x / 0.4.x 升级? 只需替换 jar 文件——无需重新放置,进行中的订单不受影响。0.5.0 在共享资源池之上增加了部分重组功能(一旦有任何材料到达即可开始制作);您将自动受益,无需任何设置。
从 0.5.0 升级到 0.5.1? 只需替换 jar 文件——无需重新放置。但是,0.5.1 将矿车身份方案从 BoundingBox 切换为 UUID,因此 0.5.0 格式的资源池数据不兼容并在加载时会被清除(伴随 [GDR-POOL] detected legacy BoundingBox-keyed SavedData 日志警告)。请在升级前让任何进行中的订单完成;升级后资源池将为空,新订单可正常工作。
兼容性
- ✅ 已测试:
- MC 1.20.1 + Forge 47.2.0 + Create 6.0.8
- MC 1.21.1 + NeoForge 21.1.x + Create 6.0.10
- ✅ 已在整合包环境和多人服务器中与其他模组一起测试——无冲突
- ⚠️ 仅针对 Create 6.0.x 物流系统;不兼容 Create 0.5.1 及更早版本
- ⚠️ Forge 1.20.1 和 NeoForge 1.21.1 独立维护且功能一致;Fabric 端口可能稍后推出
已知限制
在已存在的世界中安装后,需要重新放置重组器。 (已在 0.2.1 修复) 0.2.0 版本可能导致在已有世界中出现“下单后仅部分重组器正常工作”的问题(例如 9 个中只有 6 个可用)——这种情况在多人服务器中比在新建单人世界中更为常见。原因:0.2.0 版本通过缓存的 Forge 能力实例的身份标识(==)来识别同级重组器,而每当保险箱的能力被失效时,该实例会被重建,因此模组存在之前放置的重组器可能持有指向不同代际的缓存,从而导致检查失败。0.2.1 修复方案: 现在通过 Create 的 InventoryIdentifier 值相等性来匹配同级重组器(对于保险箱:使用仅比较多维块角坐标的 Bounds(BoundingBox) 记录),这在能力重建过程中保持稳定。升级至 0.2.1 即可解决此问题——无需重新放置。(技术细节见 TECHNICAL.md §3.7。)
当前的实现是“负载均衡快照分配”... (0.3.0 在此基础上增加了动态再平衡;0.4.0 则用共享包裹池取代了上述两种机制) —— 0.4.0 将每个组装好的批次存入按保险箱划分的共享池中,空闲的重组器按需从中轮询,以更简单的逻辑实现了相同的并行/动态平衡效果。
- 破坏重组器不会掉落共享池中的内容 (0.4.0)。 共享池随世界保存,不与方块绑定。破坏重组器仅会掉落其正在运输中的单个包裹(heldBox);仍留在池中的包裹会保存在存档中,并在重组器被替换后恢复处理——没有任何丢失。破坏保险箱方块(部分或完全拆解)会在破坏方块的坐标位置掉落 1/N 的共享池内容,且这些内容以未包装的内部物品实体形式掉落(其中 N = 保险箱破坏前的方块数量;Plan A,0.5.1+)。每次破坏都会掉落其 1/N 的份额,最后一个方块(N=1)则会清空剩余部分。通过添加方块进行重塑不会导致掉落——共享池会迁移到新形状并继续处理。注意:通过移除方块进行重塑遵循破坏路径,将会掉落其 1/N 的份额——请拾取它们(它们是已制作好的产品,可直接使用)。
- 逐步制作的订单至少需要一个通电的重组器 (0.5.0)。 一旦订单被“接管”(已开始部分重组),就需要保险箱上至少有一个红石供电的重组器以确保持续进展。移除所有重组器或切断其电源会使订单暂停——未使用的材料安全地保留在世界存档中(如果保险箱被破坏则会掉落);重新放置一个重组器并为其供电即可恢复。没有制作配方的订单(普通物品订单)永远不会被接管,其行为与原版完全一致。
- 重组器必须连接到 Create 的 Vault(保险箱)。其他容器(Crates、原版箱子)理论上支持但未经充分测试。
许可证
MIT License — 可自由使用、修改和分发。源代码及完整技术文档(架构、开发陷阱、路线图)位于项目 GitHub 页面。
鸣谢
- Create 及其作者 simibubi —— 一个出色的模组,本项目正是基于此构建。
God Damn Repackager
⚠️ ALPHA
This mod is in early testing. It uses a Mixin to modify Create's repackager core logic and
has not yet undergone large-scale, long-term stability testing. Back up your world before
using it. Bug reports are welcome on the project page.
ℹ️ If you used 0.2.0: 0.2.0 could cause "only some repackagers work after placing an order"
(e.g. 6 of 9) in an existing world, requiring you to re-place the repackagers. Fixed in 0.2.1 —
just upgrade, no re-placement needed. See Known Limitations.
ℹ️ Upgrading from 0.5.0 to 0.5.1: 0.5.1 rewrites the vault identity scheme (from a geometry-derived
BoundingBox to a stable UUID), fixing item duplication/loss bugs that 0.5.0 could hit when reshaping
or partially breaking a vault mid-order. 0.5.0-format SavedData is not compatible with 0.5.1 — on
upgrade, the legacy pool is detected and cleared on load (the log will contain a
[GDR-POOL] detected legacy BoundingBox-keyed SavedData warning). Let any active orders finish
before upgrading; the pool is empty after upgrade, new orders work normally.
God Damn Repackager makes all repackagers attached to the same input vault share the work.
N repackagers ≈ N× throughput. Available for both Forge 1.20.1 and NeoForge 1.21.1.
Supported platforms & versions
This mod is maintained for two MC / loader combinations with identical functionality. Pick the
jar that matches your setup.
|
Forge build |
NeoForge build |
| Minecraft |
1.20.1 |
1.21.1 |
| Loader |
Forge 47.x |
NeoForge 21.1.x |
| Create (required dep) |
6.0.x (tested 6.0.8) |
6.0.x (tested 6.0.10) |
| Mod version |
0.5.1-forge |
0.5.1-neoforge |
| Jar filename |
goddamnrepackager-0.5.1-forge-alpha.jar |
goddamnrepackager-0.5.1-neoforge-alpha.jar |
Choose based on whether your pack runs Forge or NeoForge.
If you're unsure: NeoForge 1.21.1 is recommended for new/single-player packs (more modern);
stick with Forge 1.20.1 for existing saves or Forge-based packs.
Both builds are feature-identical: shared-package-pool parallelism (0.4.0) + partial repackaging
(0.5.0 — start crafting as soon as any materials arrive) + UUID-based vault identity
(0.5.1 — pools survive reshape / partial vault break without duplication or loss).
The Problem
In vanilla Create 6.0+, when you place a large crafting order through the Stockkeeper for your
crafter array (e.g. "craft 1000 iron blocks"), the entire order is processed by a single
Repackager. Even if your input vault is surrounded by repackagers, only one of them does any
work — the rest sit idle. A repackager emits only one package per second (20-tick animation
cycle), so large orders take a very long time.
Speed Comparison
| Scenario |
Vanilla |
With this mod |
| 1000 crafts, 1 repackager |
~1000s |
~1000s (unchanged) |
| 1000 crafts, 3 repackagers |
~1000s (2 idle) |
~333s |
| 1000 crafts, 9 repackagers |
~1000s (8 idle) |
~111s |
Usage
No configuration required — works out of the box. Build your crafter array as usual:
Stockkeeper ──order──> Frogport ships materials ──> Input Vault (holds material packages)
↓
Multiple Repackagers (redstone block = always on)
↓
Packager (unwraps) → Mechanical Crafter → Output
As long as multiple repackagers are attached to the same input vault, this mod automatically
parallelizes them. Repackagers must be placed against a Create Vault.
How it works
Instead of each repackager hoarding an entire order in its own send queue, 0.4.0 uses a per-vault shared
package pool (stored in the world save):
- Deposit — when a repackager finishes assembling an order's packages, the whole batch goes into the
shared pool keyed by the vault it serves, rather than into its own private queue.
- Poll on demand — every tick, each idle repackager pulls one package out of the pool into its own
queue, then ships it as normal. N repackagers genuinely ship N packages/second.
- Inherently dynamic — because each repackager pulls work on demand, a stalled repackager (its
downstream clogged) simply stops polling and its work is naturally picked up by idle siblings. No
separate rebalance layer is needed.
Partial repackaging (new in 0.5.0): vanilla repackagers wait until ALL of an
order's material fragments have arrived before doing anything (all-or-nothing). Fragments trickle in
over the transport network, so large orders waste a long "waiting for the last piece" window. 0.5.0
lets repackagers start as soon as the arrived fragments afford at least one craft: available materials
are crafted and shipped immediately, and each newly arrived batch continues the order until it's done.
Materials are conserved end-to-end — unused leftovers are held in the world save and drop in full if
the vault is broken.
UUID-based vault identity (new in 0.5.1): each vault is assigned a stable UUID and repackagers
find their shared pool by that UUID. The UUID travels with the vault through Create's multiblock
split/reform hooks — reshaping a vault (adding/removing blocks) leaves the key unchanged, and a partial
break (the remaining blocks re-form into a smaller vault) inherits the original UUID, so the pool keeps
working seamlessly. This fully fixes the 0.5.0 issue where different repackagers saw different geometric
snapshots of the same vault during a reshape, occasionally splitting the pool and causing item
duplication or loss.
Per-block 1/N drain on vault block break (0.5.1 follow-up, "Plan A"): the original 0.5.1 only dropped
the entire pool as PackageItem shells at full teardown (single vault block exploding a backlog exceeding
its own physical capacity, in an unfamiliar entity form). Plan A now drains a 1/N share of the pool
on every vault block break (partial or full), where N is the vault's pre-break block count: the
packages taken are unpacked to their inner contents (plain ItemStacks, no recipient address) and
dropped as ordinary item entities at the broken block's position. The remaining blocks re-form into a
smaller vault that inherits the same UUID, and the remaining (N-1)/N of the pool keeps flowing through
repackagers. Breaking the blocks one by one drops 1/N at a time, and the last block (N=1) drains the
remainder — the total dropped equals what "break the whole vault at once" would have dropped. Reshape
by adding blocks does NOT drop — the pool migrates to the new shape and keeps flowing. Note: reshape
by removing a block follows the same break path, so undoing a reshape will drop 1/N of the pool as
items (pick them up — they're already-crafted products and usable).
Note on breaking blocks (0.5.1+ Plan A): the shared pool is saved with the world, independent of any block.
Breaking a repackager does not drop the packages still in the pool — they're kept safely in the save,
and placing the repackager back resumes processing (nothing is lost). When any vault block is broken (either
partial or full teardown), the share of the pool "owned" by that block (1/N of the current backlog, where N is
the vault's pre-break block count) is unpacked to its inner contents and dropped as ordinary item entities at
the broken block's position. The remaining blocks re-form into a smaller vault that inherits the same UUID, and
the remaining (N-1)/N of the pool keeps flowing through repackagers. When you break vault blocks one by one,
each break drops its 1/N share, and the last block (N=1) drains the remainder — the total dropped equals what
"break the whole vault at once" would have dropped. Reshape by adding blocks (expanding the vault) does
not drop the pool — it migrates to the new shape and keeps flowing. Note: reshape by removing a block
follows the same break path, so undo a reshape will drop 1/N of the pool as items (pick them up — they're
already-crafted products and usable). Repackagers respect vanilla Create redstone: they only work when powered.
Installation
Installation is identical for both builds — only the jar and Create version differ:
- Install the matching Minecraft + loader combo (see Supported platforms above)
- Install Create 6.0.x (required dependency; version per the table above)
- Drop the matching
goddamnrepackager-*.jar into .minecraft/mods/
- Launch the game
Upgrading from 0.2.0? Just replace the jar. 0.2.0 used to require re-placing repackagers in an
existing world; 0.2.1 fixed this — no re-placement needed after upgrade. See
Known Limitations.
Upgrading from 0.3.x / 0.4.x? Just replace the jar — no re-placement needed, in-flight orders
are unaffected. 0.5.0 adds partial repackaging on top of the shared pool (start crafting as soon
as any materials arrive); you benefit automatically with zero setup.
Upgrading from 0.5.0 to 0.5.1? Just replace the jar — no re-placement needed. However, 0.5.1
switches the vault identity scheme from a BoundingBox to a UUID, so 0.5.0-format pool data is not
compatible and will be cleared on load (with a [GDR-POOL] detected legacy BoundingBox-keyed SavedData log warning). Let any active orders finish before upgrading; the pool is empty after
upgrade, new orders work normally.
Compatibility
- ✅ Tested:
- MC 1.20.1 + Forge 47.2.0 + Create 6.0.8
- MC 1.21.1 + NeoForge 21.1.x + Create 6.0.10
- ✅ Tested in modpack environments and on multiplayer servers alongside other mods — no conflicts
- ⚠️ Targets the Create 6.0.x logistics system only; not compatible with Create 0.5.1 and earlier
- ⚠️ Forge 1.20.1 and NeoForge 1.21.1 are maintained independently with identical features; a Fabric
port may come later
Known Limitations
Re-place repackagers after installing into an existing world. (Fixed in 0.2.1) 0.2.0 could
cause "only some repackagers work after placing an order" (e.g. 6 of 9) in a world that already existed —
far more often on multiplayer servers than in fresh single-player worlds. Cause: 0.2.0 identified sibling
repackagers by the identity (==) of the Forge capability instance they cached, which is rebuilt whenever
the vault's capability is invalidated, so repackagers placed before the mod existed could hold caches
pointing at different generations and fail the check. 0.2.1 fix: siblings are now matched by Create's
InventoryIdentifier value equality (for vaults: a Bounds(BoundingBox) record comparing only the
multiblock's corner coordinates), which is stable across capability rebuilds. Upgrading to 0.2.1 resolves
this — no re-placement needed. (Technical detail in TECHNICAL.md §3.7.)
The current implementation is "load-balanced snapshot allocation"... (0.3.0 added dynamic
rebalancing on top; 0.4.0 replaced both with a shared package pool) — 0.4.0 deposits each
assembled batch into a per-vault shared pool that idle repackagers poll from on demand, giving the
same parallel/dynamic-balancing effect with simpler logic.
- Breaking a repackager does NOT drop the shared pool (0.4.0). The pool is saved with the world,
not tied to the block. Breaking a repackager only drops the single package it was mid-shipping
(heldBox); packages still in the pool stay in the save and resume when the repackager is replaced —
nothing is lost. Breaking a vault block (partial or full teardown) drops 1/N of the pool
unpacked to inner item entities at the broken block's position (where N = the vault's pre-break
block count; Plan A, 0.5.1+). Each break drops its 1/N share, and the last block (N=1) drains the
remainder. Reshaping by adding blocks does NOT drop — the pool migrates to the new shape and
processing continues. Note: reshaping by removing a block follows the break path and will drop
its 1/N share — pick them up (they're already-crafted products and usable).
- An order being progressively crafted needs at least one powered repackager (0.5.0). Once an
order is "taken over" (partial repackaging has begun), it needs at least one redstone-powered
repackager on the vault to keep progressing. Removing all repackagers or cutting their power
pauses the order — unused materials stay safely in the world save (and drop if the vault is
broken); place a repackager back and power it to resume. Orders without crafting recipes
(plain item orders) are never taken over and behave exactly like vanilla.
- Repackagers must be attached to a Create Vault. Other containers (Crates, vanilla chests) are
theoretically supported but not fully tested.
License
MIT License — free to use, modify, and distribute. Source code and a full technical writeup
(architecture, dev pitfalls, roadmap) are on the project GitHub.
Credits
- Create and its author simibubi —
an outstanding mod that this project builds upon.
评论 0
登录后参与评分
还没有评论,来抢沙发吧