The EntityIsTamedComponent class in @minecraft/server.
Class in @minecraft/server
Extends EntityComponent
import { EntityIsTamedComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”tamedToPlayer
Section titled “tamedToPlayer”read-only optional
readonly tamedToPlayer?: Player;Types
tamedToPlayerId
Section titled “tamedToPlayerId”read-only optional
readonly tamedToPlayerId?: string;componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:is_tamed';