mojira.dev
MC-230317

Lead disappears when mooshroom cow is sheared

If mooshroom that is attached to a fence via a lead is sheared the lead dissapears

Steps to reproduce the bug:

  • Use lead to attach the mooshroom cow to a fence

  • Shear the mooshroom cow

Result:

  • Lead visualy appears to be still attached to the fence

  • Cow is not attached to the lead and can move freely

  • When clicked the lead on the fence no item is dropped

Expected Result
The lead would remain and not dissapear

Attachments

Comments 6

Can confirm in 1.18.1.

I would argue this may actually duplicate MC-88967 rather than relating to it as @unknown stated previously, and should be forwarded over to that issue. An entity being leashed is stored as NBT, so when the entity is converted to a new entity (and gets a new UUID), the leashed NBT is lost.

As shown when getting the data of the mooshroom:

[media]

When trying to get the data of the new entity (cow):
Notice the 'No entity was found' as the UUID changed, and the lack of the 'Leashed' tag

[media]

Otherwise; if there is underlying behavior I am unaware of, at least mark as related.

Changeing link type to "Caused by" would suffice too.

Another argument for keeping this open: MC-196736 is kept separate too.

Had not seen that issue before commenting, thanks for finding that.

Lukáš Černý

coschevi

Confirmed

(Unassigned)

1.17, 1.17.1, 1.18.1, 1.20.2

24w36a

Retrieved