When added, this component makes the entity spawn with a
rider of the specified entityType.
添加后,该组件使实体生成时带有指定实体类型的骑乘者。
实验性Ageable
Ageable:"minecraft:ageable"
备注
Adds a timer for the entity to grow up. It can be
accelerated by giving the entity the items it likes as
defined by feedItems.
为实体添加一个成长计时器。可以通过给予实体其喜欢的物品(由 feedItems 定义)来加速成长。
实验性Breathable
Breathable:"minecraft:breathable"
备注
Defines what blocks this entity can breathe in and gives
them the ability to suffocate.
定义该实体可以在其中呼吸的方块,并赋予其窒息能力。
实验性CanClimb
CanClimb:"minecraft:can_climb"
备注
When added, this component signifies that the entity can
climb up ladders.
添加后,该组件表示实体可以爬上梯子。
实验性CanFly
CanFly:"minecraft:can_fly"
备注
When added, this component signifies that the entity can
fly, and the pathfinder won't be restricted to paths where a
solid block is required underneath it.
添加后,该组件表示实体可以飞行,并且路径查找不再受限于需要下方有实体方块的路径。
实验性CanPowerJump
CanPowerJump:"minecraft:can_power_jump"
备注
When added, this component signifies that the entity can
power jump like the horse does within Minecraft.
添加后,该组件表示实体可以像 Minecraft 中的马一样进行强力跳跃。
实验性Color
Color:"minecraft:color"
备注
Defines the entity's color. Only works on certain entities
that have predefined color values (e.g., sheep, llama,
shulker).
定义实体的颜色。仅适用于某些具有预定义颜色值的实体(例如,绵羊、羊驼、潜影贝)。
实验性Color2
Color2:"minecraft:color2"
备注
Defines the entity's secondary color. Only works on certain
entities that have predefined secondary color values (e.g.,
tropical fish).
定义实体的次要颜色。仅适用于某些具有预定义次要颜色值的实体(例如,热带鱼)。
实验性CursorInventory
CursorInventory:"minecraft:cursor_inventory"
实验性Equippable
Equippable:"minecraft:equippable"
备注
Provides access to a mob's equipment slots. This component
exists for all mob entities.
提供访问生物装备槽的接口。该组件存在于所有生物实体中。
实验性FireImmune
FireImmune:"minecraft:fire_immune"
备注
When added, this component signifies that this entity
doesn't take damage from fire.
添加后,该组件表示实体不会受到火焰伤害。
实验性FloatsInLiquid
FloatsInLiquid:"minecraft:floats_in_liquid"
备注
When added, this component signifies that this entity can
float in liquid blocks.
添加后,该组件表示实体可以漂浮在液体方块中。
实验性FlyingSpeed
FlyingSpeed:"minecraft:flying_speed"
备注
Represents the flying speed of an entity.
表示实体的飞行速度。
实验性FrictionModifier
FrictionModifier:"minecraft:friction_modifier"
备注
Defines how much friction affects this entity.
定义摩擦对实体的影响程度。
实验性GroundOffset
GroundOffset:"minecraft:ground_offset"
备注
Sets the offset from the ground that the entity is actually
at.
设置实体实际位置距离地面的偏移量。
实验性Healable
Healable:"minecraft:healable"
备注
Defines the interactions with this entity for healing it.
定义与实体的交互以进行治疗。
实验性Health
Health:"minecraft:health"
备注
Defines the health properties of an entity.
定义实体的生命属性。
实验性Inventory
Inventory:"minecraft:inventory"
备注
Defines this entity's inventory properties.
定义实体的物品栏属性。
实验性IsBaby
IsBaby:"minecraft:is_baby"
备注
When added, this component signifies that this entity is a
baby.
添加后,该组件表示实体是宝宝。
实验性IsCharged
IsCharged:"minecraft:is_charged"
备注
When added, this component signifies that this entity is
charged.
添加后,该组件表示实体处于充能状态。
实验性IsChested
IsChested:"minecraft:is_chested"
备注
When added, this component signifies that this entity is
currently carrying a chest.
添加后,该组件表示实体当前携带一个箱子。
实验性IsDyeable
IsDyeable:"minecraft:is_dyeable"
备注
When added, this component signifies that dyes can be used
on this entity to change its color.
When added, this component signifies that this entity can
hide from hostile mobs while invisible.
添加后,该组件表示实体在隐身时可以躲避敌对生物。
实验性IsIgnited
IsIgnited:"minecraft:is_ignited"
备注
When added, this component signifies that this entity this
currently on fire.
添加后,该组件表示实体当前着火。
实验性IsIllagerCaptain
IsIllagerCaptain:"minecraft:is_illager_captain"
备注
When added, this component signifies that this entity is an
illager captain.
添加后,该组件表示实体是一个灾厄村民队长。
实验性IsSaddled
IsSaddled:"minecraft:is_saddled"
备注
When added, this component signifies that this entity is
currently saddled.
添加后,该组件表示实体上装有鞍。
实验性IsShaking
IsShaking:"minecraft:is_shaking"
备注
When added, this component signifies that this entity is
currently shaking.
添加后,该组件表示实体当前正在颤抖。
实验性IsSheared
IsSheared:"minecraft:is_sheared"
备注
When added, this component signifies that this entity is
currently sheared.
添加后,该组件表示实体当前被剪过毛。
实验性IsStackable
IsStackable:"minecraft:is_stackable"
备注
When added, this component signifies that this entity can be
stacked.
添加后,该组件表示实体可以堆叠。
实验性IsStunned
IsStunned:"minecraft:is_stunned"
备注
When added, this component signifies that this entity is
currently stunned.
添加后,该组件表示实体当前被击晕。
实验性IsTamed
IsTamed:"minecraft:is_tamed"
备注
When added, this component signifies that this entity is
currently tamed.
添加后,该组件表示实体当前被驯服。
实验性Item
Item:"minecraft:item"
备注
If added onto the entity, this indicates that the entity
represents a free-floating item in the world. Lets you
retrieve the actual item stack contents via the itemStack
property.
When added, this movement control allows the mob to swim in
water and walk on land.
添加后,该移动控件允许生物在水中游泳并在陆地上行走。
实验性MovementBasic
MovementBasic:"minecraft:movement.basic"
备注
When added, this component allows the movement of an entity.
添加后,该组件允许实体移动。
实验性MovementFly
MovementFly:"minecraft:movement.fly"
备注
When added, this move control causes the mob to fly.
添加后,该移动控件使生物飞行。
实验性MovementGeneric
MovementGeneric:"minecraft:movement.generic"
备注
When added, this move control allows a mob to fly, swim,
climb, etc.
添加后,该移动控件允许生物飞行、游泳、爬行等。
实验性MovementGlide
MovementGlide:"minecraft:movement.glide"
备注
When added, this movement control allows the mob to glide.
添加后,该移动控件允许生物滑翔。
实验性MovementHover
MovementHover:"minecraft:movement.hover"
备注
When added, this move control causes the mob to hover.
添加后,该移动控件使生物悬停。
实验性MovementJump
MovementJump:"minecraft:movement.jump"
备注
Move control that causes the mob to jump as it moves with a
specified delay between jumps.
移动控件使生物在移动时跳跃,跳跃之间有指定的延迟。
实验性MovementSkip
MovementSkip:"minecraft:movement.skip"
备注
When added, this move control causes the mob to hop as it
moves.
添加后,该移动控件使生物在移动时跳跃。
实验性MovementSway
MovementSway:"minecraft:movement.sway"
备注
When added, this move control causes the mob to sway side to
side giving the impression it is swimming.
添加后,该移动控件使生物左右摇摆,给人以游泳的印象。
实验性NavigationClimb
NavigationClimb:"minecraft:navigation.climb"
备注
Allows this entity to generate paths that include vertical
walls (for example, like Minecraft spiders do.)
允许该实体生成包括垂直墙壁的路径(例如,像 Minecraft 蜘蛛一样)。
实验性NavigationFloat
NavigationFloat:"minecraft:navigation.float"
备注
Allows this entity to generate paths by flying around the
air like the regular Ghast.
允许该实体通过在空中飞行生成路径,类似于普通的幽灵。
实验性NavigationFly
NavigationFly:"minecraft:navigation.fly"
备注
Allows this entity to generate paths in the air (for
example, like Minecraft parrots do.)
允许该实体在空中生成路径(例如,像 Minecraft 鹦鹉一样)。
实验性NavigationGeneric
NavigationGeneric:"minecraft:navigation.generic"
备注
Allows this entity to generate paths by walking, swimming,
flying and/or climbing around and jumping up and down a
block.
允许该实体通过步行、游泳、飞行和/或攀爬以及上下跳跃生成路径。
实验性NavigationHover
NavigationHover:"minecraft:navigation.hover"
备注
Allows this entity to generate paths in the air (for
example, like the Minecraft Bees do.) Keeps them from
falling out of the skies and doing predictive movement.
Allows this entity to generate paths by walking around and
jumping up and down a block like regular mobs.
允许该实体通过四处走动和上下跳跃生成路径,类似于普通生物。
实验性Npc
Npc:"minecraft:npc"
备注
Adds NPC capabilities to an entity such as custom skin,
name, and dialogue interactions.
为实体添加 NPC 功能,如自定义皮肤、名称和对话交互。
实验性OnFire
OnFire:"minecraft:onfire"
备注
When present on an entity, this entity is on fire.
当实体存在该组件时,表示实体着火。
实验性Projectile
Projectile:"minecraft:projectile"
备注
The projectile component controls the properties of a
projectile entity and allows it to be shot in a given
direction. This component is present when the entity has the
minecraft:projectile component.
The types of entity components that are accessible via function Entity.getComponent.
通过函数 Entity.getComponent 可以访问的实体组件类型。