Compatibility
Minecraft: Java Edition
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
This data pack adds the ability to change the appearance of items!
For all players:
To find and apply a model, run the command:
/trigger FindModel
in order to search the built-in database of models for ones that may be applied to your item! Then, click on the name of the model which you wish to apply!
Applying a model cost one level in survival and zero in creative.
Additionally, there is a special "Default" option. This will remove the model applied to the item. Selecting the "Default" option does NOT cost any levels.
For operators:
To add a new model, perform the following actions:
Rename an item in an anvil. Items with custom name formatting will not work properly. Ensure that the item has the desired item model applied. Run the command:
/function para_item_model_applicator:add_model
while holding the item in your hand. The model will be added for that item.
To remove a model, perform the following actions:
First, find the model's index (this can be done by applying a model and looking at the number reported), Then run the command:
/function para_item_model_applicator:remove_model {index:[the index you found]}
while replacing the text in brackets [] with the number reported by FindModel.
If you decide that you did not want to delete that model, run the command:
/function para_item_model_applicator:restore_model
Be warned, only the most recently deleted model can be restored! Assume that all models you delete will be gone for good!
To Update a Model:
Find the index of the model you wish to update (see remove model). Hold an acceptable item (see add model). Then run the command:
/function para_item_model_applicator:update_model {index:[the index you found]}
This will OVERWRITE the old model. That means that the old model cannot be restored!
To remove all duplicate models:
Run the command:
/function para_item_model_applicator:remove_duplicates
Then wait until the process is done. It will take 1 second for every 20 models registered in the database. You will know that it has finished when the message "Models has removed duplicate entries" appears in chat. If this does not work, either: The model is not a true duplicate, or: You may need to increase these game rules:
/gamerule maxCommandChainLength
/gamerule maxCommandForkLength
NOTES:
This data pack will attempt to load a database of all models available in the provided resource pack. If you wish to disable these models, you can remove all models by running the command:
/data remove storage para_item_model_applicator:storage
after which all models will be removed and you will be able to start afresh.
Warning with crafting: using the netherite smithing template on an item will replace its model. This is purposeful - otherwise, a model for a diamond sword would still be diamond on the netherite sword. Simply apply a new model. The way that this has to be done (because of minecraft's crafting recipe system) is that it has to apply a different model first. Please use the resource pack's "smithingreplace" information otherwise missing textures will appear. Holding an item in your mainhand will reset it to the default model after this, and then you will be good to go.
"But what if I don't want players replacing the model on my custom item?" Don't worry! Any item with the custom data component "lock_model" will report that the model cannot be changed by this pack. For examples, see my Tomes datapack.
"Are there any plans for more models?" Absolutely! First I need to make models for all of the bundle colors, because currently only the default bundle has any available. Then I'm hoping to move on to foodstuffs.
All models and textures were made by me. Many are directly inspired by minecraft dungeons, minecraft legends, and some by hermitcraft. I did not rip any models or textures from other packs, and tried to use vanilla coloring for each texture, so some may not match the dungeons/legends textures perfectly.