EntityAddRiderComponent Class

Caution

This class is still in pre-release. Its signature may change or it may be removed in future releases.

Extends

When added, this component makes the entity spawn with a rider of the specified entityType.

Properties

entityType

read-only entityType: string;

The type of entity that is added as a rider for this entity when spawned under certain conditions.

Type: string

Warning

This property can throw errors when used.

spawnEvent

read-only spawnEvent: string;

Optional spawn event to trigger on the rider when that rider is spawned for this entity.

Type: string

Warning

This property can throw errors when used.

Constants

componentId

static read-only componentId = "minecraft:addrider";

Type: string