# models

Models is where Minecraft models are literally defined and you can find them at

```
📦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

```json
{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "minecraft:item/diamond"
  }
}
```

and something like a sword

```json
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "minecraft:item/diamond_sword"
  }
}
```

| Parameter | Description                                                                                                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| parent    | 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` |
| textures  | 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`

```json
{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "minecraft:item/diamond_helmet",
    "layer1": "minecraft:trims/items/helmet_trim_iron"
  }
}
```

## Useful Parents

### `minecraft:item/generated`

```json
{
  "parent": "minecraft:item/generated",
  "textures": {
    "layer0": "minecraft:item/allay_spawn_egg"
  }
}
```

### `minecraft:item/handheld`

```json
{
  "parent": "minecraft:item/handheld",
  "textures": {
    "layer0": "minecraft:item/diamond_sword"
  }
}
```

### `minecraft:item/trident_throwing`

```json
{
  "parent": "minecraft:item/trident_throwing",
  "textures": {
    "layer0": "minecraft:item/trident",
    "particle": "minecraft:item/trident"
  }
}
```

### `minecraft:item/trident_in_hand`

```json
{
  "parent": "minecraft:item/trident_in_hand",
  "textures": {
    "layer0": "minecraft:item/trident",
    "particle": "minecraft:item/trident"
  }
}
```

### `minecraft:block/crop`

```json
{
  "parent": "minecraft:block/crop",
  "textures": {
    "crop": "minecraft:block/wheat_stage0"
  }
}
```

### `minecraft:block/leaves`

```json
{
    "parent": "minecraft:block/leaves",
    "textures": {
        "all": "minecraft:block/custom/palm_leaves"
    }
}
```

### `minecraft:block/cross`

```json
{
    "parent": "minecraft:block/cross",
    "textures": {
        "cross": "minecraft:block/custom/palm_sapling"
    }
}
```

### `minecraft:block/cube_all`

```json
{
    "parent": "minecraft:block/cube_all",
    "textures": {
        "all": "minecraft:block/custom/palm_planks"
    }
}
```

### `minecraft:block/cube_column`

```json
{
    "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`

```json
{
    "parent": "minecraft:block/cube_column_horizontal",
    "textures": {
        "end": "minecraft:block/custom/palm_log",
        "side": "minecraft:block/custom/palm_log"
    }
}
```

### `minecraft:block/template_command_block`

```json
{
  "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`

```json
{
  "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`

```json
{
  "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`

```json
{
  "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`

```json
{
  "parent": "minecraft:block/pressure_plate_up",
  "textures": {
    "texture": "minecraft:block/cherry_planks"
  }
}
```

### `minecraft:block/template_anvil`

```json
{
  "parent": "minecraft:block/template_anvil",
  "textures": {
    "top": "minecraft:block/chipped_anvil_top"
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.elitefantasy.net/resourcepack-guide/beginning/models.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
