The EntityTameableComponent class in @minecraft/server.
Class in @minecraft/server
Extends EntityComponent
import { EntityTameableComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”getTameItems
Section titled “getTameItems”read-only
readonly getTameItems: ItemStack[];Types
isTamed
Section titled “isTamed”read-only
readonly isTamed: boolean;probability
Section titled “probability”read-only
readonly probability: number;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:tameable';Methods
Section titled “Methods”tame(player: Player): boolean;Parameters
playerPlayer
Returns
booleanTypes