Model

Block models are used to depict all the blocks in the game, whereas item models are used to display the items in the players, hand, on their head (helmets and hats), on the ground, in the inventory, in item frames and on armor stands. As there are different variants of some blocks, block states are used to link these with the corresponding models. Each model and each block state has its own file, which is of the  format. Even the icons used in the inventory are defined in these files.

File path
In JSON files of models and block states, the resource location in the form of  (the   namespace can be omitted) is used to represent the local file path. See also Resource_location.

In these files, the path corresponding to the resource location  is , where the path can contain subfolders separated by  , such as   (  and   are folders,   is the real file name).

The object specified by a resource location and its corresponding object type and suffix are as follows:

Block states
There are several different variants of some blocks (like doors, which can be open or closed), hence each block has its own block state file, which lists all its existing variants and links them to their corresponding models. Blocks can also be compound of several different models at the same time, called "multipart". The models are then used depending on the block states of the block.

These files are stored in the following folder:. The files are used directly based on their filename, thus a block state file with another name than the existing ones does not affect any block.


 * The root tag
 * : Holds the names of all the variants of the block.
 * or: Name of a variant, which consists of the relevant block states separated by commas. A block with just one variant uses  as a name for its variant. Each variant can have one model or an array of models and contains their properties. If set to an array, the model is chosen randomly from the options given, with each option being specified in separate subsidiary -tags. Item frames are treated as blocks and use   for a map-less item frame, and   for item frames with maps.
 * : Contains the properties of a model, if more than one model is used for the same variant. All specified models alternate in the game.
 * : Specifies the path to the model file of the block, in form of a resource location.
 * : Rotation of the model on the x-axis in increments of 90 degrees.
 * : Rotation of the model on the y-axis in increments of 90 degrees.
 * : Can be  or   (default). Locks the rotation of the texture of a block, if set to  . This way the texture does not rotate with the block when using the x and y-tags above.
 * : Sets the probability of the model for being used in the game, defaults to 1 (=100%). If more than one model is used for the same variant, the probability is calculated by dividing the individual model's weight by the sum of the weights of all models. (For example, if three models are used with weights 1, 1, and 2, then their combined weight would be 4 (1+1+2). The probability of each model being used would then be determined by dividing each weight by 4: 1/4, 1/4 and 2/4, or 25%, 25% and 50%, respectively.)
 * : Specifies the path to the model file of the block, in form of a resource location.
 * : Rotation of the model on the x-axis in increments of 90 degrees.
 * : Rotation of the model on the y-axis in increments of 90 degrees.
 * : Can be  or   (default). Locks the rotation of the texture of a block, if set to  . This way the texture does not rotate with the block when using the x and y-tags above.
 * : Used instead of variants to combine models based on block state attributes.
 * Determines a case and the model that should apply in that case.
 * : A list of cases that have to be met for the model to be applied. If unset, the model always applies.
 * : Matches if any of the contained cases return true. Cannot be set alongside other cases.
 * A list of cases that all have to match the block to return true.
 * Name of a block state. A single case that has to match one of the block states. It can be set to a list separated by  to allow multiple values to match.
 * Name of a block state. A single case that has to match one of the block states. It can be set to a list separated by  to allow multiple values to match. Cannot be set alongside the OR-tag.
 * : Determines the model(s) to apply and its properties. There can be one model or an array of models. If set to an array, the model is chosen randomly from the options given, with each option being specified in separate subsidiary -tags.
 * : Contains the properties of a model, if more than one model is used for the same variant. All specified models alternate in the game.
 * : Specifies the path to the model file of the block, in form of a resource location.
 * : Rotation of the model on the x-axis in increments of 90 degrees.
 * : Rotation of the model on the y-axis in increments of 90 degrees.
 * : Can be  or   (default). Locks the rotation of the texture of a block, if set to  . This way the texture does not rotate with the block when using the x and y-tags above.
 * : Sets the probability of the model for being used in the game, defaults to 1 (=100%). If more than one model is used for the same variant, the probability is calculated by dividing the individual model's weight by the sum of the weights of all models. (For example, if three models are used with weights 1, 1, and 2, then their combined weight would be 4 (1+1+2). The probability of each model being used would then be determined by dividing each weight by 4: 1/4, 1/4 and 2/4, or 25%, 25% and 50%, respectively.)
 * : Specifies the path to the model file of the block, in form of a resource location.
 * : Rotation of the model on the x-axis in increments of 90 degrees.
 * : Rotation of the model on the y-axis in increments of 90 degrees.
 * : Can be  or   (default). Locks the rotation of the texture of a block, if set to  . This way the texture does not rotate with the block when using the x and y-tags above.

