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.

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, ..., 25w03a, 25w04a, 25w05a, 25w06a, 1.21.8 Release Candidate 1

Retrieved