Mojira Archive
MCPE-61976

/summon spawnEvent does not work with villagers

The bug

/summon has a spawnEvent option to run a behavior event when spawning the mob. This does not work for villagers.

How to reproduce

/summon sheep ~ ~ ~ minecraft:entity_born

 Baby sheep is spawned

/summon villager ~ ~ ~ minecraft:entity_born

 Adult villager is spawned

The entity_born event does exist in the villager behavior file. This bug happens for all villager events, e.g. become_witch.

Notes

This is almost certainly caused by the fact that summoning a villager actually summons a "villager_v2", after some kind of transformation. This transformation is not seamless and causes various minor issues, of which this is one. The best fix is to remove villager_v2 entirely and have villager take its behaviors, because splitting the mobs like this is a horrible hack that should not exist.

Fixed

[Mod] tryashtar

2020-01-20, 04:06 AM

2021-06-21, 11:44 PM

2021-06-21, 11:44 PM

10

4

Confirmed

328458

1.16.0.59 Beta - 1.16.40 Hotfix1.16.0.59 Beta, 1.16.0.55 Beta, 1.16.0.51 Beta, 1.14.1 Hotfix, 1.14.30 Hotfix, 1.16.40 Hotfix

1.17.0