Example: Wall Torch
The wall torch has several variants: It can be placed at a wall facing in four different directions. This example is taken from the file, which can be found at.

A torch can be placed on all four sides of a block and therefore needs four different variants, one for each side. These are called,  ,   and. All four variants use  as their model, which is rotated by a multiple of 90 degrees around the   axis to align with the different sides of the block they are placed on.
 * wall_torch.json

Example: Grass Block
The grass block has two variants, whereby the first one holds four different models. This example is taken from the file, which can be found at.

The non-snow-covered grass block holds four models, which all use the same block model, but each one is rotated by a multiple of 90 degrees. As there are four models and the -tag is not used for any of them, each one has a chance of 25% to be used every time a block is placed.
 * grass_block.json

Example: Oak Fence
The oak fence uses the  format. This example is taken from  in.

While the first model, the fence post, is always used, the other models are used only if certain conditions are met. Here the sides of the fence are applied only if there is another adjacent block next to this one. As there is just one model for the post and another one for all the sides of the fence, which then is rotated by increments of 90 degrees, the amount of models needed for all the different possible set-ups of fences can be reduced to two. Compared to the five models and 16 variants used in Java Edition 1.8, this is a rather big improvement. This tool helps to edit JSON data JSON Parser and you can also use Json validator.
 * oak_fence.json

Example: Redstone Wire
The redstone wire model uses the  format. This example is taken from  in


 * redstone_wire.json

This model is dynamically created. With the first condition, it is determining cases where the  model should be added, which requires either all of the four sides being set to "none", or any two sides that form a corner both being set either to   or.

The last case tests only one condition, which asks if  is set to , and if so it applies the model.

Block models
The folder  holds the model files for all the specified variants. The names of the files can be changed, but must always correspond with the names used in the variant files.


 * The root tag
 * : Loads a different model from the given path, in form of a resource location. If both  and   are set, the   tag overrides the   tag from the previous model.
 * Can be set to  to use a model that is created out of the specified icon. Note that only the first layer is supported, and rotation can be achieved only by using block states files.
 * : Whether to use ambient occlusion ( - default), or not . Note:only works on Parent file
 * : Holds the different places where item models are displayed.
 * : Named,  ,  ,  ,  ,  ,  , or  . Place where an item model is displayed. Holds its rotation, translation and scale for the specified situation. fixed refers to item frames, while the rest are as their name states. Note that translations are applied to the model before rotations.
 * : Specifies the rotation of the model according to the scheme.
 * : Specifies the position of the model according to the scheme . The values are clamped between -80 and 80.
 * : Specifies the scale of the model according to the scheme . If the value is greater than 4, it is displayed as 4.
 * : Holds the textures of the model, in form of a resource location or can be another texture variable.
 * : What texture to load particles from. This texture is used if you are in a nether portal. Also used for water and lava's still textures. Note: All breaking particles from non-model blocks are hard-coded.
 * : Defines a texture variable and assigns a texture.
 * : Contains all the elements of the model. They can have only cubic forms. If both  and   are set, the   tag overrides the   tag from the previous model.
 * An element.
 * : Start point of a cuboid according to the scheme . Values must be between -16 and 32.
 * : Stop point of a cuboid according to the scheme . Values must be between -16 and 32.
 * : Defines the rotation of an element.
 * : Sets the center of the rotation according to the scheme.
 * : Specifies the direction of rotation, can be,   or.
 * : Specifies the angle of rotation. Can be 45 through -45 degrees in 22.5 degree increments.
 * : Specifies whether or not to scale the faces across the whole block. Can be true or false. Defaults to false.
 * : Defines if shadows are rendered ( - default), not.
 * : Holds all the faces of the cuboid. If a face is left out, it does not render.
 * : Named,  ,  ,  ,   or  . Contains the properties of the specified face.
 * Defines the area of the texture to use according to the scheme . The texture behavior is inconsistent if UV extends below 0 or above 16. If the numbers of   and   are swapped (e.g. from   to  ), the texture flips. UV is optional, and if not supplied it automatically generates based on the element's position.
 * Specifies the texture in form of the texture variable prepended with a.
 * Specifies whether a face does not need to be rendered when there is a block touching it in the specified position. The position can be:,  ,  ,  ,  , or  . It also determines the side of the block to use the light level from for lighting the face, and if unset, defaults to the side.   may also be used in the latest versions instead of  , despite appearing only once in the actual game assets.
 * : Rotates the texture by the specified number of degrees. Can be 0, 90, 180, or 270. Defaults to 0. Rotation does not affect which part of the texture is used. Instead, it amounts to permutation of the selected texture vertexes (selected implicitly, or explicitly though ).
 * : Determines whether to tint the texture using a hardcoded tint index. The default value, -1, indicates not to use the tint. Any other number is provided to BlockColors to get the tint value corresponding to that index. However, most blocks do not have a tint value defined (in which case white is used). Furthermore, no vanilla block currently uses multiple tint values, and thus the tint index value is ignored (as long as it is set to something other than -1); it could be used for modded blocks that need multiple distinct tint values in the same block though.

