Private
constructorReadonly
canReturns true if another entity can 'steal' the leashed entity by attaching their own leash to it.
This property can't be read in early-execution mode.
Readonly
entityThis property can't be read in early-execution mode.
Readonly
hardThis property can't be read in early-execution mode.
Readonly
isThis property can't be read in early-execution mode.
Readonly
isReturns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
This property can't be read in early-execution mode.
Optional
Readonly
leashThis property can't be read in early-execution mode.
Optional
Readonly
leashThis property can't be read in early-execution mode.
Readonly
maxThis property can't be read in early-execution mode.
Readonly
softDistance in blocks at which the 'spring' effect starts acting to keep this entity close to the entity that leashed it.
This property can't be read in early-execution mode.
Readonly
typeThis property can't be read in early-execution mode.
Static
Readonly
componentThe entity to leash this entity to.
This function can't be called in read-only mode.
Throws if the entity to leash to is over the max distance, and if the player is dead or in spectator mode.
This function can't be called in early-execution mode.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
Allows the entity to be leashed. Defines the conditions and events for when an entity is leashed.
Example: entityLeashable.js