Steps to Reproduce:
Spawn a pig
/summon minecraft:pigStrike it with lightning
/summon lightning_boltCheck the nbt data of the zombified piglin
/data get entity @e[type=minecraft:zombified_piglin, sort=nearest, limit=1]Spawn a zombified piglin
/summon minecraft:zombified_piglinCheck the nbt data of the zombified piglin
/data get entity @e[type=minecraft:zombified_piglin, sort=nearest, limit=1]Compare the nbt datas.
Expected Result:
Pig converts to a zombified piglin with the same attributes and chances as naturally spawned zombified piglins (can be left-handed, can hold enchanted swords, can summon reinforcements, has knockback resistance, follow range, random spawn bonuses, etc.).
Actual Result:
The zombified piglin spawned from lightning always lacks:
Sword enchantments
Reinforcement summoning
Knockback resistance
Follow range bonuses
Random spawn bonuses
Cannot be a leader zombified piglin
Removed the bit about left-handed chance as it was false. It is intended that attributes are not transferred- see MC-298482