Example: Standing Torch
For simplicity, this example describes only the standing torch, which is defined in the files  and   stored in the folder.


 * template_torch.json

This file is used to create the model of the torch, which is used for the normal, redstone torch and the soul fire torch. Therefore, the  tag is used to create three elements or cuboids. Only two faces of each cuboid are rendered, as only two faces of each one have been specified. is used to determine the area where the texture is used. The texture variable  is used for the particles and the cuboids and has not yet been defined.


 * torch.json

This file represents the model of the normal standing torch. It loads the model of previously defined standing torch with the help of  and inherits all the properties of the file. As this file is used only for the normal torch, the texture can now be specified. The texture is now assigned to the texture variable   (in form of a resource location) and therefore is used for the previously loaded model and its particles, as specified in the other file.

Example: Any Block
This example describes the fundamental structure of most normal blocks in Minecraft. All these blocks use the same basic model and apply their texture to it, as already described in the example above. This model is defined in the file, which can be found in the folder.


 * cube.json

Features that have already been described above are not discussed further. The use of  prevents the bottom face of the block from being rendered, if there is another adjacent block underneath it. The same applies to all the other faces of the block.

Example: Sapling
This example describes the fundamental structure used by all saplings, without assigning a specific texture. The model is specified in, the texture would e.g. be assigned in. Both files are stored in the folder.


 * cross.json

To create the usual shape of the saplings, both elements are being rotated by 45 degrees. Therefore, the origin and the axis of rotation are set to the specified values, the angle is set to 45 degrees and  is set to. The latter causes the model to be scaled on the axes it has not been rotated on, so that it takes up the same space as it did before rotating it (see comparison images).

Examples: Condensing multiple textures into one file
Using the  compound, textures can be read from one file and parts of the file can be used for each side of the block. doesn't take the pixels of the file, it instead takes percentages of the file in terms of 16; for example taking the top half of a file uses : from the coordinates ([0% of 16], [0% of 16]) – (0,0) – which is the top-left pixel, and ends at ([100% of 16], [50% of 16]) – (16,8), which is the middle-right pixel. Because this works in percentages, resizing an image from 16×16 to 32×32, 64×64, etc., does not require changing the model file.

In this example, a fletching table is used (see image) with combined textures (in this example, saved as  ): the top 16×16 pixels (if each of the textures are 32×32, etc., then the top 32×32, etc., textures are taken using the same code) textures the top of the block, the center 16×16 textures the front and back, and the bottom 16×16 textures the other sides. The bottom texture is. For three textures, this code can be used:

In this example, only two textures are condensed into one file, in this case for a bone block. For two textures, this code can be used:

In this example, four textures are condensed into one file, in this case for a barrel. For four textures, this code can be used:

