I was walking around in a plains biome during a thunder storm when a pig got struck by lightning and turned into a pigman with a sword. Where did the sword come from?
What I expected to happen was...:
When the pig got hit by the lightning it should turn into a pigman without sword.
What actually happened was...:
The pigman that spawned had a sword.
Steps to Reproduce:
Spawn a pig and stand next to it
/summon minecraft:lightning_bolt
See a pigman with sword
Besides the logical aspect mentioned above (where should the sword come from?) it also isn't logical seen from a game developer perspective.
Pigman which spawned due to lightning are rare, right? But if they have a sword there is no difference to the ones that come out of the nether.
If they spawn without a sword it's something special to have a pigman which is not holding a sword because you can see that it was a pig which got struck by lightning.
On the screenshot you see pigs without swords and a pigman with sword spawned form a pig.
Related issues
is duplicated by
Attachments
Comments

Opposite of MC-10257.
@Tails
I still think it would make more sense when the pigman spawn without a sword (Reasons in the post). I don't think that EvilSeph thought about these reasons when he "fixed" it.
I would be really thankfull if you could the game developers decide this by reopening this post.
I explicitly marked that issue as a potential intended candidate, EvilSeph saw it and decided to "fix" it regardless.
@Tails Well then. Thanks for responding.
Besides we already asked Dinnerbone (as stated by [Mod]Mustek on Feb. 26th), he also confirmed it to be a bug.

So now that EvilSeph is no longer with Mojang, and Dinnerbone confirmed that this is a bug, that report should be re-opened.

No, Dinnerbone confirmed that MC-10257, the opposite of this issue, was a bug, which they fixed. This is probably an issue of gameplay over logic.
@unknown please stop updating this issue, it is resolved and intended
Not working as intended. Should be fixed, it is a bug.
@unknown 2 comments higher:
No, Dinnerbone confirmed that MC-10257, the opposite of this issue, was a bug, which they fixed. This is probably an issue of gameplay over logic.
In other words: this is intended
@unknown you can stop updating this ticket, it's intended behaviour
@unknown I know that the issues is resolved, but it's kind of an inside joke that I keep updating this issue 🙂
I thought noone would mind my updating of it. If it's annoying I can of course stop.
Well, there's no need for it, and it only spams the activity feed more. 🙂
Still not intended. Regardless of what Dinnerbone said.
@unknown I agree it doesn't make any sense, but maybe the amount of coding work it would need for the game to know whether the Pigman Zombie is a "natural" one from the Nether or one that got turned into one with a lightning-struck pig, would not justify a fix, even if Mojang or Mr. Adams would change their mind regarding being not intended.
I'd rather have them working on more important fixes, but, who knows, maybe they'll revisit it in a few years 😉
(I'll surely keep it on my private list of desirable changes to the game to refine it or making it more consistent.)
Still not intended. Regardless of what Dinnerbone said.
@unknown is a developer, developers decide what is intended and what is not, not you.