PrivateconstructorReadonlycanReturns 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.
ReadonlyentityThis property can't be read in early-execution mode.
ReadonlyhardThis property can't be read in early-execution mode.
ReadonlyisThis property can't be read in early-execution mode.
ReadonlyisReturns 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 ReadonlyleashThis property can't be read in early-execution mode.
Optional ReadonlyleashThis property can't be read in early-execution mode.
ReadonlymaxThis property can't be read in early-execution mode.
ReadonlysoftDistance 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.
ReadonlytypeThis property can't be read in early-execution mode.
Static ReadonlycomponentThe 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