Using Custom Model Data to Create New Item into the Game
This is for basic items. (2D)
This page considers a big part of an another guide: Simplexity-Development
Example item's texture that used in the stages is copyrighted to: ItemRebound
To create a new item, you first need to select an original item. Original item is item that you are going to use for basement.
Take the original item .json file and put it into your resource pack. This must go into the vanilla namespace. For example, I want to use apple for original model:
..\assets\minecraft\models\item\apple.jsonThen, create a new folder for your own assets within the assets directory. For example, I want to use "custompack" name for namespace:
..\assets\custompack\Within this folder, create the initial folders models, and textures, and an item folder within both of those:



Open the original item .json file you're basing off of and add the following code at below and change it for your item:
You should change the code's custom model data value & model path, namespace, item name for you declared them like.
This code tells the game which model file to look for. The model file should be in the ../assets/<your namespace>/models/<your item path> folder.
You should also name your custom model data with an unique prefix number that makes sense to you to avoid conflicts with other custom model data packs.
Then, create a model file in the folder that you declared path in previous stages:

Inside of this .json file add the code at below, you are telling the game which texture file(s) to look for:
So, you must be have the texture in path where you declared in:

Texture images have to be in limits by Minecraft.
After, go to the game and execute those commands by ordered:
Last updated