Baby pigs turn into adult zombie pigmen when struck by lightning
The bug
When lighting strucks a baby pig, it turns to an adult zombie pigman.
How to reproduce
- Spawn a baby pig.
- Run /summon lightning_bolt
→
Baby pig turns into an adult zombie pigman
Code analysis
Code analysis / fix can be found in this comment by Oval.
Linked Issues
is duplicated by3
Created Issue:
Baby pigs got struck by lightning turns into an adult zombie pigman
When I try to struck a baby pig, it turns to an adult zombie pigman!
To reproduce:
1: Spawn a baby pig.
2: Do /summon LightningBolt
3: Bug found!
When I try to struck a baby pig, it turns to an adult zombie pigman!
To reproduce:
1: Spawn a baby pig.
2: Do /summonLightningBolt
3: Bug found!When I try to struck a baby pig, it turns to an adult zombie pigman!
To reproduce:
1: Spawn a baby pig.
2: Do /summon lightning_bolt
3: Bug found!
When I try to struck a baby pig, it turns to an adult zombie pigman!
To reproduce:
1: Spawn a baby pig.
2: Do /summon lightning_bolt
3: Bug found!When I try to struck a baby pig, it turns to an adult zombie pigman!
Steps to reproduce:
- Spawn a baby pig.
- Do /summon lightning_bolt
- Bug found!
When I try to struck a baby pig, it turns to an adult zombie pigman!
Steps to reproduce:
- Spawn a baby pig.
- Do /summon lightning_bolt
- Bug found!
When I try to struck a baby pig, it turns to an adult zombie pigman!
Steps to reproduce:
- Spawn a baby pig.
- Do /summon lightning_bolt
- Bug found!
I think it's okay to remove 16w38a from the list of affected versions, since it's merely a development version.
I think it's okay to remove 16w38a from the list of affected versions, since it's merely a development version which has already been replaced by something newer.
Could somebody please remove 16w38a from the affected versions list? It's no longer needed.
When I try to struck a baby pig, it turns to an adult zombie pigman!
Steps to reproduce:
- Spawn a baby pig.
- Do /summon lightning_bolt
- Bug found!
The bug
When I try to struck a baby pig, it turns to an adult zombie pigman!
Steps to reproduce
- Spawn a baby pig.
- Do /summon lightning_bolt
- Bug found!
Code analysis
Code analysis / fix can be found in this comment by Oval.
relates to
The bug
When
I try tostruck a baby pig, it turns to an adult zombie pigman!
Stepsto reproduce
- Spawn a baby pig.
- Do /summon lightning_bolt
- Bug found!
Code analysis
Code analysis / fix can be found in this comment by Oval.
The bug
When lighting strucks a baby pig, it turns to an adult zombie pigman.
How to reproduce
- Spawn a baby pig.
- Run /summon lightning_bolt
→Baby pig turns into an adult zombie pigman
Code analysis
Code analysis / fix can be found in this comment by Oval.
is duplicated by
Baby pigsgot struck by lightningturnsintoanadult zombie pigmanBaby pigs turn into adult zombie pigmen when struck by lightning
this is a feature request, the behaviour of a baby pig being struck and turning into a baby zombie pigman has never been introduced
This could be a feature, but could be "fixed" and added as a feature.
yet this has never been introduced, so it's a feature request
Incorrect resolution. Please reopen immediately.
Did you even read my comments above? This is a feature request, not a bug.
I totally disagree. This looks like a fully fledged report on a bug which does not make sense at all to exist in the game of Minecraft.
Could somebody please remove 16w38a from the list of affected versions? It's no longer needed.
Vexor64, please stop commenting and then removing your comment in a few minutes. You can just edit your message if you need so.
And no, we can't remove 16w38a, because it is archived. We can only change current version(s) (which is 1.11.2 right now)
Even if we could, we wouldn't do that, because 16w38a was affected by this bug, and all versions are equally important to be saved as affected, whether they are major, minor, or snapshots.
Thanks for the helpful advice.
The only version that matters is the latest version, not some small random development version that has already been superseded by the full version it was released for (in this case, 1.11). Don't you agree?
Every version matters, and it helps to see if the bug changed in certain version, to see what code changed between them.
Since you're so unwilling, could you please tell me how to become a moderator so I can remove it myself?
Sigh
Nobody, not even mojang can remove archieved versions.
Remember Rules of Fight Club ? Same for becoming a moderator - Don't ask for it. The Bug Tracker will ask you.
Confirmed for 1.13.1.
Please link this in the description of the report.
The following is based on a decompiled version of Minecraft 1.12 using MCP 940.
In the method net.minecraft.entity.passive.onStruckByLightning()
where all the code is handled for if the pig gets hit by lighting, is no code to check if the pig is a child or adult and to set it if so.
To fix this problem, you gotta add this piece of code in the method.
entitypigzombie.setChild(this.isChild());This will check if the pig is child or not, and if the pig is a child it will set it as a child when it becomes a zombie pigman.
Hope this helps