The EntityAddRiderComponent class in @minecraft/server.
Class in @minecraft/server
Extends EntityComponent
import { EntityAddRiderComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”entityType
Section titled “entityType”read-only
readonly entityType: string;spawnEvent
Section titled “spawnEvent”read-only
readonly spawnEvent: string;componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:addrider';