Class EntityTameableComponentBeta

Defines the rules for a mob to be tamed by the player.

Hierarchy

Constructors

Properties

probability: number

The chance of taming the entity with each item use between 0.0 and 1.0, where 1.0 is 100%

Throws

This property can throw when used.

tameEvent: Trigger

Event to run when this entity becomes tamed.

Throws

This property can throw when used.

typeId: string
componentId: "minecraft:tameable" = 'minecraft:tameable'

Identifier of this component. Should always be minecraft:tameable.

Methods

  • Returns string[]

  • Returns boolean

    Returns true if the entity was tamed.

    Remarks

    Tames this entity.

    Throws

    This function can throw errors.