Today we are looking at the basics of custom model data in minecraft and how you can set this up for yourself let’s start with the requirements first you need to be playing on java edition as this guide will not work for other editions of the game next look at the description below to See which versions of minecraft this guide works for if you aren’t using those versions this guide will not work and finally you will need sheets enabled in your world since you will need to use commands to spawn these items in if you are all set then let’s get started with the guide First in the description below follow the link to download and unzip the test resource pack this resource pack has all the required files needed for this guide navigate to the resource pack folder in the minecraft directory and place the downloaded resource pack into that folder open up minecraft select options and then Resource packs you should see the resource pack we downloaded under the available list do not continue with this guide if you do not see the resource pack if you do see the resource pack you can continue on with this guide close minecraft for now next we need to gather some textures Make sure all your textures are saved as a png file once you have the textures you want continue on with this guide now that we have textures we’re going to place your textures into the resource pack in the resource pack navigate to assets minecraft textures and then item the item folder Is where you organize all your textures normally in a resource pack this is where all your textures go to change the default textures of items for custom models we need to create folders inside the item folder and name that folder to whatever item you are making a custom model For for example if you are making a custom texture for a diamond sword you should name the folder diamond underscore sword i will be using diamond underscore sword for this example open the newly created folder place the texture you want inside this folder rename that texture to dot png Now we are done with the textures navigate back to assets then minecraft in this folder navigate to models then item in this folder we are going to be doing a few things first create a new folder and rename it to the same name you used for your texture folder earlier For example i used the name diamond underscore sword earlier so i’ll be using that same name here open the diamond folder right click and copy the one.json file that is inside this folder go back and enter the folder you created earlier inside this folder right click and paste the copied file Open this file with a text editor you will see something like this if you do highlight the text that says diamond and rename it to the folder name you used earlier for my example i will rename it to diamond underscore sword save and close this file Go back to the item folder and make a copy of the diamond.json file you will be renaming this file and in my case i would be renaming it to diamond underscore sword.json open the new file you should see something like this here highlight every text that says diamond and rename to whatever name You have been using in my case i will be renaming it to diamond underscore sword save and close this file if you followed my guide correctly you should now be done with the resource pack open up minecraft select options then resource packs click the arrow where the test resource pack Is to make the pack active make sure the test resource pack is at the top of the list now we are done setting up the resource pack we are going to now spawn in the custom models we just made either using a command block or the chat bar type slash Give at p minecraft colon diamond underscore sword then type left curly bracket custom model data colon 1 right curly bracket press enter this will give you a diamond sword with the custom texture you created if you do not see this texture go back and follow the guide again Or leave a comment below and i’ll try my best to help you out if everything looks correct then you have successfully set up custom model data in a resource pack now i am going to show you how to set up multiple custom models for a single item In the test resource pack navigate to assets minecraft textures item then diamond sword drop your second texture file in this folder and rename it to dot png you should now have two textures in this folder one named one dot png and the other two dot png if this looks correct to you Then we are done with the textures and you can continue on with the guide go back to assets then minecraft and navigate to models item then diamond sword copy and paste the one.json file in this folder rename it to 2.json open the 2.json file look at the text that says Diamond underscore sword splash 1 and change the one to a two save and close this file now go back to the item folder and open the diamond underscore sword.json file copy the line of text shown here in the video at the end of this line type comma then enter Then press tab twice paste the text you just copied look at the line of text highlighted here in the video and where it says custom model data change the one to a two then where it says diamond underscore sword slash one change the one to a two save and close this file You are now done with the resource pack open minecraft now we are going to use the same command from earlier but at the spot where we type custom model data colon 1 we are going to replace the 1 with a 2. this will spawn a diamond sword with the Second texture you placed in the resource pack if you see the correct texture you are now done with this guide if you do not you may need to restart minecraft for the texture to show up if you still don’t see the new texture leave a comment below and i will do my Best to help you out Video Information
This video, titled ‘[RESOURCE PACK] How to setup Custom Model Data [1.16, 1.17, 1.18, 1.19]’, was uploaded by WeswePengu on 2021-04-12 15:00:17. It has garnered 41822 views and 906 likes. The duration of the video is 00:07:08 or 428 seconds.
Thanks for watching this video! Below are the links needed for this tutorial:
Test Resource Pack: https://bit.ly/3wORFDS
Compatibility: JAVA 1.16, 1.17, 1.18, 1.19
Command for first custom model: /give @p minecraft:diamond_sword{CustomModelData:1}
Command for second custom model: /give @p minecraft:diamond_sword{CustomModelData:2}
If you have any questions, or something just isn’t working, leave a comment and I will try to help the best I can!