TaCZ Refabricated — 非官方 Fabric 移植版
非官方社区移植版。这不是 TACZ 的官方版本,且与 TACZ 开发团队无关,未经其审核或认可。
Timeless and Classics Guns: Zero (TaCZ) 是一款枪械模组,支持自定义枪械——包括配件、光学瞄具、弹药类型和动画——并配有枪匠工作台以及对第三方枪械包的支持。本项目将该模组移植到新版 Minecraft 的 Fabric 平台。它不添加任何新枪械或内容:目标是让现有模组及其枪械包生态继续运行。
此 jar 文件已内置两项内容——请勿单独安装其中任何一项:
- 内置的 TacZ Mesh Loader (TML),使高多边形
mesh 枪械包可直接使用;
- 仅代码实现的 LRTactical 兼容层,用于刀具/近战/投掷物包。
可玩,但处于积极测试阶段——预期会有漏洞,请备份存档。部分 R3 物品仍待游戏内验证(详见已知问题)。
致谢
|
|
| 原版模组 |
Timeless and Classics Guns: Zero by TACZ Dev Team |
| 上游 Fabric 移植版 |
Sh1roCu/TACZ-Refabricated (基准版本 1.1.8-hotfix) |
| 内置网格渲染器 |
TacZ Mesh Loader by VellEagle —— 在此移植并扩展 (GPL-3.0) |
| 内置 LR 层 |
LRTactical by LesRaisins —— 仅代码实现 (GPL-3.0) |
| 源代码 |
q14433686-arch/TaCZ_Refabricated_Unofficial |
与原版的变化
不仅仅是重新编译——目标版本移除或重构了若干 API:
- 重新实现了准星渲染(上游使用的模板缓冲区已不存在)。部分视觉效果与原版的有所不同——这是已知的权衡取舍。
- 网络系统迁移至当前的数据包/编解码器/登录同步系统。
- 资源、数据包、配方和模型加载已更新以适配新格式。
- 修复了枪械包兼容性,并附带一个旧版转换器 (
/tacz convert)。
- 高多边形
mesh 枪械开箱即用——参见下方的 TML。
- 可选的实验性镜内准星渲染器 (Scope PIP),默认关闭。
- 游戏内配置保存功能恢复(Forge Config API Port 26.x 的一个回归问题曾导致配置仅保存在内存中,重启后设置重置)。
需求
| 文件行 |
Minecraft |
Java |
Forge Config API Port |
| 26.2 (main) |
26.2 |
25+ |
26.2.1+ |
| 26.1.2 |
26.1.2 |
25+ |
26.1.5+ |
| 1.21.11 |
1.21.11 |
21+ |
21.11.1+ |
所有行均需要:Fabric Loader 0.19.3+,必须安装 Fabric API。版本号字符串
格式如 1.1.8+fabric.26.2.R3。仅限 Fabric — 不提供 Forge/NeoForge 版本,且
切勿混入任何 Forge 版本的 TaCZ、LRTactical 或 TML jar 文件。
可选组件:Mod Menu(游戏内配置界面),JEI 或 REI(工作台配方查询)
- 内置弹药查询功能;只需安装其中之一即可),Iris(支持光影),Carry On 2.11+
(可移动枪匠工作台)。
内置 TacZ 网格加载器 (TML)
高多边形资源包会声明 "model_type": "mesh" 并提供 poly_mesh 几何体,
而不是使用方块构建枪械。无需安装外部插件即可渲染 — 此 jar 文件声明了 provides: taczmeshloader。
- 包含内容:枪械、配件、弹药和方块的 poly_mesh 渲染;世界空间
渲染(其他玩家、掉落物、物品展示框、底座);GPU 静态烘焙
以第一人称视角并在世界上下文中运行(使用逐帧骨骼矩阵而非逐顶点 CPU 变换),并且在 Iris 下也保留在 GPU 上执行;近距离全细节豁免,以防止密集的枪械模型在您面前坍缩为立方体;如果 GPU 处理失败,则自动回退到 CPU 路径。
未包含:网格目镜(玻璃元素必须保持为立方体,与外部附加模组相同)、自动 LOD 生成、导入时的焊接/索引化。
调优选项:MeshGpuBaking、MeshGpuWorld、MeshGpuLightCacheSize、
MeshGpuBakeBudgetPerFrame、MeshWorldFullDetailDistance 以及三个网格
常规诊断信息位于游戏内界面中(模组菜单 → Timeless and Classics Guns → 齿轮图标 → 渲染;常规诊断需要按下 F3+T)。其余选项(MeshEnable、距离/顶点预算、MeshPolyInShadow、MeshLogStats)位于 [mesh_loader] 部分,在 config/tacz-client.toml 文件中。完整表格请参阅:docs/MESH_LOADER.md。
已知限制:世界上下文纹理从资源包原始路径读取,而非 uv/ 变体——仅通过 uv/ 目录提供纹理的资源包在世界中会显示为缺失纹理模型(第一人称视角正常);开启Mesh GPU
关闭 烘焙:世界上下文 可避免此问题。
Scope PIP 配置选项
Scope Picture-in-Picture 是一个可选的实验性镜头内渲染器:
管外视野保持 1×,仅镜头放大。默认路径并非画中画(PIP)——世界只渲染一次,放大效果来自正常的全屏缩放,与上游模组完全一致。
所有面向玩家的 PIP 选项均位于游戏内界面中(Mod Menu → Timeless and Classics Guns → gear → Render;这是一个可搜索的列表,没有“Client”子级)。保存后立即生效——除了 ScopePipShadowScale,它需要重启或切换维度才能应用。
| 游戏内名称 |
TOML 键名 |
默认值 |
功能说明 |
| Scope Picture-in-Picture (PIP) |
ScopePipEnable |
false |
总开关——从这里开始配置 |
| PIP Minimum Magnification |
ScopePipMinMagnification |
4.0 |
仅在倍率等于或高于此值时启用镜头内放大;较低倍率的瞄具仍使用全屏缩放 |
| PIP Second-Render Pass |
ScopePipRerender |
false |
以窄视角重新渲染世界,实现原生分辨率镜头效果(6×–8×) |
| Allow PIP with Shader Packs |
ScopePipAllowShaderPacks |
false |
Iris 下的额外可选项;默认关闭是出于谨慎考虑,并非已知会导致崩溃 |
| PIP Isolated Shader Pipeline |
ScopePipIsolatePipeline |
true |
独立的 Iris 管线,防止 TAA/云层/颗粒效果泄漏到主视图中 |
| PIP 渲染分辨率缩放 |
ScopePipResolutionScale |
0.75 |
无光影时的第二渲染模式镜头缩放(1.0 = 原生) |
| PIP 重绘间隔 |
ScopePipRerenderInterval |
1 |
每 N 帧渲染一次镜头;设为 2 可将光影开销减半,代价是约 1 帧的延迟 |
| PIP 光影阴影缩放 |
ScopePipShadowScale |
0.5 |
镜头阴影贴图缩放比例(0.5 ≈ ¼ 开销)。需要重启游戏或切换维度 |
| PIP 世界缩放共享 |
ScopePipWorldZoomShare |
0.0 |
0 = 纯 PIP,1 = 与关闭 PIP 时相同;总放大倍数始终由瞄准镜决定 |
| PIP 镜头清晰度 |
ScopePipSharpness |
0.5 |
重投影镜头图像的锐化程度 |
仅限 TOML 配置(编辑 config/tacz-client.toml,然后重启):ScopePipMinAiming
Progress、各项 ScopePipDebug* 诊断项(正常游玩时请保持 ScopePipDebugTrace 关闭——它会阻塞渲染线程)、ScopePipReleaseIdlePipeline /
ScopePipIdleReleaseDelayFrames 和 AimingSwayIntensity(默认值为 1.0,瞄准时)
sway 乘数)。
最小化启动配置 — 原版渲染器:
[render]
ScopePipEnable = true # ScopeMaskEnable(默认开启)必须保持开启
ScopePipRerender = true # 适用于 6x-8x 倍镜
ScopePipAllowShaderPacks = true # 仅在使用 Iris 时启用
此为实验性功能;预期会出现 Bug —— 包括高倍率镜头下的软聚焦效果、使用光影时镜头视野与主视野之间的色差,以及由于二次渲染通道加上光影包导致帧率下降约一半。如果画面出现任何异常,请在报告之前将 ScopePipEnable 重新设为 false 并重新测试;请同时提供你的 ScopePip* 相关值、所使用的光影包以及 Sodium/Iris/Voxy 的版本号。在无法挂钩的渲染器下(例如 Sulkan),ocular mask 会回退,且 PIP(画中画)功能将被禁用。
内置 LRTactical 兼容性
该 jar 文件提供了 lrtactical ID 及其 Fabric 运行时层 —— 请勿添加原始 jar 文件。近战、消耗品、起爆器以及五种投掷类物品(爆炸/粘性/烟雾/眩晕/效果云)均可加载和运行,工作台配方也包含在内。这是一个部分框架,并非原始文件的完整 Fabric 发布版本:flash_shield(闪光盾)尚未实现,未捆绑原始美术/音频资源(内容包需自带其资产),且兼容性取决于数据包布局 —— 请逐个数据包进行验证。
配方查看器
JEI 或 REI(任选其一即可)可添加工台配方分类和一个内置的弹药查询功能:打开一个弹药条目即可查看使用该弹药的已加载枪械列表。结果会在服务器同步枪械包后重建。此功能仅为代码层面实现 —— 无需单独的弹药查询插件(仅限 R2 及更新版本的文件)。
配置说明
几乎所有设置都在游戏内完成:Mod Menu → Timeless and Classics Guns → gear → Render(瞄准镜、PIP 和网格选项均位于此处)。保存设置会将配置写回 config/tacz-client.toml,因此手动编辑仅用于调试/高级按键 —— 此时你必须重启游戏。
安装枪械包
枪械包应放入 .minecraft/tacz/ 目录 —— 而非 tacz_backup(该文件夹仅作为转换器的输入源)。Zips 压缩包可直接加载;文件夹也可行。无论哪种方式,gunpack.meta.json 必须位于包的根目录(内容为 {"namespace":"your_pack"}),否则该包会被静默跳过。旧版布局的包应放入 tacz_backup/ 并使用 /tacz convert 命令进行转换;请保留备份并查看日志。此移植版报告版本号为 1.1.8 加上 +... 构建元数据,SemVer 在比较时会忽略这些元数据,因此要求 >=1.1.8 的包仍可正常加载。
已知限制:需要 TacZ:Arcana 的包
包含 recursion/taczpack.dat 或 data/<ns>/expansions/taczexpands.data 的资源包
并且没有.png / .ogg / geo_models/ / textures/ 随附其资产
加密用于单独的、仅适用于 Forge 的闭源TacZ:Arcana 模组。
它们会显示紫/黑纹理且无模型。任何 TACZ 构建版本都不包含该
解密逻辑——无论是原版、上游版本还是此移植版。这并非本移植版的缺陷,
转换器也无法修复它。
已知问题
- Scope PIP 为实验性功能且默认关闭;第二渲染通道加上光影包会使帧率降低约一半。
- TML:世界上下文中的
uv/ 仅限纹理路径问题(见上文)。
- 仍需游戏内验证:枪械主体在目镜内的裁剪、PIP 第二通道下的镜头内网格烘焙、瞄准距离补偿,以及光影包下的世界网格光照。
- LRTactical 不完整 ——
flash_shield 和一些系统缺失。
- 使用 Player Animation Library 时,短暂的第一人称到第三人称交叉淡出可能在匍匐循环后保留过时姿态。
许可协议
| 范围 |
许可证 |
| 代码(TaCZ + 此移植版,移植的 TML 和 LRTactical 代码) |
GPL-3.0 |
| 捆绑的 Mayday Animation Engine 运行时 |
MIT |
| 捆绑的默认枪械包资产 |
CC BY-NC-ND 4.0 |
这些资产为非商业性 + 禁止演绎:请勿出售或修改后重新分发它们——请发布您自己的枪包。代码许可证不涵盖艺术资产,与第三方枪包的兼容性也不赋予重新分发它的权利。完整声明:源代码仓库中的 LICENSES.md。
报告问题
请向本项目报告,切勿联系 TACZ Dev Team、上游 Fabric 移植维护者、LesRaisins 或 VellEagle —— 他们不支持此移植版。请包含:确切文件版本;Minecraft、Fabric Loader、Fabric API、Forge Config API Port 和 Java 版本;JEI/REI、Carry On、Iris/Sodium 版本;受影响的枪械包及其合法的公开页面;完整的 latest.log 或崩溃报告;是否仅在本模组及其两个必需依赖项下可复现;对于 PIP/网格问题,请提供您的配置值和光影包。
免责声明
按“原样”提供,无任何明示或暗示的保证。您承担所有风险,
包括崩溃、数据丢失、世界损坏以及与其它模组或第三方内容包的冲突。这是一个非商业性的社区项目。
TaCZ Refabricated — Unofficial Fabric Port
Unofficial community port. Not an official TACZ release, and not affiliated
with, reviewed by, or endorsed by the TACZ Dev Team.
Timeless and Classics Guns: Zero (TaCZ) is a firearms mod with customizable
guns — attachments, optics, ammo types, animations — plus a gun-smithing
workbench and support for third-party gun packs. This project ports that mod
to Fabric on newer Minecraft versions. It adds no new guns or content of its
own: the goal is to keep the existing mod and its gun-pack ecosystem running.
Two things are already inside this jar — install neither separately:
- a built-in TacZ Mesh Loader (TML), so high-poly
mesh gun packs just work;
- a code-only LRTactical compatibility layer for knife/melee/throwable packs.
Playable, but under active testing — expect bugs, and back up worlds. Some R3
items are still pending in-game verification (see Known issues).
Credits
|
|
| Original mod |
Timeless and Classics Guns: Zero by the TACZ Dev Team |
| Upstream Fabric port |
Sh1roCu/TACZ-Refabricated (baseline 1.1.8-hotfix) |
| Built-in mesh renderer |
TacZ Mesh Loader by VellEagle — ported and extended here (GPL-3.0) |
| Built-in LR layer |
LRTactical by LesRaisins — code only (GPL-3.0) |
| Source |
q14433686-arch/TaCZ_Refabricated_Unofficial |
What changed from the original
More than a recompile — the target versions removed or reworked several APIs:
- Scope rendering re-implemented (the stencil buffer upstream used no longer
exists). Some visual effects differ from the original — a known trade-off.
- Networking migrated to the current packet/codec/login-sync system.
- Resource, data-pack, recipe and model loading updated for the new formats.
- Gun-pack compatibility fixes, plus a legacy converter (
/tacz convert).
- High-poly
mesh guns render out of the box — see TML below.
- Optional experimental in-lens scope renderer (Scope PIP), off by default.
- In-game config saves again (a Forge Config API Port 26.x regression had made
saves memory-only, so settings reset on restart).
Requirements
| File line |
Minecraft |
Java |
Forge Config API Port |
| 26.2 (main) |
26.2 |
25+ |
26.2.1+ |
| 26.1.2 |
26.1.2 |
25+ |
26.1.5+ |
| 1.21.11 |
1.21.11 |
21+ |
21.11.1+ |
All lines: Fabric Loader 0.19.3+, Fabric API required. Version strings
look like 1.1.8+fabric.26.2.R3. Fabric only — no Forge/NeoForge build, and
never mix in a Forge TaCZ, LRTactical or TML jar.
Optional: Mod Menu (in-game config screen), JEI or REI (workbench recipes
- built-in Ammo Query; one is enough), Iris (shaders), Carry On 2.11+
(moving gun-smithing workbenches).
Built-in TacZ Mesh Loader (TML)
High-poly packs declare "model_type": "mesh" and ship a poly_mesh geometry
instead of building the gun from cubes. They render without installing the
external add-on — this jar declares provides: taczmeshloader.
- Included: poly_mesh rendering for guns, attachments, ammo and blocks; world
rendering (other players, drops, item frames, pedestals); GPU static baking
in first person and in world contexts (per-frame bone matrices instead of
per-vertex CPU transforms), which also stays on the GPU under Iris; a
close-range full-detail exemption so dense guns do not collapse to cubes in
front of you; automatic fallback to the CPU path if the GPU pass fails.
- Not included: mesh oculars (the glass element must stay a cube, same as the
external add-on), automatic LOD generation, import-time welding/indexing.
- Tuning:
MeshGpuBaking, MeshGpuWorld, MeshGpuLightCacheSize,
MeshGpuBakeBudgetPerFrame, MeshWorldFullDetailDistance and the three mesh
normal diagnostics are in the in-game screen (Mod Menu → Timeless and
Classics Guns → gear → Render; the normal diagnostics need F3+T). The rest
(MeshEnable, distance/vertex budgets, MeshPolyInShadow, MeshLogStats)
live in [mesh_loader] in config/tacz-client.toml. Full table:
docs/MESH_LOADER.md.
Known limits: world-context textures are read from the pack's original path,
not the uv/ variant — packs shipping textures only under uv/ show a
missing-texture model in the world (first person is fine); turning Mesh GPU
Baking: World Contexts off avoids it.
Scope PIP configuration options
Scope Picture-in-Picture is an optional, experimental in-lens renderer:
the view outside the scope tube stays at 1× and only the lens magnifies. The
default path is not PIP at all — the world is rendered once, and magnification
comes from the normal full-screen zoom, exactly as upstream.
All player-facing PIP options are in the in-game screen (Mod Menu → Timeless
and Classics Guns → gear → Render; it is one searchable list, there is no
"Client" sub-level). Saving applies at once — except ScopePipShadowScale, which
needs a restart or a dimension change.
| In-game name |
TOML key |
Default |
What it does |
| Scope Picture-in-Picture (PIP) |
ScopePipEnable |
false |
Master switch — start here |
| PIP Minimum Magnification |
ScopePipMinMagnification |
4.0 |
Only magnify in-lens at/above this zoom; weaker optics keep full-screen zoom |
| PIP Second-Render Pass |
ScopePipRerender |
false |
Render the world again at narrow FOV for a native-resolution lens (6×–8×) |
| Allow PIP with Shader Packs |
ScopePipAllowShaderPacks |
false |
Extra opt-in under Iris; default off is a precaution, not a known breakage |
| PIP Isolated Shader Pipeline |
ScopePipIsolatePipeline |
true |
Own Iris pipeline so TAA/clouds/grain cannot leak into the main view |
| PIP Render Resolution Scale |
ScopePipResolutionScale |
0.75 |
Lens scale in second-render mode without shaders (1.0 = native) |
| PIP Rerender Interval |
ScopePipRerenderInterval |
1 |
Render the lens every N frames; 2 halves the shader cost for ~1 frame lag |
| PIP Shader Shadow Scale |
ScopePipShadowScale |
0.5 |
Lens shadow-map scale (0.5 ≈ ¼ cost). Needs restart / dimension change |
| PIP World Zoom Share |
ScopePipWorldZoomShare |
0.0 |
0 = pure PIP, 1 = same as PIP off; total magnification is always the scope's |
| PIP Lens Sharpness |
ScopePipSharpness |
0.5 |
Sharpening for the reprojected lens image |
TOML-only (edit config/tacz-client.toml, then restart): ScopePipMinAiming
Progress, the ScopePipDebug* diagnostics (leave ScopePipDebugTrace off in
normal play — it stalls the render thread), ScopePipReleaseIdlePipeline /
ScopePipIdleReleaseDelayFrames, and AimingSwayIntensity (default 1.0, aiming
sway multiplier).
Minimal start — vanilla renderer:
[render]
ScopePipEnable = true # ScopeMaskEnable (default on) must stay on
ScopePipRerender = true # for 6x-8x optics
ScopePipAllowShaderPacks = true # only if you use Iris
It is experimental; bugs are expected — soft high-power lenses, colour shifts
between lens and main view under shaders, and roughly half the frame rate with
the second-render pass plus a shader pack. If anything looks wrong, set
ScopePipEnable back to false and re-test before reporting; include your
ScopePip* values, the shader pack, and Sodium/Iris/Voxy versions. Under a
renderer the port cannot hook (e.g. Sulkan) the ocular mask falls back and PIP is
disabled.
Built-in LRTactical compatibility
The jar provides the lrtactical id and its Fabric runtime layer — do not add
the original jar. Melee, consumables, detonators and five throwable classes
(explode / sticky / smoke / stun / effect-cloud) load and run, plus workbench
recipes. This is a partial framework, not a full Fabric release of the
original: flash_shield is not implemented, no original art/audio is bundled
(content packs must bring their own assets), and compatibility is data-layout
dependent — verify pack by pack.
Recipe viewers
JEI or REI (one is enough) adds workbench recipe categories and a built-in
Ammo Query: open an ammunition entry to see every loaded gun that uses it.
Results rebuild after the server's gun-pack sync. This is code-only — no separate
Ammo Query add-on needed (R2 and newer files only).
Configuring
Almost everything is in game: Mod Menu → Timeless and Classics Guns → gear →
Render (scope, PIP and mesh options all live there). Saving writes back to
config/tacz-client.toml, so hand-editing is only needed for debug/advanced keys
— and then you must restart.
Installing gun packs
Gun packs go in .minecraft/tacz/ — not tacz_backup (that folder is only
the converter's input). Zips load directly; folders work too. Either way
gunpack.meta.json must sit at the pack root ({"namespace":"your_pack"}),
or the pack is silently skipped. Old-layout packs go in tacz_backup/ and are
converted with /tacz convert; keep a backup and read the log. This port reports
1.1.8 plus +... build metadata, which SemVer ignores when comparing, so packs
requiring >=1.1.8 still load.
Known limitation: packs requiring TacZ:Arcana
Packs with recursion/taczpack.dat or data/<ns>/expansions/taczexpands.data
and no .png / .ogg / geo_models/ / textures/ ship their assets
encrypted for the separate, Forge-only, closed-source TacZ:Arcana mod.
They show purple/black textures and no models. No TACZ build contains that
decryption — not the original, not upstream, not this port. It is not a defect
here and the converter cannot repair it.
Known issues
- Scope PIP is experimental and off by default; the second-render pass plus a
shader pack costs about half your frame rate.
- TML: the
uv/-only texture path issue in world contexts (see above).
- Still pending in-game verification: mesh gun-body clipping inside the
ocular, in-lens mesh baking under the PIP second pass, aiming distance
compensation, and world mesh lighting under shader packs.
- LRTactical is partial —
flash_shield and some systems are missing.
- With Player Animation Library, a brief third-person crossfade can carry a stale
pose after a prone cycle.
Licensing
| Scope |
License |
| Code (TaCZ + this port, ported TML and LRTactical code) |
GPL-3.0 |
| Bundled Mayday Animation Engine runtime |
MIT |
| Bundled default gun-pack assets |
CC BY-NC-ND 4.0 |
The assets are NonCommercial + NoDerivatives: do not sell them or
modify-and-redistribute them — publish your own pack instead. Code licenses do
not cover art assets, and compatibility with a third-party pack grants no right
to redistribute it. Full notices: LICENSES.md in the source repository.
Reporting issues
Report to this project, never to the TACZ Dev Team, the upstream Fabric-port
maintainers, LesRaisins or VellEagle — they do not support this port. Include:
exact file version; Minecraft, Fabric Loader, Fabric API, Forge Config API Port
and Java versions; JEI/REI, Carry On, Iris/Sodium versions; the affected gun pack
and its legitimate public page; the full latest.log or crash report; whether it
reproduces with only this mod plus its two required dependencies; and for
PIP/mesh problems, your config values and shader pack.
Disclaimer
Provided "as is", without warranty of any kind. You assume all risk,
including crashes, data loss, world corruption and conflicts with other mods or
third-party content packs. Non-commercial community project.
评论 0
登录后参与评分
还没有评论,来抢沙发吧