Item models
As items do not have different variants, there is no need to specify them. The folder  contains all the model files. The names of the files are hardcoded and should not be changed.


 * : The root tag
 * Loads a different model from the given path, in form of a resource location. If both  and   are set, the   tag overrides the   tag from the previous model.
 * Can be set to  to use a model that is created out of the specified icon.
 * Can be set to  to load a model from an entity file. As you cannot specify the entity, this does not work for all items (only for chests, ender chests, mob heads, shields, banners and tridents).
 * : Holds the different places where item models are displayed.
 * : Named,  ,  ,  ,  ,  ,  , or  . Place where an item model is displayed. Holds its rotation, translation and scale for the specified situation. fixed refers to item frames, while the rest are as their name states. Note that translations are applied to the model before rotations.
 * : Specifies the rotation of the model according to the scheme.
 * : Specifies the position of the model according to the scheme . If the value is greater than 80, it is displayed as 80. If the value is less than -80, it is displayed as -80.
 * : Specifies the scale of the model according to the scheme . If the value is greater than 4, it is displayed as 4.
 * : Holds the textures of the model, in form of a resource location or can be another texture variable.
 * : Only used to specify the icon of the item used in the inventory. There can be more than just one layer (e.g. for spawn eggs), but the amount of possible layers is hardcoded for each item. Works only in combination with.
 * : What texture to load particles from. Used to determine the "crumb" particles generated by food items, as well as to determine the barrier particle (but it always uses  as blockbreaking particle), which otherwise uses "layer0".
 * : Defines a texture variable and assigns a texture.
 * : Can be  or  . If set to , the model is rendered like a block. If set to  , model is shaded like a flat item. Defaults to.
 * : Contains all the elements of the model. They can have only cubic forms. If both  and   are set, the   tag overrides the   tag from the previous model.
 * An element.
 * : Start point of a cuboid according to the scheme . Values must be between -16 and 32.
 * : Stop point of a cuboid according to the scheme . Values must be between -16 and 32.
 * : Defines the rotation of an element.
 * : Sets the center of the rotation according to the scheme.
 * : Specifies the direction of rotation, can be,   or.
 * : Specifies the angle of rotation. Can be 45 through -45 degrees in 22.5 degree increments.
 * : Specifies whether or not to scale the faces across the whole block. Can be true or false. Defaults to false.
 * : Defines if shadows are rendered ( - default), not.
 * : Holds all the faces of the cuboid. If a face is left out, it does not render.
 * : Named,  ,  ,  ,   or  . Contains the properties of the specified face.
 * Defines the area of the texture to use according to the scheme . If unset, it defaults to values equal to xyz position of the element. The texture behavior is inconsistent if UV extends below 0 or above 16. If the numbers of   and   are swapped (e.g. from   to  ), the texture flips. UV is optional, and if not supplied it automatically generates based on the element's position.
 * Specifies the texture in form of the texture variable prepended with a.
 * Specifies whether a face does not need to be rendered when there is a block touching it in the specified position. The position can be:,  ,  ,  ,  , or  . It also determines the side of the block to use the light level from for lighting the face, and if unset, defaults to the side.
 * : Rotates the texture by the specified number of degrees. Can be 0, 90, 180, or 270. Defaults to 0. Rotation does not affect which part of the texture is used. Instead, it amounts to permutation of the selected texture vertexes (selected implicitly, or explicitly though ).
 * : Determines whether to tint the texture using a hardcoded tint index. Tint indexes are hard coded into an item and each tint index represents a different color (as defined in the item class). Note that only certain blocks/items have a tint index; all others remain unaffected.
 * : Determines cases in which a different model should be used based on item tags. All cases are evaluated in order from top to bottom and last predicate that matches overrides. However, overrides are ignored if it has been already overridden once, for example this avoids recursion on overriding to the same model.
 * A case.
 * Holds the cases.
 * A single case tag. See item predicates for a full list of available tags.
 * : The path to the model to use if the case is met, in form of a resource location.

Simple example: 2D beds
This example replaces the bed item render with the textures currently found $$ and formerly found $$, such as. This file should be placed in the folder with the name "":

