跳转至

未命名

文档版本:1.21.0.24

架构

0:
{
  boolean "debug" : opt
  string "format_version" : opt
  object "(^geometry\.[a-zA-Z0-9_.'\-:]+|format_version)" : opt
  {
    array "bones" : opt
    {
      object "<any array element>" : opt
      {
        array "bind_pose_rotation" : opt
        {
          number "0..0" : opt
          number "1..1" : opt
          number "2..2" : opt
        }
        array "cubes" : opt
        {
          object "<any array element>" : opt
          {
            number "inflate" : opt
            boolean "mirror" : opt
            array "origin" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
              number "2..2" : opt
            }
            array "size" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
              number "2..2" : opt
            }
            array "uv" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
            }
          }
        }
        boolean "debug" : opt
        number "inflate" : opt
        object "locators" : opt
        {
          array "<any object property>" : opt
          {
            number "<any array element>" : opt
          }
        }
        boolean "mirror" : opt
        string "name" : opt
        boolean "neverRender" : opt
        string "parent" : opt
        array "pivot" : opt
        {
          number "0..0" : opt
          number "1..1" : opt
          number "2..2" : opt
        }
        object "poly_mesh" : opt
        {
          boolean "normalized_uvs" : opt
          array "positions" : opt
          {
            number "0..0" : opt
            number "1..1" : opt
            number "2..2" : opt
          }
          array "normals" : opt
          {
            number "0..0" : opt
            number "1..1" : opt
            number "2..2" : opt
          }
          array "polys" : opt
          {
            array "<any array element>" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
              number "2..2" : opt
            }
          }
        }
        integer "render_group_id" : opt
        boolean "reset" : opt
        array "rotation" : opt
        {
          number "0..0" : opt
          number "1..1" : opt
          number "2..2" : opt
        }
        array "texture_meshes" : opt
        {
          object "<any array element>" : opt
          {
            string "texture" : opt
            array "local_pivot" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
              number "2..2" : opt
            }
            array "position" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
              number "2..2" : opt
            }
            array "rotation" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
              number "2..2" : opt
            }
            array "scale" : opt
            {
              number "0..0" : opt
              number "1..1" : opt
              number "2..2" : opt
            }
          }
        }
      }
    }
    string "cape" : opt
    boolean "debug" : opt
    integer "texturewidth" : opt
    integer "textureheight" : opt
    number "visible_bounds_width" : opt
    number "visible_bounds_height" : opt
    array "visible_bounds_offset" : opt
    {
      number "0..0" : opt
      number "1..1" : opt
      number "2..2" : opt
    }
  }
}
debugboolean
UNDOCUMENTED.
format_versionstring
A version that tells minecraft what type of data format can be expected when reading this file.
(^geometry\.[a-zA-Z0-9_.'\-:]+|format_version)object
Geometry specification.
(^geometry\.[a-zA-Z0-9_.'\-:]+|format_version)
bonesarray
The bones definitions.
bones
<any array element>object
The bone definition.
<any array element>
bind_pose_rotationarray
bind_pose_rotation
0..0number
1..1number
2..2number
cubesarray
cubes
<any array element>object
<any array element>
inflatenumber
mirrorboolean
originarray
origin
0..0number
1..1number
2..2number
sizearray
size
0..0number
1..1number
2..2number
uvarray
uv
0..0number
1..1number
debugboolean
inflatenumber
locatorsobject
locators
<any object property>array
<any object property>
<any array element>number
mirrorboolean
namestring
neverRenderboolean
parentstring
pivotarray
pivot
0..0number
1..1number
2..2number
poly_meshobject
UNDOCUMENTED.
poly_mesh
normalized_uvsboolean
UNDOCUMENTED.
positionsarray
UNDOCUMENTED.
positions
0..0number
1..1number
2..2number
normalsarray
UNDOCUMENTED.
normals
0..0number
1..1number
2..2number
polysarray
UNDOCUMENTED.
polys
<any array element>array
<any array element>
0..0number
1..1number
2..2number
render_group_idinteger
UNDOCUMENTED.
resetboolean
UNDOCUMENTED.
rotationarray
UNDOCUMENTED.
rotation
0..0number
1..1number
2..2number
texture_meshesarray
UNDOCUMENTED.
texture_meshes
<any array element>object
<any array element>
texturestring
local_pivotarray
local_pivot
0..0number
1..1number
2..2number
positionarray
position
0..0number
1..1number
2..2number
rotationarray
rotation
0..0number
1..1number
2..2number
scalearray
scale
0..0number
1..1number
2..2number
capestring
UNDOCUMENTED.
debugboolean
UNDOCUMENTED.
texturewidthinteger
UNDOCUMENTED: texturewidth.
textureheightinteger
UNDOCUMENTED: textureheight.
visible_bounds_widthnumber
UNDOCUMENTED: visible bounds width.
visible_bounds_heightnumber
UNDOCUMENTED: visible bounds height.
visible_bounds_offsetarray
UNDOCUMENTED: visible bounds offset.
visible_bounds_offset
0..0number
1..1number
2..2number
0:
{
  boolean "debug" : opt
  format_version "format_version"
  array "minecraft:geometry" : opt
  {
    object "<any array element>" : opt
    {
      object "description" : opt
      {
        string "identifier" : opt
        number "texture_width" : opt
        number "texture_height" : opt
        array "visible_bounds_offset" : opt
        {
          number "<any array element>" : opt
        }
        number "visible_bounds_width" : opt
        number "visible_bounds_height" : opt
      }
      array "bones" : opt
      {
        object "<any array element>" : opt
        {
          0 "binding"
          array "cubes" : opt
          {
            object "<any array element>" : opt
            {
              number "inflate" : opt
              boolean "mirror" : opt
              array "origin" : opt
              {
                number "<any array element>" : opt
              }
              array "pivot" : opt
              {
                number "0..0" : opt
                number "1..1" : opt
                number "2..2" : opt
              }
              boolean "reset" : opt
              array "rotation" : opt
              {
                number "<any array element>" : opt
              }
              array "size" : opt
              {
                number "0..0" : opt
                number "1..1" : opt
                number "2..2" : opt
              }
              object "uv" : opt
              {
                object "north" : opt
                {
                  array "uv" : opt
                  {
                    number "0..0" : opt
                    number "1..1" : opt
                  }
                  array "uv_size" : opt
                  string "material_instance" : opt
                }
                object "south" : opt
                {
                }
                object "east" : opt
                {
                }
                object "west" : opt
                {
                }
                object "up" : opt
                {
                }
                object "down" : opt
                {
                }
              }
              array "uv" : opt
              {
                number "0..0" : opt
                number "1..1" : opt
              }
            }
          }
          boolean "debug" : opt
          number "inflate" : opt
          object "locators" : opt
          {
            object "<any object property>" : opt
            {
              array "offset" : opt
              {
                number "<any array element>" : opt
              }
              array "rotation" : opt
              {
                number "<any array element>" : opt
              }
              boolean "ignore_inherited_scale" : opt
            }
            array "<any object property>" : opt
            {
              number "<any array element>" : opt
            }
          }
          boolean "mirror" : opt
          string "name" : opt
          string "parent" : opt
          array "pivot" : opt
          {
            number "0..0" : opt
            number "1..1" : opt
            number "2..2" : opt
          }
          object "poly_mesh" : opt
          {
            boolean "normalized_uvs" : opt
            array "normals" : opt
            {
              array "<any array element>" : opt
              {
                number "<any array element>" : opt
              }
            }
            string "polys" : opt
            array "polys" : opt
            {
              array "<any array element>" : opt
              {
                array "<any array element>" : opt
                {
                  number "0..0" : opt
                  number "1..1" : opt
                  number "2..2" : opt
                }
              }
            }
            array "positions" : opt
            {
              array "<any array element>" : opt
              {
                number "<any array element>" : opt
              }
            }
            array "uvs" : opt
            {
              array "<any array element>" : opt
              {
                number "<any array element>" : opt
              }
            }
          }
          integer "render_group_id" : opt
          array "rotation" : opt
          {
            number "0..0" : opt
            number "1..1" : opt
            number "2..2" : opt
          }
          array "texture_meshes" : opt
          {
            object "<any array element>" : opt
            {
              array "local_pivot" : opt
              {
                number "<any array element>" : opt
              }
              array "position" : opt
              {
                number "<any array element>" : opt
              }
              array "rotation" : opt
              {
                number "<any array element>" : opt
              }
              array "scale" : opt
              {
                number "<any array element>" : opt
              }
              string "texture" : opt
            }
          }
        }
      }
      string "cape" : opt
    }
  }
}
debugboolean
UNDOCUMENTED.
format_versionformat_version
format_version:
string
minecraft:geometryarray
The collection of geometries.
minecraft:geometry
<any array element>object
Model specification.
<any array element>
descriptionobject
The descriptions of the geometry.
description
identifierstring
Entity definition and Client Block definition files refer to this geometry via this identifier.
texture_widthnumber
Assumed width in texels of the texture that will be bound to this geometry.
texture_heightnumber
Assumed height in texels of the texture that will be bound to this geometry.
visible_bounds_offsetarray
Offset of the visibility bounding box from the entity location point (in model space units).
visible_bounds_offset
<any array element>number
visible_bounds_widthnumber
Width of the visibility bounding box (in model space units).
visible_bounds_heightnumber
Height of the visible bounding box (in model space units).
bonesarray
Bones define the skeleton of the mob: the parts that can be animated, and to which geometry and other bones are attached.
bones
<any array element>object
A bones specification.
<any array element>
binding0
useful for items. A molang expression specifying the bone name of the parent skeletal hierarchy that this bone should use as the root transform. Without this field it will look for a bone in the parent entity with the same name as this bone. If both are missing, it will assume a local skeletal hierarchy (via the parent field). If that is also missing, it will attach to the owning entity's root transform.
0:
string
cubesarray
This is the list of cubes associated with this bone.
cubes
<any array element>object
A single cube.
<any array element>
inflatenumber
Grow this box by this additive amount in all directions (in model space units), this field overrides the bone's inflate field for this cube only.
mirrorboolean
Mirrors this cube about the unrotated x axis (effectively flipping the east / west faces), overriding the bone's mirror setting for this cube.
originarray
origin
<any array element>number
This point declares the unrotated lower corner of cube (smallest x/y/z value in model space units).
pivotarray
If this field is specified, rotation of this cube occurs around this point, otherwise its rotation is around the center of the box. Note that in 1.12 this is flipped upside-down, but is fixed in 1.14.
pivot
0..0number
If this field is specified, rotation of this cube occurs around this point, otherwise its rotation is around the center of the box. Note that in 1.12 this is flipped upside-down, but is fixed in 1.14.
1..1number
If this field is specified, rotation of this cube occurs around this point, otherwise its rotation is around the center of the box. Note that in 1.12 this is flipped upside-down, but is fixed in 1.14.
2..2number
If this field is specified, rotation of this cube occurs around this point, otherwise its rotation is around the center of the box. Note that in 1.12 this is flipped upside-down, but is fixed in 1.14.
resetboolean
UNDOCUMENTED.
rotationarray
rotation
<any array element>number
The cube is rotated by this amount (in degrees, x-then-y-then-z order) around the pivot.
sizearray
The cube extends this amount relative to its origin (in model space units).
size
0..0number
The cube extends this amount relative to its origin (in model space units).
1..1number
The cube extends this amount relative to its origin (in model space units).
2..2number
The cube extends this amount relative to its origin (in model space units).
uvobject
This is an alternate per-face uv mapping which specifies each face of the cube. Omitting a face will cause that face to not get drawn.
uv
northobject
Specifies the UV's for the face that stretches along the x and y axes, and faces the -z axis.
north
uvarray
Specifies the uv origin for the face. For this face, it is the upper-left corner, when looking at the face with y being up.
uv
0..0number
The x component of the uv.
1..1number
The y component of the uv.
uv_sizearray
The face maps this many texels from the uv origin. If not specified, the box dimensions are used instead.
uv_size
material_instancestring
Specifies the UV's for the face that stretches.
southobject
Specifies the UV's for the face that stretches along the x and y axes, and faces the z axis.
south
eastobject
Specifies the UV's for the face that stretches along the z and y axes, and faces the x axis.
east
westobject
Specifies the UV's for the face that stretches along the z and y axes, and faces the -x axis.
west
upobject
Specifies the UV's for the face that stretches along the x and z axes, and faces the y axis.
up
downobject
Specifies the UV's for the face that stretches along the x and z axes, and faces the -y axis.
down
uvarray
This is an alternate per-face uv mapping which specifies each face of the cube. Omitting a face will cause that face to not get drawn.
uv
0..0number
The x component of the uv.
1..1number
The y component of the uv.
debugboolean
inflatenumber
Grow this box by this additive amount in all directions (in model space units).
locatorsobject
This is a list of locators associated with this bone. A locator is a point in model space that tracks a particular bone as the bone animates (by maintaining it's relationship to the bone through the animation).
locators
<any object property>object
<any object property>
offsetarray
Position of the locator in model space.
offset
<any array element>number
Position of the locator in model space.
rotationarray
Rotation of the locator in model space.
rotation
<any array element>number
Rotation of the locator in model space.
ignore_inherited_scaleboolean
Discard scale inherited from parent bone.
<any object property>array
This is a list of locators associated with this bone. A locator is a point in model space that tracks a particular bone as the bone animates (by maintaining it's relationship to the bone through the animation).
<any object property>
<any array element>number
Position of the locator in model space.
mirrorboolean
Mirrors the UV's of the unrotated cubes along the x axis, also causes the east/west faces to get flipped.
namestring
Animation files refer to this bone via this identifier.
parentstring
Bone that this bone is relative to. If the parent bone moves, this bone will move along with it.
pivotarray
The bone pivots around this point (in model space units).
pivot
0..0number
1..1number
2..2number
poly_meshobject
EXPERIMENTAL A triangle or quad mesh object. Can be used in conjunction with cubes and texture geometry.
poly_mesh
normalized_uvsboolean
If true, UVs are assumed to be [0-1]. If false, UVs are assumed to be [0-texture_width] and [0-texture_height] respectively.
normalsarray
Vertex normals. Can be either indexed via the polys section, or be a quad-list if mapped 1-to-1 to the positions and UVs sections.
normals
<any array element>array
Vertex normals. Can be either indexed via the polys section, or be a quad-list if mapped 1-to-1 to the positions and UVs sections.
<any array element>
<any array element>number
Vertex normals. Can be either indexed via the polys section, or be a quad-list if mapped 1-to-1 to the positions and UVs sections.
polysstring
If not specifying vertex indices, arrays of data must be a list of tris or quads, set by making this property either tri_list or quad_list.
polysarray
Poly element indices, as an array of polygons, each an array of either three or four vertices, each an array of indices into positions, normals, and UVs (in that order).
polys
<any array element>array
Poly element indices, as an array of polygons, each an array of either three or four vertices, each an array of indices into positions, normals, and UVs (in that order).
<any array element>
<any array element>array
<any array element>
0..0number
The index of the position.
1..1number
The index of the normal vertex.
2..2number
The index of the uv vertex.
positionsarray
positions
<any array element>array
<any array element>
<any array element>number
Vertex positions for the mesh. Can be either indexed via the polys section, or be a quad-list if mapped 1-to-1 to the normals and UVs sections.
uvsarray
Vertex UVs. Can be either indexed via the polys section, or be a quad-list if mapped 1-to-1 to the positions and normals sections.
uvs
<any array element>array
Vertex UVs. Can be either indexed via the polys section, or be a quad-list if mapped 1-to-1 to the positions and normals sections.
<any array element>
<any array element>number
Vertex UVs. Can be either indexed via the polys section, or be a quad-list if mapped 1-to-1 to the positions and normals sections.
render_group_idinteger
rotationarray
This is the initial rotation of the bone around the pivot, pre-animation (in degrees, x-then-y-then-z order).
rotation
0..0number
in degrees.
1..1number
in degrees.
2..2number
in degrees.
texture_meshesarray
EXPERIMENTAL Adds a mesh to the bone's geometry by converting texels in a texture into boxes.
texture_meshes
<any array element>object
<any array element>
local_pivotarray
The pivot point on the texture (in texture space not entity or bone space) of the texture geometry.
local_pivot
<any array element>number
The pivot point on the texture (in texture space not entity or bone space) of the texture geometry.
positionarray
The position of the pivot point after rotation (in entity space not texture or bone space) of the texture geometry.
position
<any array element>number
The position of the pivot point after rotation (in entity space not texture or bone space) of the texture geometry.
rotationarray
The rotation (in degrees) of the texture geometry relative to the offset.
rotation
<any array element>number
The rotation (in degrees) of the texture geometry relative to the offset.
scalearray
The scale (in degrees) of the texture geometry relative to the offset.
scale
<any array element>number
The scale (in degrees) of the texture geometry relative to the offset.
texturestring
The friendly-named texture to use.
capestring
UNDOCUMENTED.