Entity Server Definition¶
文档版本:1.21.0.24
The minecraft entity server definition file, defining a entity's behavior.
架构¶
format_version
:format_version
<any array element>
:integer
minecraft:entity
:entity
entity:
{
object "description" : opt
{
string "identifier" : opt
boolean "is_spawnable" : opt
boolean "is_summonable" : opt
boolean "is_experimental" : opt
}
object "components" : opt
{
minecraft:attack "minecraft:attack"
minecraft:spell_effects "minecraft:spell_effects"
minecraft:strength "minecraft:strength"
minecraft:addrider "minecraft:addrider"
minecraft:admire_item "minecraft:admire_item"
minecraft:ageable "minecraft:ageable"
minecraft:anger_level "minecraft:anger_level"
minecraft:angry "minecraft:angry"
break_door "minecraft:annotation.break_door"
open_door "minecraft:annotation.open_door"
minecraft:area_attack "minecraft:area_attack"
minecraft:attack_cooldown "minecraft:attack_cooldown"
minecraft:barter "minecraft:barter"
minecraft:block_climber "minecraft:block_climber"
minecraft:block_sensor "minecraft:block_sensor"
minecraft:boostable "minecraft:boostable"
minecraft:boss "minecraft:boss"
minecraft:break_blocks "minecraft:break_blocks"
minecraft:breathable "minecraft:breathable"
minecraft:breedable "minecraft:breedable"
minecraft:bribeable "minecraft:bribeable"
minecraft:buoyant "minecraft:buoyant"
minecraft:burns_in_daylight "minecraft:burns_in_daylight"
minecraft:can_join_raid "minecraft:can_join_raid"
"minecraft:behavior.python_custom:" : opt
minecraft:behavior_python_custom "^minecraft:behavior\.python_custom:[a-zA-Z0-9_]*$"
}
object "events" : opt
{
definition_event "minecraft:entity_born"
definition_event "minecraft:entity_spawned"
definition_event "minecraft:entity_transformed"
definition_event "minecraft:on_prime"
definition_event "<any object property>"
}
}
description
:object- The entity description.
description
identifier
:string- The entity identifier.
is_spawnable
:boolean- Specifies whether the entity can be spawned using the spawn egg.
is_summonable
:boolean- Specifies whether the entity can be spawned using the summon command.
is_experimental
:boolean- Specifies whether the experimental gameplay needs to be turned on in order to spawn the entity.
components
:object
components
minecraft:attack
:minecraft:attackminecraft:attack
组件。
minecraft:spell_effects
:minecraft:spell_effectsminecraft:spell_effects
组件。
minecraft:strength
:minecraft:strengthminecraft:strength
组件。
minecraft:addrider
:minecraft:addriderminecraft:addrider
组件。
minecraft:admire_item
:minecraft:admire_itemminecraft:admire_item
组件。
minecraft:ageable
:minecraft:ageableminecraft:ageable
组件。
minecraft:anger_level
:minecraft:anger_levelminecraft:anger_level
组件。
minecraft:angry
:minecraft:angryminecraft:angry
组件。
minecraft:annotation.break_door
:break_doorminecraft:annotation.break_door
组件。
minecraft:annotation.open_door
:open_doorminecraft:annotation.open_door
组件。
minecraft:area_attack
:minecraft:area_attackminecraft:area_attack
组件。
minecraft:attack_cooldown
:minecraft:attack_cooldownminecraft:attack_cooldown
组件。
minecraft:barter
:minecraft:barterminecraft:barter
组件。
minecraft:block_climber
:minecraft:block_climberminecraft:block_climber
组件。
minecraft:block_sensor
:minecraft:block_sensorminecraft:block_sensor
组件。
minecraft:boostable
:minecraft:boostableminecraft:boostable
组件。
minecraft:boss
:minecraft:bossminecraft:boss
组件。
minecraft:break_blocks
:minecraft:break_blocksminecraft:break_blocks
组件。
minecraft:breathable
:minecraft:breathableminecraft:breathable
组件。
minecraft:breedable
:minecraft:breedableminecraft:breedable
组件。
minecraft:bribeable
:minecraft:bribeableminecraft:bribeable
组件。
minecraft:buoyant
:minecraft:buoyantminecraft:buoyant
组件。
minecraft:burns_in_daylight
:minecraft:burns_in_daylightminecraft:burns_in_daylight
组件。
minecraft:can_join_raid
:minecraft:can_join_raidminecraft:can_join_raid
组件。
minecraft:behavior.python_custom:
^minecraft:behavior\.python_custom:[a-zA-Z0-9_]*$
:minecraft:behavior_python_custom^minecraft:behavior\.python_custom:[a-zA-Z0-9_]*$
组件。
events
:object
events
minecraft:entity_born
:definition_event
definition_event:
{
number "weight" : opt
expression_node_no_version "condition"
array "randomize" : opt
{
object "<any array element>" : opt
{
}
}
array "sequence" : opt
{
object "<any array element>" : opt
{
}
}
definition_trigger_no_condition "trigger"
}
weight
:number
condition
:expression_node_no_version
randomize
:array
randomize
<any array element>
:object
<any array element>
sequence
:array
sequence
<any array element>
:object
<any array element>
trigger
:definition_trigger_no_condition
event
:string
target
:string
minecraft:entity_spawned
:definition_event
minecraft:entity_transformed
:definition_event
minecraft:on_prime
:definition_event
<any object property>
:definition_event