In this example, the is set to, which means that this item model is a flat texture. In the tag,  is set to the texture set for this item; in this case, the texture is called  and is found in the  folder. The "" can be changed out for all other colors of bed, but each must be put in a separate JSON file (e.g.,, etc.). There must be item texture files (which is what is requesting) for beds found in the  folder; these textures can be found below:

Rename the above files to (keep the file extension ) and place them inside the  folder. Make sure to match the reference to the name of the item texture.

Item predicates
Some items support additional predicates for model overrides. Below is a full list of available predicates.
 * : Used on compasses to determine the current angle, expressed in a decimal value of less than one.
 * : Used on shields to determine if currently blocking. If, the player is blocking.
 * : Used on Elytra to determine if broken. If, the Elytra is broken.
 * : Used on fishing rods to determine if the fishing rod has been cast. If, the fishing rod has been cast.
 * : Used on ender pearls and chorus fruit to determine the remaining cooldown, expressed in a decimal value between 0 and 1.
 * : Used on items with durability to determine the amount of damage, expressed in a decimal value between 0 and 1.
 * : Used on items with durability to determine if it is damaged. If, the item is damaged. Note that if an item has the unbreakable tag, this may be   while the item has a non-zero   tag.
 * : Determines the model used by left handed players. It affects the item they see in inventories, along with the item players see them holding or wearing.
 * : Determines the amount a bow or crossbow has been pulled, expressed in a decimal value of less than one.
 * : Used on bows and crossbows to determine if the bow is being pulled. If, the bow is currently being pulled.
 * : Used on crossbows to determine if they are charged with any projectile. If, the crossbow is charged.
 * : Used on crossbows. If, the crossbow is charged with a firework rocket.
 * : Used on tridents to determine if the trident is ready to be thrown by the player. If, the trident is ready for fire.
 * : Used on clocks to determine the current time, expressed in a decimal value of less than one.
 * : Used on any item and is compared to the  NBT, expressed in an integer value. The number is still internally converted to float, causing a precision loss for some numbers above 16 million. If the value read from the item data is greater than or equal to the value used for the predicate, the predicate is positive.
 * : Used on light blocks to determine the light level as contained in, expressed in a decimal value between 0 and 1, where 1 is light level 15.
 * : Used on bundles to determine the ratio of the bundle's current contents to its total capacity, expressed in a decimal value between 0 and 1.
 * : Used on goat horns to determine whether or not the player is tooting them. 1 for true, 0 for false.

Example: Torch
This example describes the torch as an item. The model can be found in the, which is stored in the folder.


 * torch.json

The -tag uses , so that the game uses the standard model of the torch, which has been generated out of the 2D graphic used for the item icon. The icon is specified with the -tag and the texture, that has already been used for the block model, is used for the icon as well. As there is just one layer hard coded for the torch, there cannot be any more layers added. Furthermore, the display properties for the torch are specified, so that it displays correctly in every possible situation. The torch cannot be placed on a players head and uses the specified icon in the inventory, so there is no need to adjust the model for these situations. To line the model up with the players left or right hand in first and third person view, the model needs to be rotated, moved and scaled, which is done for each of the two situation separately.

Example: Fishing Rod
This example describes the fishing rod as of Java Edition 1.9. The model can be found in the, which is stored in the folder.


 * fishing_rod.json

In this model, the normal model is overridden if the fishing rod is cast, causing it to instead display the model

Objects which cannot be remodelled
While most blocks and items can have their model changed, there are a multitude of things that cannot:


 * Fluids
 * including bubble columns
 * Entities
 * (excluding item frames, glow item frames, and shields)
 * Blocks which render as entities
 * Chests
 * Chest
 * Trapped Chest
 * Ender Chest
 * Signs
 * All 16 versions (8 wood types, and floor/wall)
 * Beds
 * All 16 colors
 * Shulker boxes
 * All 16 colors
 * Heads
 * All 12 versions (6 types, and floor/wall)
 * Banner
 * All 32 versions (16 colors, and floor/wall)
 * Conduit
 * Book on enchanting table
 * End Portal
 * End Gateway
 * Moving Piston

Most blocks have particle textures defined in dedicated model files, however it still stands that actual visual models cannot be changed.

History
Modelldaten Modelo Modèles モデル Modele bloków 模型