Skip to content

Creating a custom pack (pretty by Claude)

tsgscraft edited this page Nov 20, 2026 · 2 revisions

Creating a Custom Pack

This is the full documentation of the custom pack format. This example recreates testPackV1, but with a different namespace: instead of advancedplayerclothing, this uses tutorial, to make it clear, what is mod and what is your pack.

Troubleshooting tip: if an element doesn't load correctly (or doesn't load at all), check the game logs for Failed to load... and read the message that follows it.

Requirements

You need knowledge of json, resource pack creation and the tools for that.

File Structure

Below is the full file structure required for a clothing element. Every element is split across 3+ JSON files and at least one PNG.


JSON File 1 — Clothing Registry

Path: <packname>/assets/<namespace>/clothing.json

{
  "clothing": [
    "tutorial:clothing/dress_1.json",
    "tutorial:clothing/dress_2.json",
    "tutorial:clothing/dress_3.json",
    "tutorial:clothing/dress_4.json"
  ]
}

This file registers all clothing elements, referencing them relative to the clothing directory with the .json extension.


JSON File 2 — Clothing Element Definition

Path: <packname>/assets/<namespace>/clothing/<element_name>.json

{
  "name": "clothing.dress.dress_1",
  "type": "tutorial:dress",
  "slim_model": "tutorial:models/clothing/dress/player_model_slim.json",
  "modifiers": {
    "second_layer": {
      "head": { "scale": [0.98, 0.98, 0.98] },
      "body": { "scale": [0.98, 0.98, 0.98] },
      "left_arm": { "scale": [0.98, 0.98, 0.98] },
      "right_arm": { "scale": [0.98, 0.98, 0.98] },
      "left_leg": { "scale": [0.98, 0.98, 0.98] },
      "right_leg": { "scale": [0.98, 0.98, 0.98] },
      "lboob": { "scale": [0.98, 0.98, 0.98] },
      "rboob": { "scale": [0.98, 0.98, 0.98] }
    }
  },
  "textures": [
    {
      "id": "#0",
      "location": "tutorial:textures/clothing/dress/slim_dress_1.png",
      "debug": "tutorial:textures/clothing/dress/alex.png",
      "width": 64,
      "height": 64
    }
  ]
}

Field Reference

Field Description
name Translation string used for localization.
type The clothing type. Can be anything following the format <namespace>:<type>. Also requires localization, always in the format advancedplayerclothing.type.<namespace>.<type>.
model / slim_model Model file locations, one per player model variant (Steve / Alex-slim), in the format <namespace>:models/clothing/<model_file>.json. Useful for gloves, shirts, or similar items. You can omit one — the other will then apply to both slim and non-slim players.
textures An array of texture objects (see below).
modifiers Adjustments applied to the base player model layers (see below).

textures array — object fields

Key Description
id The texture ID referenced in the model file.
location Texture path: <namespace>:textures/clothing/<texture>.png or $player_skin to use the player's skin
width Texture width in pixels.
height Texture height in pixels.
debug (optional) A debug texture in the same format as location, used when the debug option is enabled.

modifiers — second_layer object

Currently supports only the second_layer object, used to modify:

  • scale — array of 3 values [x, y, z]
  • offset — array of 3 values [x, y, z]
  • visible — boolean toggle

Available second-layer targets: head, body, left_arm, right_arm, left_leg, right_leg, lboob, rboob.

The lboob and rboob parts belong to the Female Gender Mod by Wildfire, celeste, and pupnewfster.


JSON File 3 — Clothing Model

Path: <packname>/assets/<namespace>/models/clothing/<element_name>.json

(Excerpt — a full model would be too long to show here)

{
  "anchors": [
    {
      "anchor": "minecraft:head",
      "offset": [-8, 0, -8],
      "elements": [
        {
          "name": "Head",
          "from": [4, 0, 4],
          "to": [12, 8, 12],
          "rotation": { "angle": 0, "axis": "y", "origin": [8, 0, 8] },
          "faces": {
            "north": { "uv": [2, 2, 4, 4], "texture": "#0" },
            "east":  { "uv": [0, 2, 2, 4], "texture": "#0" },
            "south": { "uv": [6, 2, 8, 4], "texture": "#0" },
            "west":  { "uv": [4, 2, 6, 4], "texture": "#0" },
            "up":    { "uv": [4, 2, 2, 0], "texture": "#0" },
            "down":  { "uv": [6, 0, 4, 2], "texture": "#0" }
          }
        },
        {
          "name": "Hat Layer",
          "from": [3.1, -0.1, 3.1],
          "to": [12.1, 8.1, 12.1],
          "rotation": { "angle": 0, "axis": "y", "origin": [8, 0, 8] },
          "faces": {
            "north": { "uv": [10, 2, 12, 4], "texture": "#0" },
            "east":  { "uv": [8, 2, 10, 4], "texture": "#0" },
            "south": { "uv": [14, 2, 16, 4], "texture": "#0" },
            "west":  { "uv": [12, 2, 14, 4], "texture": "#0" },
            "up":    { "uv": [12, 2, 10, 0], "texture": "#0" },
            "down":  { "uv": [14, 0, 12, 2], "texture": "#0" }
          }
        }
      ]
    }
  ]
}

Field Reference

Field Description
anchors Array of anchor objects (see below).

Anchor object fields

Key Description
anchor One of: minecraft:head, minecraft:body, minecraft:left_arm, minecraft:right_arm, minecraft:left_leg, minecraft:right_leg, wildfire_gender:lboob, wildfire_gender:rboob. Anchors the elements to that part of the player model for easy animation.
offset Array [x, y, z] — offset in model space of the elements.
elements Array of elements following the 1.21.11+ vanilla model format. Supports rotation in both the 1.21.11+ and 1.21.1 formats.