ORM - OverrideResourceManager
一款适用于 Minecraft 1.21.4 的 Fabric 客户端模组,允许你在运行时替换物品纹理和模型——无需资源包。覆盖配置保存在 config/orm/ 下的普通文件中,并随资源堆栈重载(F3+T)一起生效。
功能
| 功能 |
描述 |
| 纹理覆盖 |
使用 config/orm/textures/ 中的任意 .png 替换原版物品的纹理 |
| 3D 模型覆盖 |
使用来自 config/orm/models/ 的 Blockbench 导出的 .json 替换物品的模型 |
| 动画纹理 |
在纹理文件旁放置 .png.mcmeta 即可实现 MC 标准帧动画 |
| 实例级匹配 |
按物品名称、CustomModelData 或 NBT 进行匹配——同种类型的多个物品可以拥有不同的覆盖配置 |
| 优先级系统 |
更具体的条目优先:item < item+name < item+cmd < item+cmd+nbt |
| 快速添加按键绑定 |
在任何库存界面中键中键点击物品,自动生成其配置条目 |
安装
- 为 Minecraft 1.21.4 安装 Fabric Loader 和 Fabric API。
- 将 ORM
.jar 放入你的 mods/ 文件夹。
- 启动游戏——
config/orm/ 目录会自动创建。
文件结构
config/orm/
├── overrides.json ← 主配置文件(覆盖条目列表)
├── models/
│ └── <name>.json ← 自定义 Blockbench/JSON 模型
└── textures/
└── item/
└── <name>.png ← 纹理文件(可选 .png.mcmeta 用于动画)
模型和纹理在 overrides.json 中使用 orm: 命名空间引用:
"model": "orm:sword" → config/orm/models/sword.json
"texture": "orm:item/texture2d/apple" → config/orm/textures/item/texture2d/apple.png
完全支持子目录,其结构会被保留:
config/orm/textures/item/sword/anim/animation.png
→ orm:item/sword/anim/animation
overrides.json 参考
每个条目都是一个 JSON 对象。字段说明如下:
| 字段 |
类型 |
必填 |
描述 |
item |
string |
是 |
Minecraft 物品 ID,例如 "minecraft:netherite_sword" |
name |
string |
否 |
按精确显示名称匹配 |
customModelData |
int |
否 |
按 CustomModelData 值匹配 |
nbtCondition |
object |
否 |
按 NBT 键值对匹配 |
texture |
string |
否 |
纹理覆盖路径:"orm:<path>" |
model |
string |
否 |
模型覆盖 ID:"orm:<name>" |
target |
string |
否 |
来自模组物品模型的显式目标纹理 ID |
texture 或 model 至少需要设置其中一个。
示例用法
以下示例取自一个实际可用的配置文件。它将两个工具覆盖为自定义的 Diablo 风格 3D 模型(每个都带有动画纹理层),并将金苹果替换为平面 2D 纹理。
config/orm/overrides.json
[
{
"item": "minecraft:netherite_sword",
"name": "Netherite Sword",
"model": "orm:sword"
},
{
"item": "minecraft:netherite_pickaxe",
"name": "Netherite Pickaxe",
"model": "orm:pickaxe"
},
{
"item": "minecraft:golden_apple",
"name": "Golden Apple",
"texture": "orm:item/texture2d/apple"
}
]
上述示例的文件结构
config/orm/
├── overrides.json
├── models/
│ ├── sword.json
│ └── pickaxe.json
└── textures/
└── item/
├── sword/
│ ├── diablo_texture.png ← 静态基础纹理
│ └── anim/
│ ├── animation.png ← 动画叠加层帧
│ └── animation.png.mcmeta ← 帧时序
├── pickaxe/
│ ├── diablo_texture.png
│ └── anim/
│ ├── animation.png
│ └── animation.png.mcmeta
└── texture2d/
└── apple.png ← 平面 2D 替换
各条目工作原理
下界合金剑 / 镐 — "model": "orm:sword" 加载 models/sword.json。该模型本身引用了两个纹理层:
orm:item/sword/diablo_texture — 一个静态的 128×128 精细纹理
orm:item/sword/anim/animation — 由 animation.png.mcmeta 驱动的动画叠加层
两者均通过显示名称 ("name": "Netherite Sword") 进行匹配,因此只有具有该确切名称的物品才会受到影响。在铁砧中将物品重命名为其他任何名称,原版模型将会恢复。
金苹果 — "texture": "orm:item/texture2d/apple" 全局替换原版 golden_apple.png(无名称过滤),因此世界中所有的金苹果都将使用 textures/item/texture2d/apple.png。
动画纹理 .mcmeta 格式
{
"animation": {
"frametime": 3,
"frames": [0, 1, 2, 3]
}
}
将 .mcmeta 文件与同名 .png 文件放在同一目录下,文件名后缀为 .mcmeta。
按键绑定:快速添加
打开任何库存界面并按住 鼠标中键 点击物品槽位。ORM 会读取物品的 ID、显示名称和 CustomModelData,向 overrides.json 追加一个新条目,并在聊天栏打印确认信息。生成的条目使用 texture 字段,其路径源自物品 ID——请将占位符纹理值替换为你的实际文件。
默认绑定:鼠标中键(可在 Controls → Override Resource Manager 中重新绑定)。
重载
按下 F3+T 重载资源包。ORM 会重新读取 overrides.json,扫描 models/ 和 textures/,并在不重启游戏的情况下重建覆盖注册表。
要求
- Minecraft 1.21.4
- Fabric Loader 0.19.2+
- Fabric API 0.119.4+1.21.4
ORM - OverrideResourceManager
A client-side Fabric mod for Minecraft 1.21.4 that lets you replace item textures and models at runtime — no resource pack required. Overrides live in plain files under config/orm/ and reload with the resource stack (F3+T).
Features
| Feature |
Description |
| Texture override |
Replace a vanilla item's texture with any .png from config/orm/textures/ |
| 3D model override |
Swap an item's model with a Blockbench-exported .json from config/orm/models/ |
| Animated textures |
Drop a .png.mcmeta next to your texture to get MC-standard frame animation |
| Per-instance matching |
Match by item name, CustomModelData, or NBT — multiple items of the same type can have different overrides |
| Priority system |
More specific entries win: item < item+name < item+cmd < item+cmd+nbt |
| Quick-add keybind |
Middle-click an item in any inventory screen to auto-generate its config entry |
Installation
- Install Fabric Loader and Fabric API for Minecraft 1.21.4.
- Drop the ORM
.jar into your mods/ folder.
- Launch the game —
config/orm/ is created automatically.
File Layout
config/orm/
├── overrides.json ← main config (list of override entries)
├── models/
│ └── <name>.json ← custom Blockbench/JSON models
└── textures/
└── item/
└── <name>.png ← texture files (+ optional .png.mcmeta for animation)
Models and textures are referenced in overrides.json using the orm: namespace:
"model": "orm:sword" → config/orm/models/sword.json
"texture": "orm:item/texture2d/apple" → config/orm/textures/item/texture2d/apple.png
Subdirectories are fully supported and their structure is preserved:
config/orm/textures/item/sword/anim/animation.png
→ orm:item/sword/anim/animation
overrides.json Reference
Each entry is a JSON object. Fields:
| Field |
Type |
Required |
Description |
item |
string |
yes |
Minecraft item ID, e.g. "minecraft:netherite_sword" |
name |
string |
no |
Match by exact display name |
customModelData |
int |
no |
Match by CustomModelData value |
nbtCondition |
object |
no |
Match by NBT key/value pairs |
texture |
string |
no |
Texture override path: "orm:<path>" |
model |
string |
no |
Model override ID: "orm:<name>" |
target |
string |
no |
Explicit target texture ID from a modded item model |
At least one of texture or model should be set.
Example Usage
The example below is taken from a real working config. It overrides two tools with custom Diablo-style 3D models (each with an animated texture layer) and replaces the Golden Apple with a flat 2D texture.
config/orm/overrides.json
[
{
"item": "minecraft:netherite_sword",
"name": "Netherite Sword",
"model": "orm:sword"
},
{
"item": "minecraft:netherite_pickaxe",
"name": "Netherite Pickaxe",
"model": "orm:pickaxe"
},
{
"item": "minecraft:golden_apple",
"name": "Golden Apple",
"texture": "orm:item/texture2d/apple"
}
]
File structure for the example above
config/orm/
├── overrides.json
├── models/
│ ├── sword.json
│ └── pickaxe.json
└── textures/
└── item/
├── sword/
│ ├── diablo_texture.png ← static base texture
│ └── anim/
│ ├── animation.png ← animated overlay frames
│ └── animation.png.mcmeta ← frame timing
├── pickaxe/
│ ├── diablo_texture.png
│ └── anim/
│ ├── animation.png
│ └── animation.png.mcmeta
└── texture2d/
└── apple.png ← flat 2D replacement
How each entry works
Netherite Sword / Pickaxe — "model": "orm:sword" loads models/sword.json. The model itself references two texture layers:
orm:item/sword/diablo_texture — a static 128×128 detailed texture
orm:item/sword/anim/animation — an animated overlay driven by animation.png.mcmeta
Both are matched by display name ("name": "Netherite Sword") so only items with that exact name are affected. Rename the item in an anvil to anything else and the vanilla model returns.
Golden Apple — "texture": "orm:item/texture2d/apple" replaces the vanilla golden_apple.png globally (no name filter), so every golden apple in the world uses textures/item/texture2d/apple.png.
Animated texture .mcmeta format
{
"animation": {
"frametime": 3,
"frames": [0, 1, 2, 3]
}
}
Place the .mcmeta file next to the .png with the same name plus .mcmeta suffix.
Keybind: Quick-Add
Open any inventory screen and middle-click an item slot. ORM reads the item's ID, display name, and CustomModelData, appends a new entry to overrides.json, and prints a chat confirmation. The generated entry uses the texture field with a path derived from the item ID — replace the placeholder texture value with your actual file.
Default binding: Middle Mouse Button (rebindable under Controls → Override Resource Manager).
Reloading
Press F3+T to reload resource packs. ORM re-reads overrides.json, rescans models/ and textures/, and rebuilds the override registry without restarting the game.
Requirements
- Minecraft 1.21.4
- Fabric Loader 0.19.2+
- Fabric API 0.119.4+1.21.4
评论 0
登录后参与评分
还没有评论,来抢沙发吧