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.
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.
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.
LavaMovement
LavaMovement:"minecraft:lava_movement"
备注
Defines the base movement speed in lava of this entity.
Leashable
Leashable:"minecraft:leashable"
备注
Allows this entity to be leashed and defines the conditions
and events for this entity when is leashed.
MarkVariant
MarkVariant:"minecraft:mark_variant"
备注
When added, this component signifies that this entity
contains an additional variant value. Can be used to further
differentiate variants.
Movement
Movement:"minecraft:movement"
备注
Defines the general movement speed of this entity.
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.)
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.)
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.
NavigationWalk
NavigationWalk:"minecraft:navigation.walk"
备注
Allows this entity to generate paths by walking around and
jumping up and down a block like regular mobs.
betaNpc
Npc:"minecraft:npc"
备注
Adds NPC capabilities to an entity such as custom skin,
name, and dialogue interactions.
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.
PushThrough
PushThrough:"minecraft:push_through"
备注
Sets the distance through which the entity can push through.
Rideable
Rideable:"minecraft:rideable"
备注
When added, this component adds the capability that an
entity can be ridden by another entity.
Riding
Riding:"minecraft:riding"
备注
This component is added to any entity when it is riding
another entity.
Scale
Scale:"minecraft:scale"
备注
Sets the entity's visual size.
SkinId
SkinId:"minecraft:skin_id"
备注
Skin Id value. Can be used to differentiate skins, such as
base skins for villagers.
Strength
Strength:"minecraft:strength"
备注
Defines the entity's strength to carry items.
Tameable
Tameable:"minecraft:tameable"
备注
Defines the rules for an entity to be tamed by the player.
TameMount
TameMount:"minecraft:tamemount"
备注
Contains options for taming a rideable entity based on the
entity that mounts it.
TypeFamily
TypeFamily:"minecraft:type_family"
备注
Used to determine the type families the entity belongs to.
The types of entity components that are accessible via function Entity.getComponent.