mojira.dev
MC-14826

Leads in unloaded chunks break, become invisible or connect to an invisible target far away

Since I was given the ticket to this issue, I decided to make some changes to make this report a bit more informative. For full information, see MC-96024. I'm just going to sum it up shortly in this report.

The bug

If you connect any animals to a lead, then place the lead on a fence, then go far away from them (Until they become unloaded), then go back, there is going to be most of the times one of these issues occurring:

  1. The lead will simply break and drop as an item on the ground.

  2. The lead will become invisible, sometimes unloading and reloading will fix this issue, sometimes not. If this occurrence happens, the client will think the animal isn't actually leashed, and you can right click it to leash it, however due to this being only client side, you cannot place the lead on a fence.

  3. The leads will glitch out and connect to an invisible target far away (See pictures). Following the lead for a bit of time will fix this, or, in some cases, make occurrence #1 happen.

I have yet to find a way to, using command blocks, leash the animals back. I'm not exactly sure how the leashing part works technically. It seems like there are two tags for every mob that are related to leads, but all they do is place a lead on the specified location, not connect the animal to it.

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

MC-14304 Leashes on fenceposts are invisible when re-logging Resolved MC-14765 Horses brake leads Resolved MC-15585 Lead disconnecting Resolved MC-15628 Randomly Disappearing Leads Resolved MC-15901 Leads become Invisible when Reloading world Resolved

Attachments

Comments 146

Cannot reproduce.

Unable to reproduce.

I saw this in one of VintageBeef's recent episodes as well.

It still happens. just look at bdoubleOs latest episode in 13w19a http://www.youtube.com/watch?v=h-0J61KbLns

SullyTheUnusual

This is happening on my server when it is rebooted, running 13w19a.

136 more comments

Also in 1.14.2, and 1.14.3 Pre-release 2.

I believe I experienced this issue in 1.14.4. I have a llama connected to a fence by lead. I noticed that the lead had turned invisible so I replaced it. Right-clicking the lead knot on the fence post did not remove the lead but left-clicking the knot removed the lead and dropped as the lead item as normal. While the lead was invisible, it seemed that the llama was still connected to the fence post. However, I was able to connect another lead to the llama. Despite this, the llama would not move when I moved farther away and the lead stretched as I moved. This weirdness NEEDS to be fixed.

Confirmed in 19w45b.

Amirullah Izzan

still happening in 1.14 xD

@[Zrov] This is fixed in 1.15. Fixes are never back-ported to previous versions.

Riley Winkler

Spake Miner

slicedlime

Confirmed

Normal

Entities

fence, horse, lead, leash_knot

Snapshot 13w17a, Snapshot 13w19a, Snapshot 13w21b, Snapshot 13w22a, Snapshot 13w23a, ..., Minecraft 19w13b, Minecraft 1.14.1, 1.14.4, 19w41a, 19w45b

Minecraft 15w31b, 1.15 Pre-release 1

Retrieved