Item Model Fix — Minecraft 1.20.1 (Forge) 完整移植版
修复生成的物品模型中的缝隙问题。
原版游戏生成的物品模型会压缩 UV 坐标,这可能导致 2D 物品贴图像素之间出现可见的缝隙。Item Model Fix 通过修正生成的 UV 坐标,使物品模型能够无缝渲染。
此分支是原版模组在 Minecraft 1.20.1 (Forge) 上的完整移植版:旧版的烘焙模型 ItemModelGenerator(net.minecraft.client.renderer.block.model.ItemModelGenerator)在此版本中仍然存在,因此完整的原始生成逻辑——VANILLA / UNLERP / OUTLINE / PIXEL ——均可在此运行,并通过 Mixin 挂钩到 ItemModelGenerator.processFrames,与原版完全一致。26.3 (main) 分支无法实现这一点,因为该生成器已在 26.3 的新立方体模型系统中被移除。
生成模式
- VANILLA —— 原始行为,不应用任何修复
- UNLERP —— 应用 UV 数学运算以修复缝隙的原版生成方式
- OUTLINE(默认)—— 与 Unlerp 相同,但使用不同的算法,可防止附魔光晕闪烁
- PIXEL —— 逐个生成每个像素;效果最佳,但在高分辨率资源包下性能开销较高
配置
此移植版无需 Cloth Config 或 ModMenu 依赖。编辑 config/itemmodelfix.json 并将 "generationType" 设置为 VANILLA、UNLERP、OUTLINE 或 PIXEL 之一。
移植说明 (1.20.1)
- Java 17 · Forge 47.4.20+ · Mojang 官方映射
- 已通过 GitHub Actions CI 构建并验证(构建 + 运行时测试)
安装方法
- 为 Minecraft 1.20.1 安装 Forge
- 将
itemmodelfix-1.20.1-forge-*.jar 放入你的 mods 文件夹
原版模组及致谢
这是 Itamio 对 PepperCode1 开发的 Item Model Fix 的非官方移植版 —— 原版模组(Modrinth 上下载量达 92.6 万次,最后更新于 1.19.2)自 1.19.2 之后便未再更新。
- 原版模组:
- 原版源码:
- 许可证:LGPL-3.0-only —— 详见
LICENSE
原版模组的概念、设计和逻辑的所有功劳归于 PepperCode1。本移植版旨在将其带入 Minecraft 1.20.1。详见 NOTICE。
Item Model Fix — Full Port for Minecraft 1.20.1 (Forge)
Fixes gaps in generated item models.
Vanilla's generated item models shrink UVs, which can leave visible
gaps between pixels on 2D item sprites. Item Model Fix corrects the
generated UVs so item models render seamlessly.
This branch is a full port of the original mod to Minecraft 1.20.1
(Forge): the old baked-model ItemModelGenerator
(net.minecraft.client.renderer.block.model.ItemModelGenerator) still
exists on this version, so the complete original generation logic —
VANILLA / UNLERP / OUTLINE / PIXEL — works here, hooked via a
Mixin on ItemModelGenerator.processFrames, exactly as in the
original. The 26.3 (main) branch cannot do this because that
generator was removed in 26.3's new cuboid model system.
Generation modes
- VANILLA — original behaviour, no fix applied
- UNLERP — vanilla generation with UV math applied to fix gaps
- OUTLINE (default) — same as Unlerp, via a different algorithm
that prevents enchantment-glint flickering
- PIXEL — generates every pixel individually; best results, higher
cost with high-resolution resource packs
Configuration
No Cloth Config / ModMenu dependency on this port. Edit
config/itemmodelfix.json and set "generationType" to one of
VANILLA, UNLERP, OUTLINE, PIXEL.
Port notes (1.20.1)
- Java 17 · Forge 47.4.20+ · Mojang official mappings
- Built and verified in CI via GitHub Actions (build + runtime test)
Installation
- Install Forge for Minecraft 1.20.1
- Drop
itemmodelfix-1.20.1-forge-*.jar into your mods folder
Original mod & credit
This is an unofficial port by Itamio of Item Model Fix by
PepperCode1 — the original (926k downloads on Modrinth, last
updated for 1.19.2) has not been updated past 1.19.2.
- Original mod:
- Original source:
- License: LGPL-3.0-only — see
LICENSE
All credit for the original concept, design, and logic goes to
PepperCode1. This port exists to bring it to Minecraft 1.20.1. See NOTICE.
评论 0
登录后参与评分
还没有评论,来抢沙发吧