> For the complete documentation index, see [llms.txt](https://inrhor.gitbook.io/imipet-wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://inrhor.gitbook.io/imipet-wiki/english/configuration/petmodel/model-yaml-description/pack.md).

# pack.yml

## what is this

This is about the configuration of automatically generating texture resource packs

## Step 1

Directory: plugins\imiPet\models\models\pack.yml (create by yourself)

{% hint style="info" %}
optiFine requires optiFine-Mod (latest) to identify the name of the item and assign a material model

customModelData is to judge the item data and assign the material model, no MOD is required, but only supports Minecraft 1.14+

all, is to generate optiFine and customModelData
{% endhint %}

```
# Whether to automatically generate texture packs
autoSpawn: false
# pack type
#   optiFine
#   customModelData
#   all
type: "optiFine"

```

## Step 2

After the configuration is set&#x20;

You need to be in the directory: plugins\imiPet\models\models

Create a folder named pack, and put texture materials (json\[model], png\[texture], mcmeta\[dynamic]) into it

## Step 3

Change the name of the texture material you just put in as follows (except for the suffix):

* idle (if the texture pack is idle, please change to idle)
* walk (similarly, walking state)&#x20;
* attack (similarly, attack state)&#x20;
* Skill\_AnimationID (Texture material of other actions, according to skill.yml

As shown in the figure (the skill is **MechaEngineering**, the animationID is **ha**)

![](https://2915787691-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MDSouQDPkGC6CWsWPGV%2F-MJLk1oMK4-ienAU5UTX%2F-MJLnAIkutZ4Q9CYe8aU%2FimiPet2.png?alt=media\&token=2a32f392-fef9-4581-be16-e06739f3e81b)

## Step 4

Start the server or /imiPet reload

Will be generated in the directory plugins\imiPet

Then resourcePack is the texture resource pack you need to use

Wait a minute, you still have one job: [pack.mcmeta](https://inrhor.gitbook.io/imipet-wiki/english/configuration/petmodel/model-yaml-description/pages/-MDSpcSuac0IbAD4wnEV#常见问题)

## Finally

Load texture resource package into the client
