跳转至

未命名

文档版本:1.21.0.24

架构

entity:
{
  string "format_version" : opt
  object "minecraft:client_entity" : opt
  {
    object "description" : opt
    {
      object "animations" : opt
      {
        string "<any object property>" : opt
      }
      array "animation_controllers" : opt
      {
        object "<any array element>" : opt
        {
          string "<any object property>" : opt
        }
      }
      boolean "enable_attachables" : opt
      object "geometry" : opt
      {
        string "[a-zA-Z0-9_\.\-]+" : opt
      }
      boolean "hide_armor" : opt
      boolean "held_item_ignores_lighting" : opt
      identifier "identifier"
      object "materials" : opt
      {
        string "<any object property>" : opt
      }
      string "min_engine_version" : opt
      object "particle_effects" : opt
      {
        string "<any object property>" : opt
      }
      object "particle_emitters" : opt
      {
        string "<any object property>" : opt
      }
      array "render_controllers" : opt
      {
        string "<any array element>" : opt
        object "<any array element>" : opt
        {
          string "<any object property>" : opt
        }
      }
      object "scripts" : opt
      {
        array "pre_animation" : opt
        {
          0 "<any array element>"
        }
        0 "parent_setup"
        0 "scale"
        0 "scalex"
        0 "scaley"
        0 "scalez"
      }
      object "sound_effects" : opt
      {
        string "<any object property>" : opt
      }
      object "spawn_egg" : opt
      {
        string "base_color" : opt
        string "overlay_color" : opt
        string "texture" : opt
        integer "texture_index" : opt
      }
      object "textures" : opt
      {
        string "<any object property>" : opt
      }
    }
  }
}
format_versionstring
A version that tells minecraft what type of data format can be expected when reading this file.
minecraft:client_entityobject
The entity description for clientside rendering, animations and models.
minecraft:client_entity
descriptionobject
The entity description for clientside rendering, animations and models.
description
animationsobject
These names are used by the animation controller JSON. Players can reference animations from the vanilla Minecraft Resource Pack or create their own. Custom animations should be in the animation folder at the root of the Resource Pack.
animations
<any object property>string
These names are used by the animation controller JSON. Players can reference animations from the vanilla Minecraft Resource Pack or create their own. Custom animations should be in the animation folder at the root of the Resource Pack.
animation_controllersarray
A reference to an animation controller.
animation_controllers
<any array element>object
A collection of animation controllers.
<any array element>
<any object property>string
A reference to an animation.
enable_attachablesboolean
UNDOCUMENTED: enable attachables.
geometryobject
The reference to defined geometries in `/models/'.
geometry
[a-zA-Z0-9_\.\-]+string
The reference to the geometry.
hide_armorboolean
Hides or shows the possible armor.
held_item_ignores_lightingboolean
This determines if the item held by an entity should render fully lit up (if true), or depending on surrounding lighting.
identifieridentifier
The entity indentifier.
identifier:
string
materialsobject
A collection of material definitions.
materials
<any object property>string
Material reference.
min_engine_versionstring
The minimum engine version to be used.
particle_effectsobject
Keys are required and need to be unique from all other keys in the animation controllers. Players can reference particles from the vanilla Minecraft Resource Pack or create their own. Custom particles should be in the particle folder at the root of the Resource Pack.
particle_effects
<any object property>string
Particle reference.
particle_emittersobject
A collection of particle emitters definitions.
particle_emitters
<any object property>string
Particle emitter reference.
render_controllersarray
Players can reference Render Controllers from the vanilla Minecraft Resource Pack or create their own. Custom Render Controllers should be in the textures folder at the root of the Resource Pack.
render_controllers
<any array element>string
A single render controller definition.
<any array element>object
<any array element>
<any object property>string
A render controller activate on conditional.
scriptsobject
The place where variables, and animations / controller to be run is specified.
scripts
pre_animationarray
Client side scripts that are evaluated immediately before animations are processed.
pre_animation
<any array element>0
Clientside molang variables that are to be evaluated during the animation.
0:
string
parent_setup0
UNDOCUMENTED: parent setup.
0:
string
0:
number
scale0
Scale sets the scale of the mob's geometry.
scalex0
scaley0
scalez0
sound_effectsobject
A collection of sound effect definition.
sound_effects
<any object property>string
A sound effect definition.
spawn_eggobject
The definition of how the spawn_egg icon looks like.
spawn_egg
base_colorstring
The basic color of the egg.
overlay_colorstring
The colors of the dots on the egg.
texturestring
The texture reference in item_texture.json
texture_indexinteger
The index of the texture.
texturesobject
A collection of references to textures in the resourcepack.
textures
<any object property>string
A reference to a texture in the resourcepack.
entity:
{
  format_version "format_version"
  object "minecraft:client_entity" : opt
  {
    object "description" : opt
    {
      object "animations" : opt
      {
        string "<any object property>" : opt
      }
      boolean "enable_attachables" : opt
      object "geometry" : opt
      {
        string "[a-zA-Z0-9_\.\-]+" : opt
      }
      string "queryable_geometry" : opt
      boolean "hide_armor" : opt
      boolean "held_item_ignores_lighting" : opt
      identifier "identifier"
      object "materials" : opt
      {
        string "<any object property>" : opt
      }
      string "min_engine_version" : opt
      object "particle_effects" : opt
      {
        string "<any object property>" : opt
      }
      object "particle_emitters" : opt
      {
        string "<any object property>" : opt
      }
      array "render_controllers" : opt
      {
        string "<any array element>" : opt
        object "<any array element>" : opt
        {
          string "<any object property>" : opt
        }
      }
      object "scripts" : opt
      {
        array "animate" : opt
        {
          string "<any array element>" : opt
          object "<any array element>" : opt
          {
            string "<any object property>" : opt
            number "<any object property>" : opt
          }
        }
        array "initialize" : opt
        {
          0 "<any array element>"
        }
        array "pre_animation" : opt
        {
          0 "<any array element>"
        }
        0 "parent_setup"
        0 "scale"
        0 "scalex"
        0 "scaley"
        0 "scalez"
        boolean "should_update_bones_and_effects_offscreen" : opt
        0 "should_update_bones_and_effects_offscreen"
        boolean "should_update_effects_offscreen" : opt
        0 "should_update_effects_offscreen"
        object "variables" : opt
        {
          string "variable.[a-zA-Z_][a-zA-Z0-9_]*" : opt
        }
      }
      object "sound_effects" : opt
      {
        string "<any object property>" : opt
      }
      object "spawn_egg" : opt
      {
        string "base_color" : opt
        string "overlay_color" : opt
        string "texture" : opt
        integer "texture_index" : opt
      }
      object "textures" : opt
      {
        string "<any object property>" : opt
      }
    }
  }
}
format_versionformat_version
format_version:
string
minecraft:client_entityobject
The entity description for clientside rendering, animations and models.
minecraft:client_entity
descriptionobject
The entity description for clientside rendering, animations and models.
description
animationsobject
These names are used by the animation controller JSON. Players can reference animations from the vanilla Minecraft Resource Pack or create their own. Custom animations should be in the animation folder at the root of the Resource Pack.
animations
<any object property>string
These names are used by the animation controller JSON. Players can reference animations from the vanilla Minecraft Resource Pack or create their own. Custom animations should be in the animation folder at the root of the Resource Pack.
enable_attachablesboolean
Whether or not attachables are enaboled.
geometryobject
The reference to defined geometries in `/models/'.
geometry
[a-zA-Z0-9_\.\-]+string
The reference to the geometry.
queryable_geometrystring
UNDOCUMENTED.
hide_armorboolean
Hides or shows the possible armor.
held_item_ignores_lightingboolean
This determines if the item held by an entity should render fully lit up (if true), or depending on surrounding lighting.
identifieridentifier
The entity indentifier.
materialsobject
A collection of material definitions.
materials
<any object property>string
Material reference.
min_engine_versionstring
The minimum engine version to be used.
particle_effectsobject
A collection of particle definitions.
particle_effects
<any object property>string
Particle reference.
particle_emittersobject
A collection of particle emitters definitions.
particle_emitters
<any object property>string
Particle emitter reference.
render_controllersarray
A collection of Render controller definitions.
render_controllers
<any array element>string
A single render controller definition.
<any array element>object
<any array element>
<any object property>string
A render controller activate on conditional.
scriptsobject
The place where variables, and animations / controller to be run is specified.
scripts
animatearray
The array of items to animate.
animate
<any array element>string
A single animation or animation controller to run.
<any array element>object
A single animation or animation controller to run on condition.
<any array element>
<any object property>string
A molang condition.
<any object property>number
Blend weight.
initializearray
Clientside molang variables that are to be evaluated during the creation of the entity.
initialize
<any array element>0
Clientside molang variables that are to be evaluated during the creation of the entity.
pre_animationarray
Clientside molang variables that are to be evaluated during the animation.
pre_animation
<any array element>0
Clientside molang variables that are to be evaluated during the animation.
parent_setup0
UNDOCUMENTED: parent setup.
scale0
Scale sets the scale of the mob's geometry.
scalex0
scaley0
scalez0
should_update_bones_and_effects_offscreenboolean
Bones and effects will still be updated if the entity is off screen if this expression returns anything other than 0.0.
should_update_bones_and_effects_offscreen0
Bones and effects will still be updated if the entity is off screen if this expression returns anything other than 0.0.
should_update_effects_offscreenboolean
Effects will still be updated if the entity is off screen if this expression or should_update_bones_and_effects_offscreen returns anything other than 0.0.
should_update_effects_offscreen0
Effects will still be updated if the entity is off screen if this expression or should_update_bones_and_effects_offscreen returns anything other than 0.0.
variablesobject
A list of variables that need certain settings applied to them. Currently, for the client, only public is supported.
variables
variable.[a-zA-Z_][a-zA-Z0-9_]*string
If a variable is public, it can be read by other mobs. See the molang -> operator for details.
sound_effectsobject
A collection of sound effect definition.
sound_effects
<any object property>string
A sound effect definition.
spawn_eggobject
The definition of how the spawn_egg icon looks like.
spawn_egg
base_colorstring
The basic color of the egg.
overlay_colorstring
The colors of the dots on the egg.
texturestring
The texture reference in item_texture.json
texture_indexinteger
The index of the texture.
texturesobject
A collection of references to textures in the resourcepack.
textures
<any object property>string
A reference to a texture in the resourcepack.