?? 英文 · ?? 俄语
这是一个用于 NeoForge 1.21.1 的服务端模组,旨在当 Sable 将飞船的方块移入或移出子层级时,保持 CC:Tweaked (ComputerCraft) 的电缆、已连接的有线调制解调器和无线调制解调器完好无损。
开源(MIT): — 完整文档:
README.md
(English) ·
README.ru.md
(Русский)。
我还需要这个模组吗?
通过反编译当前上游构建版本进行验证,而非阅读更新日志:
- Sable 2.0.6(最新的 1.21.1 构建版本,2026-10-03)—— 没有任何修复。
AssemblyTransform.apply(BlockState)
与 Sable 1.2.2(state.rotate(this.rotation),它完全不了解多部件方块)逐字节完全相同,且 SubLevelAssemblyHelper.moveBlocks 仍使用原始
chunk.setBlockState(...) 放置方块,随后才标记和通知它们 —— 2.0.6 增加了更多邻居通知,而非修复顺序问题。Sable 针对 CC:Tweaked 的唯一兼容 mixin 是
WirelessNetworkMixin(距离重定向);它不触及任何电缆、调制解调器或支撑逻辑。
- CC:Tweaked 1.120.2(最新的 1.21.1 构建版本,2026-08-08)——
CableBlock.updateShape、
WirelessModemBlock.updateShape、blockTick 和 connectionsChanged 仍然存在,因此本模组的所有注入点仍然有效,且问题依然存在。
- CC: Sable(插件)也无法修复此问题:其从 1.2.1 到 1.3.4 的更新日志主要涉及 Lua 方块和数学运算,而非电缆或调制解调器。
此模组的作用
- 包装 Sable 传输窗口(
SubLevelAssemblyHelper.moveBlocks),使模组能够知晓方块处于“飞行中”状态。
- 在该窗口期间推迟执行
CableBlock.updateShape 和 WirelessModemBlock.updateShape:否则 CC:Tweaked 会重写电缆并删除已连接的调制解调器,因为其一半邻居暂时变为空气。
- 在 Sable 的
AssemblyTransform.apply 内部旋转 computercraft:cable modem 枚举及其六个连接标志,原版旋转会忽略这些内容 —— 否则调制解调器最终会指向船体内部。
- 在传输后 1、2、10 和 40 刻重新安置并刷新网络:
updateFromNeighbourShapes、setChanged、sendBlockUpdated、updateNeighborsAt、区块扫描以及去重的 5×5×5 区域扫描。
- 使用
WirelessNetwork 重新注册无线调制解调器,并在 CableBlockEntity / WiredModemFullBlockEntity 上重建有线图结构。
0.8.0 — 0.7.3 中的故障修复
neoforge.mods.toml 中将 sable 固定为 [1.2.2,1.2.3),导致 0.7.3 拒绝加载任何 Sable 2.x 版本 —— 即自 2026-06-13 以来发布的每个 Sable 版本。范围现已更改为 [1.2.2,2.1),这是安全的:两个 mixin 目标在 1.2.2 和 2.0.6 中完全相同。
- 有线网络刷新从未真正运行过:它查找名为
connectionsFormed 的字段,而该名称在任何 CC:Tweaked 1.21.1 构建中均不存在(检查了 1.113.1 至 1.120.2 —— 实际字段名为
refreshConnections)。现在刷新器优先尝试 refreshConnections,保留 connectionsFormed 作为回退方案,在可用时使用 scheduleConnectionsChanged / queueRefresh,如果失败则记录一条警告而非保持静默。无线刷新一直正常工作。
- 所有四个 mixin 均使用了
require = 1,且 mixin 配置为 "required": true,因此 Sable 或 CC:Tweaked 未来的重命名会导致服务器启动中止。现在它们已更改为 require = 0 配合 "required": false 及 defaultRequire: 0:模组将以“无辅助功能”降级并显示警告,而不是导致服务器崩溃。
- 模组现在会在启动时打印所找到的 Sable 和 CC:Tweaked 版本信息,以及有线刷新器解析的结果,以便你可以通过
latest.log 确认其是否正在正常工作。
要求
Minecraft 1.21.1 上的 NeoForge 21.1.x,Sable 1.2.2 … 2.0.x,CC:Tweaked 1.116+。请安装在服务端:该模组未注册任何客户端代码,且 Sable 在服务端执行传输操作。CC: Sable 不是依赖项。
俄语
Серверный мод для NeoForge 1.21.1, который сохраняет кабели, подключённые проводные модемы и
беспроводные модемы CC:Tweaked (ComputerCraft) целыми, пока Sable переносит блоки корабля в
суб-уровень и обратно. Открытый код (MIT):
— полная документация:
README.md
(English) ·
README.ru.md
(Русский).
Нужен ли этот мод сейчас
Проверено декомпиляцией актуальных сборок, а не по changelog:
- Sable 2.0.6 (последняя сборка для 1.21.1, 2026-10-03) — ничего не исправлено.
AssemblyTransform.apply(BlockState) байт-в-байт совпадает с Sable 1.2.2 (state.rotate(this.rotation),
который ничего не знает о многочастных блоках), а SubLevelAssemblyHelper.moveBlocks по-прежнему ставит
блоки прямым chunk.setBlockState(...) и лишь потом их отмечает и уведомляет — в 2.0.6 уведомлений стало
больше, порядок не починен. Единственный mixin Sable ради CC:Tweaked — WirelessNetworkMixin (подмена
расстояния); кабели, модемы и проверку опоры он не касается.
- CC:Tweaked 1.120.2 (последняя сборка для 1.21.1, 2026-08-08) —
CableBlock.updateShape,
WirelessModemBlock.updateShape, blockTick и connectionsChanged на месте, то есть все точки внедрения
этого мода актуальны и проблема никуда не делась.
- CC: Sable (надстройка) этого тоже не чинит: её changelog с 1.2.1 по 1.3.4 — про Lua-блоки и математику,
не про кабели и модемы.
Что делает мод
- 封装 Sable 的区块搬运窗口(
SubLevelAssemblyHelper.moveBlocks),以便模组能够感知到区块正在搬运中。
- 在此窗口内延迟执行
CableBlock.updateShape 和 WirelessModemBlock.updateShape:否则 CC:Tweaked 会因一半邻居暂时变为空气而重新生成电缆并移除已连接的调制解调器。
- 在
AssemblyTransform.apply 内部完善对 computercraft:cable 的 modem 枚举及六个连接标志的处理——原版旋转逻辑不会触及这些字段,否则调制解调器会“穿透”外壳工作。
- 在搬运后的 1、2、10 和 40 个刻依次触发网络更新与刷新:包括
updateFromNeighbourShapes、setChanged、sendBlockUpdated、updateNeighborsAt、区块遍历以及去重后的 5×5×5 区域遍历。
- 重新注册无线调制解调器至
WirelessNetwork,并重建 CableBlockEntity / WiredModemFullBlockEntity 中的有线网络图结构。
0.8.0 — 修复 0.7.3 中的破坏性变更
neoforge.mods.toml 中将依赖限制为 sable = [1.2.2,1.2.3),导致 0.7.3 无法加载任何 Sable 2.x 版本——即所有 2026-06-13 之后发布的 Sable 均不可用。现范围调整为 [1.2.2,2.1),这是安全的:因为 mixin 目标在 1.2.2 和 2.0.6 中完全一致。
- 有线网络重建从未真正执行过:原代码查找不存在的字段
connectionsFormed(经检查,所有 1.21.1 版本的 CC:Tweaked 构建中均无此字段;从 1.113.1 到 1.120.2 的版本中该字段名为 refreshConnections)。现在优先查找 refreshConnections,connectionsFormed 作为后备选项保留,并使用 scheduleConnectionsChanged / queueRefresh;若全部失败则仅打印一条警告而非静默忽略。无线刷新功能一直正常工作。
- 所有四个 mixin 原本设置
require = 1,且配置文件包含 "required": true,这意味着未来 Sable 或 CC:Tweaked 的任何重命名都会导致服务器启动中断。现在改为 require = 0、"required": false 以及 defaultRequire: 0:模组将降级为“不提供辅助”状态并附带警告,而非直接崩溃服务器。
- 模组现在会在启动时打印所检测到的 Sable 和 CC:Tweaked 版本号,以及有线 refresher 实际启用的情况,因此用户可通过查看
latest.log 确认其是否生效。
要求
NeoForge 21.1.x,Minecraft 1.21.1,Sable 1.2.2 … 2.0.x,CC:Tweaked 1.116+。请安装在服务端:
本模组未注册任何客户端代码,且区块搬运由 Sable 在服务端执行。CC:Tweaked 并非 Sable 的依赖项。
?? English · ?? Русский
A server-side NeoForge 1.21.1 mod that keeps CC:Tweaked (ComputerCraft) cables, attached wired
modems and wireless modems intact while Sable moves a ship's blocks into and out of a sub-level.
Open source (MIT): — full docs:
README.md
(English) ·
README.ru.md
(Русский).
Do I still need this mod?
Verified by decompiling the current upstream builds, not by reading changelogs:
- Sable 2.0.6 (latest 1.21.1 build, 2026-10-03) — nothing is fixed.
AssemblyTransform.apply(BlockState)
is byte-for-byte identical to Sable 1.2.2 (state.rotate(this.rotation), which knows nothing about
multipart blocks), and SubLevelAssemblyHelper.moveBlocks still places blocks with raw
chunk.setBlockState(...) and only marks/notifies them afterwards — 2.0.6 added more neighbour
notifications rather than fixing the ordering. Sable's only CC:Tweaked compatibility mixin is
WirelessNetworkMixin (a distance redirect); it touches no cable, modem or support logic.
- CC:Tweaked 1.120.2 (latest 1.21.1 build, 2026-08-08) —
CableBlock.updateShape,
WirelessModemBlock.updateShape, blockTick and connectionsChanged are all still present, so every
injection point of this mod is still valid, and the problem is still there.
- CC: Sable (the addon) does not fix it either: its changelogs from 1.2.1 to 1.3.4 are about Lua blocks
and math, not about cables or modems.
What this mod does
- Wraps the Sable transfer window (
SubLevelAssemblyHelper.moveBlocks) so the mod knows when blocks are
mid-flight.
- Defers
CableBlock.updateShape and WirelessModemBlock.updateShape during that window: CC:Tweaked would
otherwise rewrite the cable and delete the attached modem because half its neighbours are temporarily air.
- Rotates the
computercraft:cable modem enum and its six connection flags inside Sable's
AssemblyTransform.apply, which vanilla rotation leaves untouched — otherwise the modem ends up pointing
through the hull.
- Re-settles and refreshes the network 1, 2, 10 and 40 ticks after the transfer:
updateFromNeighbourShapes,
setChanged, sendBlockUpdated, updateNeighborsAt, a chunk scan and a deduplicated 5×5×5 area scan.
- Re-registers wireless modems with
WirelessNetwork and rebuilds the wired graph on
CableBlockEntity / WiredModemFullBlockEntity.
0.8.0 — what was broken in 0.7.3
neoforge.mods.toml pinned sable = [1.2.2,1.2.3), so 0.7.3 refused to load with any Sable 2.x — that
is every Sable released since 2026-06-13. The range is now [1.2.2,2.1), which is safe: the two mixin
targets are identical in 1.2.2 and 2.0.6.
- The wired network refresh never actually ran: it looked for a field named
connectionsFormed, and that
name exists in no CC:Tweaked 1.21.1 build (checked 1.113.1 through 1.120.2 — the field is
refreshConnections). The refresher now tries refreshConnections first, keeps connectionsFormed as a
fallback, uses scheduleConnectionsChanged / queueRefresh when available, and logs one warning if it
fails instead of staying silent. The wireless refresh always worked.
- All four mixins used
require = 1 and the mixin config was "required": true, so a future rename in Sable
or CC:Tweaked would abort server startup. They are now require = 0 with "required": false and
defaultRequire: 0: the mod degrades to "no help" with a warning instead of crashing the server.
- The mod now prints at startup which Sable and CC:Tweaked versions it found and what the wired refresher
resolved, so you can tell from
latest.log whether it is actually working.
Requirements
NeoForge 21.1.x on Minecraft 1.21.1, Sable 1.2.2 … 2.0.x, CC:Tweaked 1.116+. Install it on the
server: the mod registers no client code, and Sable performs the transfer server-side. CC: Sable is not
a dependency.
Русский
Серверный мод для NeoForge 1.21.1, который сохраняет кабели, подключённые проводные модемы и
беспроводные модемы CC:Tweaked (ComputerCraft) целыми, пока Sable переносит блоки корабля в
суб-уровень и обратно. Открытый код (MIT):
— полная документация:
README.md
(English) ·
README.ru.md
(Русский).
Нужен ли этот мод сейчас
Проверено декомпиляцией актуальных сборок, а не по changelog:
- Sable 2.0.6 (последняя сборка для 1.21.1, 2026-10-03) — ничего не исправлено.
AssemblyTransform.apply(BlockState) байт-в-байт совпадает с Sable 1.2.2 (state.rotate(this.rotation),
который ничего не знает о многочастных блоках), а SubLevelAssemblyHelper.moveBlocks по-прежнему ставит
блоки прямым chunk.setBlockState(...) и лишь потом их отмечает и уведомляет — в 2.0.6 уведомлений стало
больше, порядок не починен. Единственный mixin Sable ради CC:Tweaked — WirelessNetworkMixin (подмена
расстояния); кабели, модемы и проверку опоры он не касается.
- CC:Tweaked 1.120.2 (последняя сборка для 1.21.1, 2026-08-08) —
CableBlock.updateShape,
WirelessModemBlock.updateShape, blockTick и connectionsChanged на месте, то есть все точки внедрения
этого мода актуальны и проблема никуда не делась.
- CC: Sable (надстройка) этого тоже не чинит: её changelog с 1.2.1 по 1.3.4 — про Lua-блоки и математику,
не про кабели и модемы.
Что делает мод
- Оборачивает окно переноса Sable (
SubLevelAssemblyHelper.moveBlocks), чтобы мод знал, когда блоки в пути.
- Откладывает
CableBlock.updateShape и WirelessModemBlock.updateShape в это окно: иначе CC:Tweaked
пересобирает кабель и удаляет подключённый модем, потому что половина соседей временно — воздух.
- Докручивает перечисление
modem и шесть флагов соединения у computercraft:cable внутри
AssemblyTransform.apply — ванильный поворот их не трогает, и модем смотрел бы сквозь обшивку.
- Досаживает и обновляет сеть через 1, 2, 10 и 40 тиков после переноса:
updateFromNeighbourShapes,
setChanged, sendBlockUpdated, updateNeighborsAt, обход чанка и дедуплицированный обход области 5×5×5.
- Перерегистрирует беспроводные модемы в
WirelessNetwork и перестраивает проводной граф у
CableBlockEntity / WiredModemFullBlockEntity.
0.8.0 — что было сломано в 0.7.3
neoforge.mods.toml пинил sable = [1.2.2,1.2.3), поэтому 0.7.3 отказывался грузиться с любым Sable
2.x — а это весь Sable, вышедший после 2026-06-13. Диапазон теперь [1.2.2,2.1), и это безопасно: обе
цели mixin идентичны в 1.2.2 и 2.0.6.
- Перестройка проводной сети никогда не выполнялась: искалось поле
connectionsFormed, которого нет ни в
одной сборке CC:Tweaked для 1.21.1 (проверено с 1.113.1 по 1.120.2 — поле называется refreshConnections).
Теперь сначала ищется refreshConnections, connectionsFormed остаётся запасным, используются
scheduleConnectionsChanged / queueRefresh, а при неудаче пишется одно предупреждение вместо молчания.
Беспроводной refresh работал всегда.
- Все четыре mixin'а имели
require = 1, а конфиг — "required": true, поэтому будущее переименование в
Sable или CC:Tweaked прерывало бы запуск сервера. Теперь require = 0, "required": false и
defaultRequire: 0: мод деградирует до «не помогает» с предупреждением, а не роняет сервер.
- Мод теперь печатает при запуске, какие версии Sable и CC:Tweaked найдены и что реально разрешил проводной
refresher, так что можно увидеть в
latest.log, работает ли он.
Требования
NeoForge 21.1.x на Minecraft 1.21.1, Sable 1.2.2 … 2.0.x, CC:Tweaked 1.116+. Ставить на сервер:
мод не регистрирует клиентского кода, и Sable делает перенос на сервере. CC: Sable зависимостью не
является.
评论 0
登录后参与评分
还没有评论,来抢沙发吧