Context Item Models
Render different 2D and 3D item models depending on where and how an item is displayed.
Keep crisp 2D pixel art inside your inventory and hotbar, and seamlessly switch to detailed 3D models when held in hand, in your offhand, dropped on the ground, placed in an item frame, worn on the head, thrown as a projectile, submerged underwater, or enchanted.
✨ Key Features
-
100% Client-Side — Works in singleplayer and multiplayer servers without requiring installation on the server.
-
Multi-Loader & Multi-Version — Built for Fabric, Forge, and NeoForge, supporting Minecraft
1.20.1–1.21.4. -
Automatic
1.21.4+Legacy Bridge — Resource packs and mods using standardmodels/item/*.json"overrides"automatically work on Minecraft1.21.4without rewriting every item model. -
In-Game Configuration — Toggle features via Mod Menu (Fabric) or the native Mods → Config screen (Forge / NeoForge).
📦 Supported Versions & Loaders
| Loader | Supported Minecraft Versions |
|---|---|
| Fabric | 1.20.1, 1.20.4, 1.21.1, 1.21.3, 1.21.4 |
| Forge | 1.20.1 |
| NeoForge | 1.20.4, 1.21.1, 1.21.3, 1.21.4 |
⚙️ Context Predicates
All predicates use the context_item_models: namespace.
Display & Hand Contexts
| Predicate | Description | Value |
|---|---|---|
context_item_models:is_held |
Held in first-person or third-person hand | 1.0 |
context_item_models:first_third_person |
Distinguishes first-person vs. third-person hand view | 0.5 (1st) / 1.0 (3rd) |
context_item_models:is_offhand |
Held in the offhand slot | 1.0 |
context_item_models:is_gui |
Rendered in GUI / hotbar / inventory slots | 1.0 |
context_item_models:is_ground |
Dropped on the ground as an item entity | 1.0 |
context_item_models:is_fixed |
Displayed inside an Item Frame | 1.0 |
context_item_models:is_head |
Equipped in the head / helmet slot | 1.0 |
State & Entity Contexts
| Predicate | Description | Value |
|---|---|---|
context_item_models:is_projectile |
Rendered as a thrown projectile entity | 1.0 |
context_item_models:is_used |
Actively being used (eating, aiming, custom use) | 1.0 |
context_item_models:item_use |
Normalized item use progress | 0.0 – 1.0 |
context_item_models:is_submerged |
Holder entity is submerged underwater | 1.0 |
context_item_models:is_enchanted |
Item has an enchantment | 1.0 |
context_item_models:is_misc_entity_holding |
Held by Villager, Wandering Trader, Witch, Fox, or Panda | 1.0 |
context_item_models:shield_has_banner |
Shield has a banner pattern applied | 1.0 |
🛠️ Usage for Resource Pack & Mod Authors
Standard Model Overrides (1.20.1 – 1.21.4)
Place your rules in:
assets/<namespace>/models/item/<item>.json
On Minecraft 1.21.4, Context Item Models automatically bridges these overrides for you.
Example:
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "mymod:item/my_sword_2d"
},
"overrides": [
{
"predicate": {
"context_item_models:is_held": 1.0
},
"model": "mymod:item/my_sword_3d"
},
{
"predicate": {
"context_item_models:is_ground": 1.0
},
"model": "mymod:item/my_sword_3d_ground"
},
{
"predicate": {
"context_item_models:is_fixed": 1.0
},
"model": "mymod:item/my_sword_3d_frame"
}
]
}
💡 Priority Tip
Overrides are checked sequentially, so the last matching rule takes priority.
Recommended order:
-
Set your base/default 2D icon as the item model itself (
layer0). -
Add general rules first, such as
is_heldoris_ground. -
Place more specific rules, such as
is_enchantedoris_submerged, near the bottom.
🔧 Configuration
Settings are saved in:
config/context_item_models.json
They can also be edited in-game.
| Option | Default | Description |
|---|---|---|
enabled |
true |
Master toggle for context-based model switching. |
legacyOverridesBridge |
true |
Automatically bridges models/item/*.json overrides on Minecraft 1.21.4+. |
📜 License
Licensed under the MIT License.
© Cobblemore Studio

