Skip to content

Attach Lead

Attaches to a compatible Target holder or fence within 10 blocks. Omission detaches; detaching an already-unleashed mob succeeds without change.

Call Method → Target Object: Mob or a compatible subtype → Choose Operation → Mob Properties. Requires Dev access to configure, then a successful compile to activate.

Input Type Role Requirement Default / constraint
Holder (omit to detach) Target Value Optional Omitted; see behavior below
Fence Location Location Value Optional Omitted; see behavior below

Applies its behavior to the configured receiver; it does not create a separate value-result destination.

Block: Call Method
Operation: Attach Lead
Target Object: Mob target in this plot
Holder (omit to detach): (omit for this example)
Fence Location: (omit for this example)

Use this as an editor configuration: declare any Variables/collections first and choose real locations/eligible targets for your plot. It is not pasteable source code.

The receiver must satisfy the declared native capability and remain eligible for the running plot. Player actions require an appropriate Play participant; a Build/Dev player is not automatically eligible.

Runtime validation: Choose a holder or a fence, not both.

Runtime validation: Leash knot requires a fence.

Runtime validation: Lead attachment range is 10 blocks.

Runtime validation: This mob cannot attach to that lead holder.

Reference identifier: entity.lead.