Models is where Minecraft models are literally defined and you can find them at
Copy 📦resource_pack.zip
└── 📁assets
└── 📁minecraft
└── 📁models
└── 📁item
└── 📑diamond.json
models are defined by assets/<namespace>/models/example.json
which inside a json is put as <namespace>:example.json
An example of a common item would be
Copy {
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/diamond"
}
}
and something like a sword
Copy {
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/diamond_sword"
}
}
The parents are reference to other models that will copy exactly that model and will make the changes that are specified, in this case it is reference to assets/minecraft/models/item/handheld.json
here the texture is defined by models, in the case of item/generated
it has “layer0” and “layer1” which is used in armor trims
example of layer0 & layer1
diamond_helmet_iron_trim.json
Copy {
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/diamond_helmet",
"layer1": "minecraft:trims/items/helmet_trim_iron"
}
}
Useful Parents
minecraft:item/generated
Copy {
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/allay_spawn_egg"
}
}
minecraft:item/handheld
Copy {
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/diamond_sword"
}
}
minecraft:item/trident_throwing
Copy {
"parent": "minecraft:item/trident_throwing",
"textures": {
"layer0": "minecraft:item/trident",
"particle": "minecraft:item/trident"
}
}
minecraft:item/trident_in_hand
Copy {
"parent": "minecraft:item/trident_in_hand",
"textures": {
"layer0": "minecraft:item/trident",
"particle": "minecraft:item/trident"
}
}
minecraft:block/crop
Copy {
"parent": "minecraft:block/crop",
"textures": {
"crop": "minecraft:block/wheat_stage0"
}
}
minecraft:block/leaves
Copy {
"parent": "minecraft:block/leaves",
"textures": {
"all": "minecraft:block/custom/palm_leaves"
}
}
minecraft:block/cross
Copy {
"parent": "minecraft:block/cross",
"textures": {
"cross": "minecraft:block/custom/palm_sapling"
}
}
minecraft:block/cube_all
Copy {
"parent": "minecraft:block/cube_all",
"textures": {
"all": "minecraft:block/custom/palm_planks"
}
}
minecraft:block/cube_column
Copy {
"parent": "minecraft:block/cube_column",
"textures": {
"end": "minecraft:block/custom/stripped_palm_log_top",
"side": "minecraft:block/custom/stripped_palm_log"
}
}
minecraft:block/cube_column_horizontal
Copy {
"parent": "minecraft:block/cube_column_horizontal",
"textures": {
"end": "minecraft:block/custom/palm_log",
"side": "minecraft:block/custom/palm_log"
}
}
minecraft:block/template_command_block
Copy {
"parent": "minecraft:block/template_command_block",
"textures": {
"back": "minecraft:block/chain_command_block_back",
"front": "minecraft:block/chain_command_block_front",
"side": "minecraft:block/chain_command_block_side"
}
}
minecraft:block/cube_column_uv_locked_x
Copy {
"parent": "minecraft:block/cube_column_uv_locked_x",
"textures": {
"end": "minecraft:block/cherry_log_top",
"side": "minecraft:block/cherry_log"
}
}
minecraft:block/cube_column_uv_locked_y
Copy {
"parent": "minecraft:block/cube_column_uv_locked_y",
"textures": {
"end": "minecraft:block/cherry_log_top",
"side": "minecraft:block/cherry_log"
}
}
minecraft:block/cube_column_uv_locked_z
Copy {
"parent": "minecraft:block/cube_column_uv_locked_z",
"textures": {
"end": "minecraft:block/cherry_log_top",
"side": "minecraft:block/cherry_log"
}
}
minecraft:block/pressure_plate_up
Copy {
"parent": "minecraft:block/pressure_plate_up",
"textures": {
"texture": "minecraft:block/cherry_planks"
}
}
minecraft:block/template_anvil
Copy {
"parent": "minecraft:block/template_anvil",
"textures": {
"top": "minecraft:block/chipped_anvil_top"
}
}