Mojira Archive
MC-271266

Attached lead instantly breaks for players with a higher entity interaction range

When a player with a high entity interaction range tries to attach a lead to an entity far away from them, the lead instantly breaks and drops as an item, making the action entirely redundant.

Steps to Reproduce:

  1. Modify the player's entity_interaction_range attribute
    /attribute @p minecraft:player.block_interaction_range base set 100
    
  2. Try and attach a lead to a far away entity (~20 or more blocks away)

Observed Behavior:

The lead attaches and then instantly breaks, making the action redundant.

Expected Result:

The lead would either not attach in the first place (not a great solution, as the player expects an action to occur), or more likely would attach and then pull the entity towards the player first before later snapping when the entity falls out of range.

Screenshots/Videos:

PullPiggyLead.mp4

Notes:

Related to MC-268945 MC-267380 MC-267921 MC-267420 MC-267383

Works As Intended

[Mod] Jiingy

2024-04-28, 10:56 PM

2024-04-30, 07:18 AM

2024-04-30, 07:18 AM

0

1

Confirmed

Commands

attribute, entity_interaction_range, lead

23w51a, 1.20.5, 1.20.6 Release Candidate 1

-