A texture by name
Resource packs
Custom textures triggered by anvil namesLearn more
Renamed the sword on the anvil to 'Excalibur' — it now looks different. Upload an image, select an item, and enter a name: create a resource pack without OptiFine or mods for Minecraft 1.21.5 and newer.
My Game select version
Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.
Image
Size and version
Result
Diamond Sword 'Excalibur'Upload an image — it will become the texture for an item with this name.
How to use the result
- Install a resource pack
Place the archive in resourcepacks, then go to "Settings" → "Resource Packs". Detailed in the wiki.
- Rename an item
Place the diamond sword in the anvil and type 'Excalibur' — this costs one experience level.
- Done
An item with this name uses your texture; others appear normally. On the server, the pack distributes it to all players via server.properties.
What to know
- Without mods — from 1.21.5. Model selection by name was introduced in vanilla Minecraft 1.21.5; previously OptiFine or CIT Resewn was required.
- Name — exactly as is. Every character must match: uppercase, spaces, and 'yo'. A name with color or italic from a command is considered a different name.
- One item — one definition. The item pack replaces the entire item file: two packs for the same sword will not stack; the top one will take effect. Combine packs using resource pack merger, but the item file will still be one.
- Only simple items. For items like bows, compasses, potions, and armor, there are specific states defined — replacing them with a simple model would break their functionality. Such items are not included in the list.
Your item without renaming, by command — in its item texture, item name and description by command — in generator /give.
Frequently asked questions
How to make a texture by name without OptiFine?
Starting with 1.21.5, the game automatically selects the model based on the item name. Upload an image, select the item and name — the resource pack will change the appearance when the item is renamed in the anvil.
Is case sensitivity and color of the name important?
Name is compared exactly: 'Excalibur' and 'excalibur' are different. Renaming on anvil gives a simple name without color.
Is it allowed to do that on the server?
Yes. The model is supplied through a resource pack, without plugins. Distribute the pack through the server so players see the same renamed item.
