Summary
When an entity other than LivingEntity
or leash knot (such as boats, minecarts, end crystals) uses a lead, the game crashes upon saving. (Relates to MC-272625)
Steps to Reproduce
Summon a Pig.
Summon an End Crystal.
Copy the UUID of the End Crystal with
/data get entity @n[type=end_crystal] UUID
.Run
/data merge entity @n[type=pig] {leash:{UUID:(insert UUID of end crystal)
.The end crystal now leashes the pig.
Pause the game.
Can confirm.