This is a template resource pack for Minecraft that allows item textures to dynamically change based on player key input — such as movement keys or sneaking.
It leverages Minecraft’s model predicate system (minecraft:condition and keybind_down) introduced in 1.20.5+ snapshots.
assets/
└── minecraft/
├── items/
│ └── bucket.json <- Main model that loads conditionally
├── models/
│ └── custom_item_models/
│ └── bucket/
│ ├── forwards.json
│ ├── backwards.json
│ ├── left.json
│ ├── right.json
│ ├── sprinting.json
│ ├── sneaking.json
│ └── still.json <- Sub-models per movement key
└── textures/
└── item/
└── custom_item_textures/
└── bucket/
├── forwards.png
├── backwards.png
├── left.png
├── right.png
├── sprinting.png
├── sneaking.png
└── still.png <- Custom textures linked to sub-models
item/bucket.json model is the entry point, rename this to whatever item you want to edit.minecraft:condition logic to detect active keybinds like:
key.forward, key.back, key.left, key.right, and key.sneak.custom_item_models/bucket/, which links to a texture in custom_item_textures/bucket/.Use a Different Item
bucket.json to another item path (e.g. carrot_on_a_stick.json).Add More Folders for Modular Support
custom_item_models/ for each item type (e.g., sword/, shield/).Link Your Own Textures
textures.layer0 property in each sub-model (left.json, right.json, etc.) to use your custom textures.Add More Conditions
key.use, key.jump, etc., by expanding the logic tree in the main .json.Use Misode's Item Generator
bucket.json to the bottom right of the website and easily edit the json.Experimental Feature:
This uses features only available in Minecraft 1.20.5+.
Client-Side Only:
It works based on local keybind inputs, not actual movement, velocity, or server-side conditions.
One Input at a Time:
The system processes inputs sequentially, so combining multiple simultaneous key presses is complex without deep nesting.
Keybinds Only:
Only supports detecting keys like:
key.forward, key.back, key.left, key.right, key.jump, key.sneaketc.You may use this template freely. Attribution is required unless otherwise stated.
My other packs
Donations <3