mojira.dev
MC-269701

Components of leads are not saved when attached and removed

When attaching a lead to an entity, saved components are lost when detaching the lead.

For instance, this command gives you an edible lead:

/give @s minecraft:lead[minecraft:consumable={nutrition:1,saturation:1,can_always_eat:1}]

Right clicking a pig to attach it and then clicking again to detach it returns a lead with no food component.

Linked issues

Attachments

Comments 0

No comments.

mattp12

(Unassigned)

Confirmed

Platform

Normal

Commands

24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 2, , 1.21.11, 26.1 Snapshot 6, 26.1, 26.2, 26.3 Snapshot 6

Retrieved