@minecraft/server / EntityComponentTypes
Enumeration: EntityComponentTypes ​
Defined in: @minecraft/server/index.d.ts:720
The types of entity components that are accessible via function Entity.getComponent.
Enumeration Members ​
AddRider ​
AddRider:
"minecraft:addrider"
Defined in: @minecraft/server/index.d.ts:727
Remarks ​
When added, this component makes the entity spawn with a rider of the specified entityType.
Ageable ​
Ageable:
"minecraft:ageable"
Defined in: @minecraft/server/index.d.ts:735
Remarks ​
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"
Defined in: @minecraft/server/index.d.ts:742
Remarks ​
Defines what blocks this entity can breathe in and gives them the ability to suffocate.
CanClimb ​
CanClimb:
"minecraft:can_climb"
Defined in: @minecraft/server/index.d.ts:749
Remarks ​
When added, this component signifies that the entity can climb up ladders.
CanFly ​
CanFly:
"minecraft:can_fly"
Defined in: @minecraft/server/index.d.ts:757
Remarks ​
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"
Defined in: @minecraft/server/index.d.ts:764
Remarks ​
When added, this component signifies that the entity can power jump like the horse does within Minecraft.
Color ​
Color:
"minecraft:color"
Defined in: @minecraft/server/index.d.ts:772
Remarks ​
Defines the entity's color. Only works on certain entities that have predefined color values (e.g., sheep, llama, shulker).
Color2 ​
Color2:
"minecraft:color2"
Defined in: @minecraft/server/index.d.ts:780
Remarks ​
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"
Defined in: @minecraft/server/index.d.ts:781
EnderInventory ​
EnderInventory:
"minecraft:ender_inventory"
Defined in: @minecraft/server/index.d.ts:787
Remarks ​
Represents this entity's ender inventory properties.
Equippable ​
Equippable:
"minecraft:equippable"
Defined in: @minecraft/server/index.d.ts:794
Remarks ​
Provides access to a mob's equipment slots. This component exists for all mob entities.
Exhaustion ​
Exhaustion:
"minecraft:player.exhaustion"
Defined in: @minecraft/server/index.d.ts:1081
Remarks ​
Use this component to read the exhaustion of a player. This is only available on players.
FireImmune ​
FireImmune:
"minecraft:fire_immune"
Defined in: @minecraft/server/index.d.ts:801
Remarks ​
When added, this component signifies that this entity doesn't take damage from fire.
FloatsInLiquid ​
FloatsInLiquid:
"minecraft:floats_in_liquid"
Defined in: @minecraft/server/index.d.ts:808
Remarks ​
When added, this component signifies that this entity can float in liquid blocks.
FlyingSpeed ​
FlyingSpeed:
"minecraft:flying_speed"
Defined in: @minecraft/server/index.d.ts:814
Remarks ​
Represents the flying speed of an entity.
FrictionModifier ​
FrictionModifier:
"minecraft:friction_modifier"
Defined in: @minecraft/server/index.d.ts:820
Remarks ​
Defines how much friction affects this entity.
Healable ​
Healable:
"minecraft:healable"
Defined in: @minecraft/server/index.d.ts:826
Remarks ​
Defines the interactions with this entity for healing it.
Health ​
Health:
"minecraft:health"
Defined in: @minecraft/server/index.d.ts:832
Remarks ​
Defines the health properties of an entity.
Hunger ​
Hunger:
"minecraft:player.hunger"
Defined in: @minecraft/server/index.d.ts:1088
Remarks ​
Use this component to read the hunger of a player. This is only available on players.
Inventory ​
Inventory:
"minecraft:inventory"
Defined in: @minecraft/server/index.d.ts:838
Remarks ​
Defines this entity's inventory properties.
IsBaby ​
IsBaby:
"minecraft:is_baby"
Defined in: @minecraft/server/index.d.ts:845
Remarks ​
When added, this component signifies that this entity is a baby.
IsCharged ​
IsCharged:
"minecraft:is_charged"
Defined in: @minecraft/server/index.d.ts:852
Remarks ​
When added, this component signifies that this entity is charged.
IsChested ​
IsChested:
"minecraft:is_chested"
Defined in: @minecraft/server/index.d.ts:859
Remarks ​
When added, this component signifies that this entity is currently carrying a chest.
IsDyeable ​
IsDyeable:
"minecraft:is_dyeable"
Defined in: @minecraft/server/index.d.ts:866
Remarks ​
When added, this component signifies that dyes can be used on this entity to change its color.
IsHiddenWhenInvisible ​
IsHiddenWhenInvisible:
"minecraft:is_hidden_when_invisible"
Defined in: @minecraft/server/index.d.ts:873
Remarks ​
When added, this component signifies that this entity can hide from hostile mobs while invisible.
IsIgnited ​
IsIgnited:
"minecraft:is_ignited"
Defined in: @minecraft/server/index.d.ts:880
Remarks ​
When added, this component signifies that this entity this currently on fire.
IsIllagerCaptain ​
IsIllagerCaptain:
"minecraft:is_illager_captain"
Defined in: @minecraft/server/index.d.ts:887
Remarks ​
When added, this component signifies that this entity is an illager captain.
IsSaddled ​
IsSaddled:
"minecraft:is_saddled"
Defined in: @minecraft/server/index.d.ts:894
Remarks ​
When added, this component signifies that this entity is currently saddled.
IsShaking ​
IsShaking:
"minecraft:is_shaking"
Defined in: @minecraft/server/index.d.ts:901
Remarks ​
When added, this component signifies that this entity is currently shaking.
IsSheared ​
IsSheared:
"minecraft:is_sheared"
Defined in: @minecraft/server/index.d.ts:908
Remarks ​
When added, this component signifies that this entity is currently sheared.
IsStackable ​
IsStackable:
"minecraft:is_stackable"
Defined in: @minecraft/server/index.d.ts:915
Remarks ​
When added, this component signifies that this entity can be stacked.
IsStunned ​
IsStunned:
"minecraft:is_stunned"
Defined in: @minecraft/server/index.d.ts:922
Remarks ​
When added, this component signifies that this entity is currently stunned.
IsTamed ​
IsTamed:
"minecraft:is_tamed"
Defined in: @minecraft/server/index.d.ts:929
Remarks ​
When added, this component signifies that this entity is currently tamed.
Item ​
Item:
"minecraft:item"
Defined in: @minecraft/server/index.d.ts:938
Remarks ​
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"
Defined in: @minecraft/server/index.d.ts:944
Remarks ​
Defines the base movement speed in lava of this entity.
Leashable ​
Leashable:
"minecraft:leashable"
Defined in: @minecraft/server/index.d.ts:951
Remarks ​
Allows this entity to be leashed and defines the conditions and events for this entity when is leashed.
MarkVariant ​
MarkVariant:
"minecraft:mark_variant"
Defined in: @minecraft/server/index.d.ts:959
Remarks ​
When added, this component signifies that this entity contains an additional variant value. Can be used to further differentiate variants.
Movement ​
Movement:
"minecraft:movement"
Defined in: @minecraft/server/index.d.ts:965
Remarks ​
Defines the general movement speed of this entity.
MovementAmphibious ​
MovementAmphibious:
"minecraft:movement.amphibious"
Defined in: @minecraft/server/index.d.ts:972
Remarks ​
When added, this movement control allows the mob to swim in water and walk on land.
MovementBasic ​
MovementBasic:
"minecraft:movement.basic"
Defined in: @minecraft/server/index.d.ts:978
Remarks ​
When added, this component allows the movement of an entity.
MovementFly ​
MovementFly:
"minecraft:movement.fly"
Defined in: @minecraft/server/index.d.ts:984
Remarks ​
When added, this move control causes the mob to fly.
MovementGeneric ​
MovementGeneric:
"minecraft:movement.generic"
Defined in: @minecraft/server/index.d.ts:991
Remarks ​
When added, this move control allows a mob to fly, swim, climb, etc.
MovementGlide ​
MovementGlide:
"minecraft:movement.glide"
Defined in: @minecraft/server/index.d.ts:997
Remarks ​
When added, this movement control allows the mob to glide.
MovementHover ​
MovementHover:
"minecraft:movement.hover"
Defined in: @minecraft/server/index.d.ts:1003
Remarks ​
When added, this move control causes the mob to hover.
MovementJump ​
MovementJump:
"minecraft:movement.jump"
Defined in: @minecraft/server/index.d.ts:1010
Remarks ​
Move control that causes the mob to jump as it moves with a specified delay between jumps.
MovementSkip ​
MovementSkip:
"minecraft:movement.skip"
Defined in: @minecraft/server/index.d.ts:1017
Remarks ​
When added, this move control causes the mob to hop as it moves.
MovementSway ​
MovementSway:
"minecraft:movement.sway"
Defined in: @minecraft/server/index.d.ts:1024
Remarks ​
When added, this move control causes the mob to sway side to side giving the impression it is swimming.
NavigationClimb ​
NavigationClimb:
"minecraft:navigation.climb"
Defined in: @minecraft/server/index.d.ts:1031
Remarks ​
Allows this entity to generate paths that include vertical walls (for example, like Minecraft spiders do.)
NavigationFloat ​
NavigationFloat:
"minecraft:navigation.float"
Defined in: @minecraft/server/index.d.ts:1038
Remarks ​
Allows this entity to generate paths by flying around the air like the regular Ghast.
NavigationFly ​
NavigationFly:
"minecraft:navigation.fly"
Defined in: @minecraft/server/index.d.ts:1045
Remarks ​
Allows this entity to generate paths in the air (for example, like Minecraft parrots do.)
NavigationGeneric ​
NavigationGeneric:
"minecraft:navigation.generic"
Defined in: @minecraft/server/index.d.ts:1053
Remarks ​
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"
Defined in: @minecraft/server/index.d.ts:1061
Remarks ​
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"
Defined in: @minecraft/server/index.d.ts:1068
Remarks ​
Allows this entity to generate paths by walking around and jumping up and down a block like regular mobs.
OnFire ​
OnFire:
"minecraft:onfire"
Defined in: @minecraft/server/index.d.ts:1074
Remarks ​
When present on an entity, this entity is on fire.
Projectile ​
Projectile:
"minecraft:projectile"
Defined in: @minecraft/server/index.d.ts:1104
Remarks ​
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"
Defined in: @minecraft/server/index.d.ts:1110
Remarks ​
Sets the distance through which the entity can push through.
Rideable ​
Rideable:
"minecraft:rideable"
Defined in: @minecraft/server/index.d.ts:1117
Remarks ​
When added, this component adds the capability that an entity can be ridden by another entity.
Riding ​
Riding:
"minecraft:riding"
Defined in: @minecraft/server/index.d.ts:1124
Remarks ​
This component is added to any entity when it is riding another entity.
Saturation ​
Saturation:
"minecraft:player.saturation"
Defined in: @minecraft/server/index.d.ts:1095
Remarks ​
Use this component to read the saturation of a player. This is only available on players.
Scale ​
Scale:
"minecraft:scale"
Defined in: @minecraft/server/index.d.ts:1130
Remarks ​
Sets the entity's visual size.
SkinId ​
SkinId:
"minecraft:skin_id"
Defined in: @minecraft/server/index.d.ts:1137
Remarks ​
Skin Id value. Can be used to differentiate skins, such as base skins for villagers.
Strength ​
Strength:
"minecraft:strength"
Defined in: @minecraft/server/index.d.ts:1143
Remarks ​
Defines the entity's strength to carry items.
Tameable ​
Tameable:
"minecraft:tameable"
Defined in: @minecraft/server/index.d.ts:1149
Remarks ​
Defines the rules for an entity to be tamed by the player.
TameMount ​
TameMount:
"minecraft:tamemount"
Defined in: @minecraft/server/index.d.ts:1156
Remarks ​
Contains options for taming a rideable entity based on the entity that mounts it.
TypeFamily ​
TypeFamily:
"minecraft:type_family"
Defined in: @minecraft/server/index.d.ts:1162
Remarks ​
Used to determine the type families the entity belongs to.
UnderwaterMovement ​
UnderwaterMovement:
"minecraft:underwater_movement"
Defined in: @minecraft/server/index.d.ts:1169
Remarks ​
Defines the general movement speed underwater of this entity.
Variant ​
Variant:
"minecraft:variant"
Defined in: @minecraft/server/index.d.ts:1176
Remarks ​
Used to differentiate the component group of a variant of an entity from others. (e.g. ocelot, villager).
WantsJockey ​
WantsJockey:
"minecraft:wants_jockey"
Defined in: @minecraft/server/index.d.ts:1183
Remarks ​
When added, this component signifies that this entity wants to become a jockey.