未命名¶
文档版本:1.21.50.25
架构¶
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
{
material "<any object property>"
}
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_version
:string- A version that tells minecraft what type of data format can be expected when reading this file.
minecraft:client_entity
:object- The entity description for clientside rendering, animations and models.
minecraft:client_entity
description
:object- The entity description for clientside rendering, animations and models.
description
animations
:object- 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_controllers
:array- 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_attachables
:boolean- UNDOCUMENTED: enable attachables.
geometry
:object- The reference to defined geometries in `
/models/'.
geometry
[a-zA-Z0-9_\.\-]+
:string- The reference to the geometry.
hide_armor
:boolean- Hides or shows the possible armor.
held_item_ignores_lighting
:boolean- This determines if the item held by an entity should render fully lit up (if true), or depending on surrounding lighting.
identifier
:identifier- The entity indentifier.
materials
:object- A collection of material definitions.
materials
min_engine_version
:string- The minimum engine version to be used.
particle_effects
:object- 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_emitters
:object- A collection of particle emitters definitions.
particle_emitters
<any object property>
:string- Particle emitter reference.
render_controllers
:array- 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.
scripts
:object- The place where variables, and animations / controller to be run is specified.
scripts
pre_animation
:array- 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.
parent_setup
:0- UNDOCUMENTED: parent setup.
scale
:0- Scale sets the scale of the mob's geometry.
scalex
:0
scaley
:0
scalez
:0
sound_effects
:object- A collection of sound effect definition.
sound_effects
<any object property>
:string- A sound effect definition.
spawn_egg
:object- The definition of how the spawn_egg icon looks like.
spawn_egg
base_color
:string- The basic color of the egg.
overlay_color
:string- The colors of the dots on the egg.
texture
:string- The texture reference in item_texture.json
texture_index
:integer- The index of the texture.
textures
:object- 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
{
material "<any object property>"
}
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_version
:format_version
minecraft:client_entity
:object- The entity description for clientside rendering, animations and models.
minecraft:client_entity
description
:object- The entity description for clientside rendering, animations and models.
description
animations
:object- 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_attachables
:boolean- Whether or not attachables are enaboled.
geometry
:object- The reference to defined geometries in `
/models/'.
geometry
[a-zA-Z0-9_\.\-]+
:string- The reference to the geometry.
queryable_geometry
:string- UNDOCUMENTED.
hide_armor
:boolean- Hides or shows the possible armor.
held_item_ignores_lighting
:boolean- This determines if the item held by an entity should render fully lit up (if true), or depending on surrounding lighting.
identifier
:identifier- The entity indentifier.
materials
:object- A collection of material definitions.
materials
<any object property>
:material- Material reference.
min_engine_version
:string- The minimum engine version to be used.
particle_effects
:object- A collection of particle definitions.
particle_effects
<any object property>
:string- Particle reference.
particle_emitters
:object- A collection of particle emitters definitions.
particle_emitters
<any object property>
:string- Particle emitter reference.
render_controllers
:array- 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.
scripts
:object- The place where variables, and animations / controller to be run is specified.
scripts
animate
:array- 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.
initialize
:array- 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_animation
:array- 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_setup
:0- UNDOCUMENTED: parent setup.
scale
:0- Scale sets the scale of the mob's geometry.
scalex
:0
scaley
:0
scalez
:0
should_update_bones_and_effects_offscreen
:boolean- 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_offscreen
:0- 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_offscreen
:boolean- 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_offscreen
:0- 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.
variables
:object- 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_effects
:object- A collection of sound effect definition.
sound_effects
<any object property>
:string- A sound effect definition.
spawn_egg
:object- The definition of how the spawn_egg icon looks like.
spawn_egg
base_color
:string- The basic color of the egg.
overlay_color
:string- The colors of the dots on the egg.
texture
:string- The texture reference in item_texture.json
texture_index
:integer- The index of the texture.
textures
:object- A collection of references to textures in the resourcepack.
textures
<any object property>
:string- A reference to a texture in the resourcepack.